• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:env +full:- +full:file

2 # -*- coding: utf-8 -*-
4 # Copyright (c) 2017-2022 Arm Limited.
6 # SPDX-License-Identifier: MIT
27 Import('env')
49 test_env = env.Clone()
70 # Disable floating-point expression contraction (e.g. fused multiply-add operations)
71 if not 'windows' in env['os']:
72 test_env.Append(CXXFLAGS = ['-ffp-contract=off'])
74 # Remove -Wnoexcept from tests
75 if 'g++' in test_env['CXX'] and '-Wnoexcept' in test_env['CXXFLAGS']:
76 test_env['CXXFLAGS'].remove("-Wnoexcept")
78 load_whole_archive = '-Wl,--whole-archive'
79 noload_whole_archive = '-Wl,--no-whole-archive'
81 load_whole_archive = '-Wl,-force_load'
82 noload_whole_archive = '-Wl,-noall_load'
84 if env['os'] in ['android', 'macos', 'bare_metal'] or env['standalone']:
88 if env['os']=='windows':
99 if env['os'] in ['bare_metal']:
102 if env['external_tests_dir']:
103 test_env.Append(CPPPATH = [env['external_tests_dir'] + "/include"])
104 test_env.Append(LIBPATH = [env['external_tests_dir'] + "/%s/%s" % (env['os'], env['arch'])])
110 if env['external_tests_dir']:
111 files_benchmark += Glob(env['external_tests_dir'] + '/tests/benchmark/*.cpp')
121 if env['opencl']:
122 if env['experimental_dynamic_fusion']:
132 if env['external_tests_dir']:
133 files_benchmark += Glob(env['external_tests_dir'] + '/tests/benchmark/CL/' + filter_pattern)
138 if env['external_tests_dir']:
139 … files_validation += Glob(env['external_tests_dir'] + '/tests/validation/CL/' + filter_pattern)
142 if env['neon']:
147 if env['external_tests_dir']:
148 … files_benchmark += Glob(env['external_tests_dir'] + '/tests/benchmark/NEON/' + filter_pattern)
151 if env['os'] == 'bare_metal':
157 if env['external_tests_dir']:
158 … files_validation += Glob(env['external_tests_dir'] + '/tests/validation/NEON/' + filter_pattern)
162 if env['os'] == 'android':
164 elif env['os'] not in ['windows','bare_metal', 'macos']:
166 extra_link_flags += ['-fstack-protector-strong']
178 bm_link_flags += ['-Wl,--build-id=none', '-T', env['linker_script']]
180 if test_env['reference_openmp'] and env['os'] not in ['bare_metal', 'macos','windows']:
181 test_env['CXXFLAGS'].append('-fopenmp')
182 test_env['LINKFLAGS'].append('-fopenmp')
184 if 'ndk_above_r21' in env:
185 test_env['LINKFLAGS'].append('-static-openmp')
188 if env['experimental_fixed_format_kernels'] and test_env['validation_tests']:
192 …arm_compute_validation_framework = env.StaticLibrary('arm_compute_validation_framework', Glob('val…
218 for file in Glob("validate_examples/neon_*.cpp"):
219 example = "validate_" + os.path.basename(os.path.splitext(str(file))[0])
220 …validate_examples += [ test_env.Program(example, [ test_env.Object(source=file, target=example) ] …
226 for file in files:
227 example = "validate_" + os.path.basename(os.path.splitext(str(file))[0])
228 …cl_examples += [ test_env.Program(example, [ test_env.Object(source=file, target=example) ] + file…
232 for file in Glob("validate_examples/graph_*.cpp"):
233 example = "validate_" + os.path.basename(os.path.splitext(str(file))[0])
234 if env['os'] in ['android', 'macos', 'bare_metal'] or env['standalone']:
235 …prog = test_env.Program(example, [ test_env.Object(source=file, target=example), graph_utils]+ fil…
238 #-Wl,--allow-shlib-undefined: Ignore dependencies of dependencies
239file, target=example), graph_utils]+ files_validate_examples, LIBS = test_env["LIBS"] + ["arm_comp…
256 if env['external_tests_dir']:
257 all_examples_folders.append(env['external_tests_dir'] + "/examples")
260 for file in Glob("%s/neon_*.cpp" % examples_folder):
261 example = "benchmark_" + os.path.basename(os.path.splitext(str(file))[0])
262 …enchmark_examples += [ test_env.Program(example, [ test_env.Object(source=file, target=example) ] …
268 for file in files:
269 example = "benchmark_" + os.path.basename(os.path.splitext(str(file))[0])
270 …cl_examples += [ test_env.Program(example, [ test_env.Object(source=file, target=example) ] + file…
277 for file in files:
278 example = "benchmark_" + os.path.basename(os.path.splitext(str(file))[0])
280 …gemm_tuner_examples += [ test_env.Program(example, [ test_env.Object(source=file, target=example),…
284 for file in Glob("%s/graph_*.cpp" % examples_folder ):
285 example = "benchmark_" + os.path.basename(os.path.splitext(str(file))[0])
286 if env['os'] in ['android', 'macos', 'bare_metal'] or env['standalone']:
287 …prog = test_env.Program(example, [ test_env.Object(source=file, target=example), graph_utils, grap…
290 #-Wl,--allow-shlib-undefined: Ignore dependencies of dependencies
291file, target=example), graph_utils, graph_params]+ files_benchmark_examples, LIBS = test_env["LIBS…