It is currently Tue Nov 30, 2021 10:35 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Tue Jan 07, 2014 9:31 am 
Offline

Joined: Tue Dec 03, 2013 6:40 pm
Posts: 2
Hello,

I am having trouble with the --enable-openmp comand during ./configure. I recieved the below error and after searching these forums it seems the soultion would be to use the --enable-openmp command.

/Healpix_2.20a/src/cxx/generic_gcc/lib/libcxxsupport.a(cxxutils.o): In function `openmp_max_threads':
/Healpix_2.20a/src/cxx/cxxsupport/openmp_support.h:51: undefined reference to `omp_get_max_threads'
collect2: ld returned 1 exit status

After running ./configure (--with-program=/path for all programs) --enable-openmp I recieved the following error.

checking for OpenMP flag of C++ compiler... -fopenmp
checking for OpenMP flag of Fortran 77 compiler... unknown
configure: error: Compiler does not support OpenMP

I am trying to install galprop on a vritual machine running Scientific Linux 6.4 using VMware. I am using gcc 4.4.7 as the compiler. Is there anything I may be missing to get this to compile?

Thanks,
Paul


Top
 Profile  
 
PostPosted: Tue Jan 07, 2014 9:42 am 
Offline

Joined: Wed May 17, 2006 7:02 am
Posts: 285
Location: MPE Garching
it seems that the fortran openmp is the problem. are you using gfortran? this is required I think (although actually no openmp is actually invoked in the fortran part of the code, so this check is superfluous). if not automatically gfortran, do
./configure ............. F77=gfortran

another solution is to install healpix without openmp, then galprop will not need to have it.
but openmp is advantageous for running large models.

NB best anyway to update to healpix 3.11, as described in the latest version.

_________________
Andy Strong, MPE


Top
 Profile  
 
PostPosted: Tue Jan 07, 2014 10:19 am 
Offline
Site Admin

Joined: Fri Jul 18, 2008 3:04 pm
Posts: 60
Location: Stanford
strong wrote:
(although actually no openmp is actually invoked in the fortran part of the code, so this check is superfluous)


This is not true. There are several openmp pragmas in the fortran code that are required to make some global variables threadprivate. None of the fortran code is, however, multi-threaded with openmp.

_________________
Gudlaugur Johannesson, GALPROP developer


Top
 Profile  
 
PostPosted: Tue Jan 07, 2014 12:24 pm 
Offline

Joined: Tue Dec 03, 2013 6:40 pm
Posts: 2
Thank you for the help everything is working now. I did not think to add that to ./configure. I have updated to Healpix3.11 as well.

Thanks,
Paul


Top
 Profile  
 
PostPosted: Wed Jan 08, 2014 12:04 am 
Offline

Joined: Wed May 17, 2006 7:02 am
Posts: 285
Location: MPE Garching
thanks for the feedback, I will update the README to help other users.

_________________
Andy Strong, MPE


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group