11

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

Kuriyama_Shien
  • 123
  • 1
  • 6

3 Answers3

13

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.

ArunJose
  • 1,999
  • 1
  • 10
  • 33
1

icc is the "classic" compiler:

apt install intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic
Anthony Scemama
  • 1,563
  • 12
  • 19
  • 1
    wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB && sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB && echo "deb https://apt.repos.intel.com/oneapi all main" >/etc/apt/sources.list.d/intel-oneapi.list && apt-get update && apt-get install intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic – Валерий Заподовников Feb 15 '23 at 18:15
-1

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

cheers