本文主要是介绍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中对部分函数未定义的引用
这篇关于wsl2 + libtorch + MKL的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!