PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Course

MPICH problem on PGI 7.1
Goto page 1, 2  Next
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
UdeG



Joined: 30 Apr 2008
Posts: 3

PostPosted: Tue Jul 08, 2008 2:16 pm    Post subject: MPICH problem on PGI 7.1 Reply with quote

good day,

I installed the version 7.1-6 of the PGI compiler.
And everything is going very well but when i try run mpif90 I get the following error:

[root@wrf ~]#mpif90
/usr/bin/ld: cannot find -lmpichf90

anyone can help me please ?

Thank you so much!.

sorry for my bad english =/
Back to top
View user's profile
hongyon



Joined: 19 Jul 2004
Posts: 551

PostPosted: Wed Jul 09, 2008 9:13 am    Post subject: Reply with quote

Hi,

Please make sure you set PGI environment variable. For example, setenv PGI /opt/pgi if you install under /opt/pgi.


Hongyon
Back to top
View user's profile
UdeG



Joined: 30 Apr 2008
Posts: 3

PostPosted: Wed Jul 09, 2008 12:10 pm    Post subject: Reply with quote

I did everything you told me, but now I get this error:

[root@wrf bin]# /opt/pgi/linux86-64/7.1/mpi/mpich/bin/mpif90
/opt/pgi/linux86-64/7.1-6/libso/f90main.o: In function `main':
f90main.c:(.text+0x3c): undefined reference to `MAIN_'

can you help me again please ?
Back to top
View user's profile
hongyon



Joined: 19 Jul 2004
Posts: 551

PostPosted: Wed Jul 09, 2008 2:05 pm    Post subject: Reply with quote

That is not an error. You have to compile some file. You can't just run mpif90 alone. For example,

% mpif90 main.f

Consult documentation for more information on how to use it.

Hongyon
Back to top
View user's profile
UdeG



Joined: 30 Apr 2008
Posts: 3

PostPosted: Thu Jul 10, 2008 2:55 pm    Post subject: Reply with quote

thank you so much hongyon!

Problem solved! =)
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
Goto page 1, 2  Next
Page 1 of 2

 
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