mar*_*rk2 3 compiling fedora intel ld
我在链接 Intel MKL 库以用于构建具有 MKL 支持的 Julia 时遇到问题。我在其他项目中也遇到过这个问题,但在这里我将专注于 Julia。我在/opt/intel
. 我试过了:
/opt/intel/bin/compilervars.sh intel64
/opt/intel/mkl/bin/mklvars.sh intel64
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/intel/mkl/lib/intel64_lin
/etc/ld.so.conf.d
在内容中添加一个名为“mkl.conf”的文件/opt/intel/compilers_and_libraries_2019/linux/mkl/lib/intel64_lin
在我跑了最后两个之后sudo ldconfig
,但没有任何变化。我怎样才能让 Make 识别这个库?
LD_LIBRARY_PATH
和文件/etc/ld.so.conf.d
配置运行时链接器,而不是构建期间使用的链接器。
要使用 MKL 构建 Julia,您应该
添加
USE_INTEL_MKL = 1
Run Code Online (Sandbox Code Playgroud)
到 Make.user
跑
source /opt/intel/bin/compilervars.sh intel64
Run Code Online (Sandbox Code Playgroud)并从同一个 shell 构建 Julia(以便compilervars
考虑设置的变量)。