- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I do not know how gcc finds the openmp headers either, but I guess the path would be set because openmp comes bundled with gcc.
But since the openmp header files don't come bundled with the Intel C++ compiler, how does the compiler find the files? I'm working on Fedora.
If GCC was not installed on my system, how would I be able to run openmp on the Intel C++ compiler? Would I have to download all the openmp headers, place it in a folder and specify an environment variable that will lead the compiler to that folder?
How would I go about doing it?
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting Nav
But since the openmp header files don't come bundled with the Intel C++ compiler, how does the compiler find the files? I'm working on Fedora.
Correction. The openmp header "omp.h" is included in the Intel C++ compiler. Please check the "/opt/intel/.../include" directory.
If you installed gcc as suggested by others, you should see "omp.h" is also provided by gcc. But you should use the "omp.h" from Intel C++ compiler if you'll build your app with it.
So to get it working, you'll need to do:
1. install the gcc and libs
2. install the Intel C++ compiler 11.1 for Linux
3. open a shell command window, source the "iccvarsXX.sh" to set up the correct environment
4. use "icpc" to build .cpp files or "icc" for .c files
Thanks,
Jennifer
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
About your remarks
(If GCC was not installed on my system .....)
If Gnu compiler is not installed you can not install or running Icc.
Kind regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As Bustaf said, icc requires an active installation of g++, from which it takes most of the headers and libraries. It doesn't require openmp support in the g++, as it can use older versions of g++, so all OpenMP required headers are taken from icc's own include directory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting Nav
But since the openmp header files don't come bundled with the Intel C++ compiler, how does the compiler find the files? I'm working on Fedora.
Correction. The openmp header "omp.h" is included in the Intel C++ compiler. Please check the "/opt/intel/.../include" directory.
If you installed gcc as suggested by others, you should see "omp.h" is also provided by gcc. But you should use the "omp.h" from Intel C++ compiler if you'll build your app with it.
So to get it working, you'll need to do:
1. install the gcc and libs
2. install the Intel C++ compiler 11.1 for Linux
3. open a shell command window, source the "iccvarsXX.sh" to set up the correct environment
4. use "icpc" to build .cpp files or "icc" for .c files
Thanks,
Jennifer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Jennifer. I had a look at the omp.h of the Intel compiler. Interesting to know...
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page