iccintel-oneapi

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 command line, but my pc can't find it. I installed the latest oneAPI and sourced setvars.sh.

I even search for the icc file under the installation folder and I can't find the icc compiler file.

The which command works for mpicc and dpcpp but not for icc:

can not find icc

mpicc found but not icc


Solution

  • 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.