wsl2 + libtorch + MKL

报错

/usr/bin/ld: /opt/intel/oneapi/mkl/2024.0/lib/libmkl_intel_thread.so: undefined reference to `__kmpc_dispatch_next_4'
/usr/bin/ld: /opt/intel/oneapi/mkl/2024.0/lib/libmkl_intel_thread.so: undefined reference to `__kmpc_end_reduce_nowait'
/usr/bin/ld: /opt/intel/oneapi/mkl/2024.0/lib/libmkl_intel_thread.so: undefined reference to `__kmpc_serialized_parallel'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/main.dir/build.make:88: main] Error 1
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/main.dir/all] Error 2 
make: *** [Makefile:84: all] Error 2

libmkl_intel_thread.so中对部分函数未定义的引用

你可能感兴趣的:(pytorch,c++)