LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-06-2012, 08:57 AM   #1
kamesh419
LQ Newbie
 
Registered: Nov 2005
Posts: 27

Rep: Reputation: 0
Cool Openmp support for gcc on ubuntu 11.10 ?


Hi all,

does any one know if the gcc version thats shipped with ubuntu 11.10 comes with openmp support? I am trying to compile a tool called monitor (http://icl.cs.utk.edu/~mucci/monitor/) and I get the following error (pastebin).

http://pastebin.com/NKw1uu5T

gcc -v gives me the following.

Quote:
Quote: vadrao@Term:~/Tools/monitor$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/4.6.1/lto-wrapper
Target: i686-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.1-9ubuntu3' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++,go --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu
Thread model: posix
gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)

Cheers,
Kam
 
Old 02-06-2012, 09:26 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2018 CentOS6.10 CentOS7.5 + 50+ other Linux OS, for test only.
Posts: 17,053

Rep: Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461
Starting with gcc-4.2, Openmp is included in all gcc's
http://gcc.gnu.org/wiki/openmp
Quote : "As of GCC 4.2, the compiler implements version 2.5
of the OpenMP standard and as of 4.4 it implements version 3.0
of the OpenMP standard. The OpenMP 3.1 is supported since GCC 4.7".

http://gcc.gnu.org/projects/gomp/

.
 
Old 02-06-2012, 10:23 AM   #3
kamesh419
LQ Newbie
 
Registered: Nov 2005
Posts: 27

Original Poster
Rep: Reputation: 0
Thanks for the reply knudfl.

I understand that OPENMP is included in gcc. But I am not sure if the gcc that is included in Ubuntu is compiled with openmp support enabled or not.

By looking at the error that I am getting, I am suspecting that it is not. Hence I have posed this question to see if someone knows about this.
 
Old 02-06-2012, 10:44 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2018 CentOS6.10 CentOS7.5 + 50+ other Linux OS, for test only.
Posts: 17,053

Rep: Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461
Unless the option "--disable-libgomp" was used, "omp" is included.
http://gcc.gnu.org/install/configure.html


And I see no --disable-libgomp in post # 1.


.

Last edited by knudfl; 02-06-2012 at 10:45 AM.
 
Old 02-07-2012, 06:33 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2018 CentOS6.10 CentOS7.5 + 50+ other Linux OS, for test only.
Posts: 17,053

Rep: Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461Reputation: 3461
Ref. your pastebin link :
Quote:
/home/vadrao/Tools/monitor/tests/src/omp.c:4:2:
error: #error "This compiler does not understand OPENMP"
( libgomp is always installed as a dependency for gcc.)

"not understand OPENMP" : That's not an error you will get on another Linux OS.


Generally : Several special software cannot build on Ubuntu 11.10
( and 11.04 ). If it must be Ubuntu : Suggest Ubuntu 10.04,
where you will get this, when make has been run ...
monitor/i686-Linux/ libmonitor.so libmonitor.so.1 libmonitor.so.1.0.1

This will do : cd monitor/ && make
Tests : cd monitor/ && make tests

.

Last edited by knudfl; 02-07-2012 at 06:44 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenMP for SciLinux 5.5 X_86 naka Linux - Newbie 3 05-05-2011 03:37 AM
[SOLVED] openMP for ubuntu mahmoodn Linux - Software 4 03-29-2011 04:06 AM
stunning OpenMP performance fatra2 Programming 6 05-10-2010 06:57 AM
Linking OpenMP Mash Programming 2 07-28-2007 02:44 PM
openmp in suse 10.2 ezhaar Programming 2 02-18-2007 12:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration