Skip to content

Commit

Permalink
[ Meson ] BCQTensor dependency is added for Android build
Browse files Browse the repository at this point in the history
- This commit add BiQGEMM path to nntrainer_inc_abs to support Android
  build with enable-biqgemm option.

**Self evaluation:**

Build test: [X]Passed [ ]Failed [ ]Skipped
Run test: [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: Eunju Yang <[email protected]>
  • Loading branch information
EunjuYang committed Dec 10, 2024
1 parent cd17a66 commit 949d373
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions nntrainer/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@ nntrainer_inc_abs = [
meson.source_root() / 'api' / 'ccapi' / 'include'
]

# The code below feeds BiQGEMM absolute path to android.mk
# The BiQGEMM absolute path is included only when biqgemm is enabled.
if get_option('enable-biqgemm')
fs = import('fs')
if fs.is_dir('../../BiQGEMM')
nntrainer_inc_abs += meson.source_root() / '..' / 'BiQGEMM'
else
error ('BiQGEMM cannot be enabled without BiQGEMM library.')
endif
endif

nntrainer_sources = []
nntrainer_headers = [
meson.current_source_dir() / 'nntrainer_log.h',
Expand Down

0 comments on commit 949d373

Please sign in to comment.