7373endif
7474
7575# dependencies
76- tbb_dep = dependency (' tbb ' , required : true )
76+ omp_dep = dependency (' openmp ' , required : true )
7777
7878# manually waterfall the meson deps: pkg-config to cmake to find_library
79- mkl_dep = dependency (' mkl-dynamic-lp64-tbb ' , required : false )
79+ mkl_dep = dependency (' mkl-dynamic-lp64-iomp ' , required : false )
8080
8181if not mkl_dep.found()
8282 mkl_dep = dependency (' MKL' , method : ' cmake' ,
8383 modules : [' MKL::MKL' ],
8484 cmake_args : [
8585 ' -DMKL_ARCH=intel64' ,
8686 ' -DMKL_LINK=dynamic' ,
87- ' -DMKL_THREADING=tbb_thread ' ,
87+ ' -DMKL_THREADING=intel_thread ' ,
8888 ' -DMKL_INTERFACE=lp64'
8989 ],
9090 required : false
@@ -97,8 +97,8 @@ if not mkl_dep.found()
9797 # see: https://github.com/mesonbuild/meson/issues/14163
9898 mkl_core = cc.find_library (' mkl_core' , required : true , static : false )
9999 mkl_intel_lp64 = cc.find_library (' mkl_intel_lp64' , required : true , static : false )
100- mkl_tbb_thread = cc.find_library (' mkl_tbb_thread ' , required : true , static : false )
101- mkl_dep = declare_dependency (dependencies : [mkl_core, mkl_intel_lp64, mkl_tbb_thread ])
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 ])
102102endif
103103
104104# generate loops, similar to numpy
@@ -131,7 +131,7 @@ mkl_umath_loops = shared_library(
131131 ' mkl_umath_loops' ,
132132 sources : [gen_loops_c, gen_loops_h],
133133 include_directories : inc_np,
134- dependencies : [mkl_dep, tbb_dep , py_dep],
134+ dependencies : [mkl_dep, omp_dep , py_dep],
135135 c_args : c_args,
136136 link_args : link_args,
137137 install : true ,
@@ -152,7 +152,7 @@ py.extension_module(
152152 ' _ufuncs' ,
153153 sources : [' mkl_umath/src/ufuncsmodule.c' , gen_loops_h],
154154 include_directories : inc_np,
155- dependencies : [mkl_dep, tbb_dep , loops_dep],
155+ dependencies : [mkl_dep, omp_dep , loops_dep],
156156 c_args : c_args + [' -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION' ],
157157 link_args : link_args,
158158 install_rpath : ext_rpath,
0 commit comments