PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

Compiling WRF on XeonEM64T

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
Graham Rye



Joined: 17 May 2005
Posts: 4

PostPosted: Thu Jun 23, 2005 8:34 pm    Post subject: Compiling WRF on XeonEM64T Reply with quote

I'm trying to compile WRFV2.0.3.1 with the 6.0 compiler on a dual XeonEM64T machine running 64-bit FC2.

If I use the standard version of configure.defaults then I only have one configure option - Single threaded, no nesting. After looking through the forums here, I found reference to this page;

http://www.pgroup.com/resources/wrf/arch.pgi.wrfv2

which gives the options of OpenMP and Mpich configurations. However, if I choose either of these then I get the following error;

IPA inhibited: no main routine
/usr/bin/ld: ../frame/internal_header_util.o: No such file: No such file or directory
child process exit status 1: /usr/bin/ld
make[1]: [em_wrf] Error 2 (ignored)

I wondered if that should be ../frame/module_internal_header_util.o as in the standard Single threaded, no nesting option. Changing it to that compiles successfully but when I try to run a nested domain I get a complaint that I need to use an MPI executable.

Any suggestions would be much appreciated.

Cheers

Graham
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6208
Location: The Portland Group Inc.

PostPosted: Fri Jun 24, 2005 12:49 pm    Post subject: Reply with quote

Hi Graham,

The WRF configuration file we posted is for the 2.0.2 version. It appears that the authors have indeed changed the name of 'internal_header_util' to 'module_internal_header_util' with the 2.0.3.1 version. As you noted, with this change WRF should compile correctly.

With the MPI error, how are you running the program? Do you use mpirun? Did you build the OpenMP version? Being on a dual cpu system you most likely want the OpenMP version and then set 'OMP_NUM_THREADS' to 2 before you run.

Thanks,
Mat
Back to top
View user's profile
Graham Rye



Joined: 17 May 2005
Posts: 4

PostPosted: Sat Jun 25, 2005 11:06 pm    Post subject: Reply with quote

Sorry for not replying sooner but I'm away from the office for the next week. I did try to run the OpenMP version and also set the number of threads but without success. I was really just trying the MPICH version to see if that worked either.

Do you have configuration options for 2.0.3.1?

Cheers

Graham
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6208
Location: The Portland Group Inc.

PostPosted: Mon Jun 27, 2005 2:03 pm    Post subject: Reply with quote

Hi Graham,

I took the 2.0.2 arch configuration file, changed "internal_header_util.o" to "module_internal_header_util.o", and removed "-Mipa=fast,inline,safe". I then configured, compiled, and ran without problems the em_b_wave idealized case with both 2 and 4 threads.

While IPA is mostly likely not a problem (I removed it simply because it takes a lot longer to build), it is possible that it is interfering with your run. If it still doesn't work, try re-building without optimization, "-O0" instead of "-fastsse", to see if we have a optimization problem. If it still doesn't run correctly, it's most likely an issue with your environment or set-up.

- Mat
Back to top
View user's profile
Graham Rye



Joined: 17 May 2005
Posts: 4

PostPosted: Mon Jun 27, 2005 5:25 pm    Post subject: Reply with quote

Thanks for the help.

I did get errors saying that it couldn't compile properly with IPA - not sure of the exact error as I am still away from my work pc.

I will try your suggestions when I get back.

Cheers

Graham
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © phpBB Group