|
72 | 72 | error('Unsupported system.') |
73 | 73 | endif |
74 | 74 |
|
75 | | -# dependencies |
76 | | -omp_dep = dependency('openmp', required: true) |
77 | | - |
78 | | -# manually waterfall the meson deps: pkg-config to cmake to find_library |
79 | | -mkl_dep = dependency('mkl-dynamic-lp64-iomp', required: false) |
80 | | - |
81 | | -if not mkl_dep.found() |
82 | | - mkl_dep = dependency('MKL', method: 'cmake', |
83 | | - modules: ['MKL::MKL'], |
84 | | - cmake_args: [ |
85 | | - '-DMKL_ARCH=intel64', |
86 | | - '-DMKL_LINK=dynamic', |
87 | | - '-DMKL_THREADING=intel_thread', |
88 | | - '-DMKL_INTERFACE=lp64' |
89 | | - ], |
90 | | - required: false |
91 | | - ) |
92 | | -endif |
93 | | - |
94 | | -if not mkl_dep.found() |
95 | | - # use static: false to emulate -DMKL_LINK=dynamic |
96 | | - # static: false docs are wrong, this will only consider shared libs |
97 | | - # see: https://github.com/mesonbuild/meson/issues/14163 |
98 | | - mkl_core = cc.find_library('mkl_core', required: true, static: false) |
99 | | - mkl_intel_lp64 = cc.find_library('mkl_intel_lp64', required: true, static: false) |
100 | | - mkl_intel_thread = cc.find_library('mkl_intel_thread', required: true, static: false) |
101 | | - mkl_dep = declare_dependency(dependencies: [mkl_core, mkl_intel_lp64, mkl_intel_thread]) |
102 | | -endif |
| 75 | +mkl_dep = dependency('MKL', method: 'cmake', |
| 76 | + modules: ['MKL::MKL'], |
| 77 | + cmake_args: [ |
| 78 | + '-DMKL_ARCH=intel64', |
| 79 | + '-DMKL_LINK=dynamic', |
| 80 | + '-DMKL_THREADING=intel_thread', |
| 81 | + '-DMKL_INTERFACE=lp64' |
| 82 | + ], |
| 83 | + required: false |
| 84 | +) |
103 | 85 |
|
104 | 86 | # generate loops, similar to numpy |
105 | 87 | src_file_cli = find_program('_vendored/process_src_template.py') |
|
0 commit comments