PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Problem with CDK 6.0 pgcc - undefined reference to `getarg_'

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



Joined: 27 Apr 2005
Posts: 1

PostPosted: Tue Jun 21, 2005 9:04 pm    Post subject: Problem with CDK 6.0 pgcc - undefined reference to `getarg_' Reply with quote

Dear All,

I have installed PGI CDK 6.0 on ROCKS 3.3.0 cluster. To verify the installation, I tested the ./bench/mpihello samples in the PGI directory.

I found pgf77 works fine with the mpi samples.
pgf77 -o mpihello mpihello.f -Mmpi
mpirun -np 8 mpihello

But pgcc can't work with the sample.
pgcc -o myname myname.c -Mmpi
it returns
/usr/pgi/linux86-64/6.0/lib/libfmpich.so: undefined reference to`getarg_'
/usr/pgi/linux86-64/6.0/lib/libfmpich.so: undefined reference to `iargc_'

I have tested pgcc with some other mpi applications, and these c applications have the same problem.

Did anyone else experience the same issue with me? Any ideas about this problem.

Thanks in advance.

Best Regards
Bill Xie
Back to top
View user's profile
mkcolg



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

PostPosted: Thu Jun 23, 2005 9:51 am    Post subject: Reply with quote

Hi Bill,

Since the MPICH that comes with the CDK was built with pgf90, when you compile with pgcc you need to add "-pgf90libs" so that the pgf90 libraries are passed to the linker.

Thanks,
Mat
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