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

Viewed 3010

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

3 Answers

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

Related