简体   繁体   中英

Can not find the icc compiler after having installed Intel oneAPI, invoking from bash on Ubuntu 20

my problem is that I want to invoke the icc compiler from the commandline, but my pc can't find it. I have install the latest oneAPI and sourced setvars.sh.

Even I search 'icc' file under the installation routine I can't find the icc compiler file.

'which' command works for mpicc and dpcpp but not for icc can not find icc /// mpicc found but not icc

It looks like you might have installed Intel OneAPI base toolkit . The icc compiler is not a part of the base toolkit. To get icc (Intel® C++ Compiler Classic) you should install Intel OneAPI HPC toolkit . Below is a link to HPC toolkit. You would see icc in the "whats included" section

https://software.intel.com/content/www/us/en/develop/tools/oneapi/hpc-toolkit.html

You could install hpc toolkit on the top of your basekit, it installs only whatever is not present as a part of base toolkit.

icc is the "classic" compiler:

apt install intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic

do remember to source setvars.sh in your bash.rc

cheers

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM