diff --git a/nntrainer/meson.build b/nntrainer/meson.build index 2fa705a756..11dd6865cd 100644 --- a/nntrainer/meson.build +++ b/nntrainer/meson.build @@ -11,6 +11,7 @@ nntrainer_inc_abs = [ meson.source_root() / 'api' / 'ccapi' / 'include' ] + nntrainer_sources = [] nntrainer_headers = [ meson.current_source_dir() / 'nntrainer_log.h', diff --git a/nntrainer/tensor/meson.build b/nntrainer/tensor/meson.build index 83f25d2e95..c36c15e92e 100644 --- a/nntrainer/tensor/meson.build +++ b/nntrainer/tensor/meson.build @@ -30,7 +30,7 @@ tensor_headers = [ 'char_tensor.h', 'uint_tensor.h', 'weight.h', - 'var_grad.h', + 'var_grad.h', 'tensor_wrap_specs.h', 'blas_interface.h', 'manager.h', @@ -43,19 +43,21 @@ tensor_headers = [ 'cache_elem.h', 'memory_pool.h', 'swap_device.h', - 'task.h' + 'task.h', ] arch = host_machine.cpu_family() if get_option('enable-avx') and get_option('platform') != 'android' - tensor_sources += 'blas_avx.cpp' - tensor_headers += 'blas_avx.h' + tensor_sources += 'blas_avx.cpp' + tensor_headers += 'blas_avx.h' endif -if get_option('enable-fp16') +if get_option('enable-fp16') if arch == 'arm' - error ('FP16/ARM code (blas_neon.cpp) uses armv8.2 instructions. armv7 is not supported.') + error( + 'FP16/ARM code (blas_neon.cpp) uses armv8.2 instructions. armv7 is not supported.', + ) elif arch == 'aarch64' or get_option('platform') == 'android' if get_option('enable-neon') tensor_sources += 'blas_neon.cpp' @@ -80,6 +82,7 @@ if get_option('enable-biqgemm') tensor_headers += 'bcq_tensor.h' tensor_sources += 'bcq_tensor.cpp' nntrainer_inc += biqgemm_inc + nntrainer_inc_abs += meson.source_root() / '..' / 'BiQGEMM' endif if get_option('enable-opencl') @@ -94,4 +97,4 @@ endforeach foreach h : tensor_headers nntrainer_headers += meson.current_source_dir() / h -endforeach +endforeach \ No newline at end of file