Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.

icc not found

Mikel_A_
Beginner
10,860 Views

I have just install Intel MKL 11.3 for Linux.
First to make sure that Intel MKL runs on my system,  I have tried to compile and  link  "Matrix Multiplication Tutorial" example:
        icc -mkl dgemm_example.c
        No command 'icc' found, but there are 30 similar ones.

Is Intel compiler included in MKL or I have to install independiently?


 

 

 

 

0 Kudos
8 Replies
TimP
Honored Contributor III
10,860 Views

If you install MKL without icc, you should be able to use gcc by referring to link advisor:

https://software.intel.com/en-us/articles/intel-mkl-link-line-advisor

MKL is included in the default installation of icc, but not vice versa.

0 Kudos
VipinKumar_E_Intel
10,860 Views

By default the Intel compilers are installed in /opt/intel folders.

for e.g: /opt/intel/compilers_and_libraries_2016.1.150/linux/bin

you can run $source compilervars.sh intel64 (say, if you are targeting 64 bit) to set the env. variables for the intel64.

 

0 Kudos
Mikel_A_
Beginner
10,860 Views

I have run the next command but I have not solved the problem.

    $ cd /opt/intel/compilers_and_libraries_2016.0.109/linux/bin
    $ source compilevars.sh intel64
    $ icc --version
    $ No command 'icc' found, but there are 30 similar ones

Now , instead of compile using intel compiler,
    $ icc -mkl dgemm_example.c
    $ No command "icc" found ....

I am using gcc compile,
   $  gcc dgemm_example.c -lmkl_rt


Thanks, but I think icc is not included in MKL.

 

 

0 Kudos
Yuki_B_
Beginner
10,860 Views

I failed to set up icc by installing MKL neither...(@ OSX El Capitan) I tried

    $ cd /opt/intel/compilers_and_libraries_2017.2.163/mac/bin
    $ source compilevars.sh intel64

, but I could not find icc command. I'd like to use icc for installing numpy library.

 Could you show me how to install MKL with icc,

Thank you for your cooperation.

0 Kudos
SergeyKostrov
Valued Contributor II
10,860 Views
1. In my .bashrc file on Linux Ubuntu I've added the following lines: ... # User source commands source /opt/intel/compilers_and_libraries/linux/bin/compilervars.sh -arch intel64 -platform linux ... 2. You could also try to do it manually: ... cd / cd opt cd intel cd compilers_and_libraries cd linux cd bin source compilervars.sh -arch intel64 -platform linux ... 3. In order to verify that the source command worked try to execute: ... icc -v or icpc -v ...
0 Kudos
SergeyKostrov
Valued Contributor II
10,860 Views
In case of Mac OS: ... 2. You could also try to do it manually: ... cd / cd opt cd intel cd compilers_and_libraries cd mac cd bin source compilervars.sh -arch intel64 -platform mac ...
0 Kudos
Yuki_B_
Beginner
10,860 Views

Thank you for your advice!

I tried

cd /
cd opt
cd intel
cd compilers_and_libraries
cd mac
cd bin
source compilervars.sh -arch intel64 -platform mac

However, when I run,

icc -v

the terminal replied

command not fund: icc

I wonder that my MKL does not have icc. I downloaded the MKL from hear(https://software.intel.com/en-us/articles/free-mkl), and chose Community Licensing for Intel Performance Libraries for macOS (ver. 2017 Update 2). Then I chose the Intel MKL as a download option.

Is there something wrong with my setup?

0 Kudos
TimP
Honored Contributor III
10,860 Views

Free MKL doesn't provide a compiler.  It should work with gcc/gfortran/g++ (maybe clang...] as well as purchased or evaluation Intel compilers.

0 Kudos
Reply