aboutsummaryrefslogtreecommitdiff
path: root/tests/BUILD.bazel
diff options
context:
space:
mode:
Diffstat (limited to 'tests/BUILD.bazel')
-rw-r--r--tests/BUILD.bazel65
1 files changed, 59 insertions, 6 deletions
diff --git a/tests/BUILD.bazel b/tests/BUILD.bazel
index 57ea3f6576..8122652991 100644
--- a/tests/BUILD.bazel
+++ b/tests/BUILD.bazel
@@ -35,8 +35,23 @@ cc_library(
"validation/**/*.h",
]),
copts = [
- "-march=armv8.2-a+fp16",
- ],
+ "-march=armv8.2-a+fp16",
+ ] + select({
+ "//:debug_flag": [
+ "-O0",
+ "-g",
+ "-gdwarf-2",
+ ],
+ "//conditions:default": ["-O3"],
+ }) +
+ select({
+ "//:openmp_flag": ["-fopenmp"],
+ "//conditions:default": [],
+ }) +
+ select({
+ "//:Werror_flag": ["-Werror"],
+ "//conditions:default": [],
+ }),
linkstatic = True,
deps = [
"//:arm_compute",
@@ -60,9 +75,23 @@ cc_binary(
"instruments/*.h",
]),
copts = [
- "-march=armv8.2-a+fp16",
- "-ffp-contract=off",
- ],
+ "-march=armv8.2-a+fp16",
+ ] + select({
+ "//:debug_flag": [
+ "-O0",
+ "-g",
+ "-gdwarf-2",
+ ],
+ "//conditions:default": ["-O3"],
+ }) +
+ select({
+ "//:openmp_flag": ["-fopenmp"],
+ "//conditions:default": [],
+ }) +
+ select({
+ "//:Werror_flag": ["-Werror"],
+ "//conditions:default": [],
+ }),
linkstatic = True,
deps = [
":validation_framework",
@@ -71,6 +100,13 @@ cc_binary(
"//:common_defines",
"//tests/framework",
],
+ local_defines = [] +
+ select({
+ "//:bf16_validation_flag": [
+ "ARM_COMPUTE_ENABLE_BF16",
+ ],
+ "//conditions:default": [],
+ })
)
#---------------------------------------------------------------------
@@ -82,7 +118,24 @@ cc_binary(
"benchmark/NEON/*.cpp",
"*.cpp",
]),
- copts = ["-march=armv8.2-a+fp16"],
+ copts = [
+ "-march=armv8.2-a+fp16",
+ ] + select({
+ "//:debug_flag": [
+ "-O0",
+ "-g",
+ "-gdwarf-2",
+ ],
+ "//conditions:default": ["-O3"],
+ }) +
+ select({
+ "//:openmp_flag": ["-fopenmp"],
+ "//conditions:default": [],
+ }) +
+ select({
+ "//:Werror_flag": ["-Werror"],
+ "//conditions:default": [],
+ }),
linkstatic = True,
deps = [
":arm_compute_validation",