Skip to content

Commit 8d9c97b

Browse files
committed
add meson option for setting MKL_THREADING
1 parent 14fd596 commit 8d9c97b

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ mkl_dep = dependency('MKL', method: 'cmake',
8080
cmake_args: [
8181
'-DMKL_ARCH=intel64',
8282
'-DMKL_LINK=dynamic',
83-
'-DMKL_THREADING=intel_thread',
83+
'-DMKL_THREADING=' + get_option('mkl_threading'),
8484
'-DMKL_INTERFACE=lp64'
8585
],
8686
required: true

meson.options

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
11
option('opt_report', type: 'boolean', value: false,
22
description: 'Whether to generate optimization vectorization report')
3+
4+
option(
5+
'mkl_threading',
6+
type: 'combo',
7+
choices: ['intel_thread', 'tbb_thread', 'sequential', 'gnu_thread'],
8+
value: 'intel_thread',
9+
description: 'MKL threading layer to link to (default: intel_thread)'
10+
)

0 commit comments

Comments
 (0)