- Check for non-android ARM machines
- Use blas_neon.cpp only for ARM machines
Signed-off-by: Donghyeon Jeong <dhyeon.jeong@samsung.com>
if get_option('platform') == 'android'
add_project_arguments('-mfp16-format=ieee', language: ['c', 'cpp'])
extra_defines += '-DUSE__FP16=1'
+ elif arch == 'aarch64' or arch =='arm'
+ extra_defines += '-DUSE__FP16=1'
else
has_avx512fp16 = cc.has_argument('-mavx512fp16')
if (has_avx512fp16)
'optimized_v2_planner.cpp',
'optimized_v3_planner.cpp',
'task_executor.cpp',
- 'blas_neon.cpp',
]
tensor_headers = [
'tensor_wrap_specs.h'
]
+arch = target_machine.cpu_family()
+
+if get_option('platform') == 'android' or arch == 'aarch64' or arch =='arm'
+ tensor_sources += 'blas_neon.cpp'
+endif
+
foreach s : tensor_sources
nntrainer_sources += meson.current_source_dir() / s
endforeach