Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ICC on Linux: link to OpenMP

Tags:

c++

openmp

What are the steps to link to OpenMP with Intel C++ compiler? Does Intel compiler ship with its own OpenMP library or should I link to libgom?

like image 380
pic11 Avatar asked Jun 26 '11 08:06

pic11


1 Answers

It comes with its own implementation apparently. You don't need to specify additional libraries as long as you compile with the -openmp flag.

$ icc -openmp t.c
$ ldd ./a.out 
    ...
    libiomp5.so => /opt/intel/Compiler/11.1/072/lib/intel64/libiomp5.so (0x00007fd8e7ac6000)
    ...
like image 173
Mat Avatar answered Sep 29 '22 08:09

Mat