PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Trial license (OSX). need help

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



Joined: 23 Mar 2010
Posts: 2

PostPosted: Sat Apr 03, 2010 2:17 pm    Post subject: Trial license (OSX). need help Reply with quote

Hello

I realize that, most probably, I'm asking a dumb question. but after several hours of tries I could not resolve it.

I'm interested in PGI for profiling my OpenMP app, so I've d/loaded it and followed by install instructions. I set up LM_LICENSE_FILE in Terminal via

export LM_LICENSE_FILE=/opt/pgi/license.dat

and when I type

$LM_LICENSE_FILE

it shows the entered path. However, pgiprof and other tools don't see this path (same as any other) and always report "no such file" ./license.dat
Also when I re-open Terminal, the $LM_LICENSE_FILE is empty

Thx in advance
Back to top
View user's profile
jtull



Joined: 30 Jun 2004
Posts: 395

PostPosted: Mon Apr 05, 2010 12:20 pm    Post subject: Reply with quote

Hello,

I assume you run bash, rather than cshell, which would use

setenv LM_LICENSE_FILE "/opt/pgi/license.dat"

The second thing is to make sure $PGI is defined

export PGI=/opt/pgi
or
setenv PGI /opt/pgi

so that the compiler will look in the default location
$PGI/license.dat (which is why you saw 'cant find ./license.dat')

Finally, I assume there is a license file there and it has world
read permissions.

regards,
dave
Back to top
View user's profile
TheIgors



Joined: 23 Mar 2010
Posts: 2

PostPosted: Tue Apr 06, 2010 2:22 am    Post subject: Reply with quote

Hello Dave

Thx for your help. Yes, I tried many times. I can use "export" in bash same as "setenv" in tcsh. However, the set variables are not saved and disappear when I close Terminal. It looks like they are "local" for this Terminal session only :-(
Back to top
View user's profile
TheMatt



Joined: 06 Jul 2009
Posts: 306
Location: Greenbelt, MD

PostPosted: Tue Apr 06, 2010 10:24 am    Post subject: Reply with quote

TheIgors wrote:
Hello Dave

Thx for your help. Yes, I tried many times. I can use "export" in bash same as "setenv" in tcsh. However, the set variables are not saved and disappear when I close Terminal. It looks like they are "local" for this Terminal session only :-(

You now need to add those commands to the rc files for your shell. If you use bash (which I believe is the shell for OS X), add your exports to ~/.bashrc. So within ~/.bashrc you need to add the lines:
Code:
export LM_LICENSE_FILE=/opt/pgi/license.dat
export PGI=/opt/pgi

With that, every time you open Terminal, bash will read ~/.bashrc and execute those exports.
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