安装Intel Compiler后找不到compilervars.sh



我已经通过以下链接在我的Ubuntu 18.04机器上安装了intel编译器:https://www.intel.com/content/www/us/en/developer/articles/tool/oneapi-standalone-components.html#dpcpp-cpp

我特意安装了Intel®dpc++/c++ Compiler for Linux.

我正在尝试运行一些基准测试,他们需要源路径<icc_installdir>/bin/compilervars.sh,但我找不到这个文件。安装说,英特尔编译器安装在/opt/intel/oneapi,但我查了这个目录,没有bin文件夹或compilervars.sh。有人知道我怎么安装这个文件吗?

请尝试使用以下命令初始化/源Linux下的Intel®DPC++/c++编译器?

source /opt/intel/oneapi/compiler/latest/env/vars.sh 

另外,要确认是否初始化,可以使用下面的命令检查DPCPP编译器的版本。

dpcpp --version

更多信息,请点击以下链接:https://www.intel.com/content/www/us/en/develop/documentation/oneapi-programming-guide/top/oneapi-development-environment-setup/use-the-setvars-script-with-linux-or-macos.html

最新更新