PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

how to use the mypgccrc file

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Licenses and Installation
View previous topic :: View next topic  
Author Message
lal



Joined: 26 Jul 2004
Posts: 6

PostPosted: Fri Feb 04, 2005 1:57 pm    Post subject: how to use the mypgccrc file Reply with quote

Hi,

To support omp_get_wtime() and omp_get_wtick() functions, we created homemade archive that i would like to add to the compiler default flags... I wonder which file is the best to modify: x86rc, lin86rc, or pgfXXrc files?

Also, the last line of .pgccrc mention a "mypgccrc". I would like to see a example of a mypgXXrc file.

Thanks!

L-A
Back to top
View user's profile
mkcolg



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

PostPosted: Mon Feb 07, 2005 4:37 pm    Post subject: Reply with quote

Hi L-A,

It's generally not a good idea to change any of the rcfile files found in the compiler directory. Changing these files can result in undesirable behavior. We recommend that this type of change be done in the ".mypgccrc", ".mypg90rc", ".mypgf77rc", ".mypgcpprc", and ".mypghprrc" files in your home directory. Of course, this can be difficult to effect a change for all compilers and users so with the up coming 6.0 release we've added a new "siterc" which will give you better control. Also with 6.0, we'll include more instructions on working with rc files.

The variable that will work best for you is "LMP" found in the "lin86rc" file. This variable sets which libraries are included when "-mp" is used. Adding the following line to your ".mypgXXrc" files should do what you need:
Code:
set LMP = -l$(PREFIX)mp -l$(PREFIX)thread -lyourlibhere ;

Also add "-L/PATH/to/yourlib" if you do not put you library in a standard location. To test, run the compilers with the "-dryrun" flag and make sure that the new library is found on the link line.

Good luck,
Mat
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Licenses and Installation 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