PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Error: Cuda version 4.0 not available in this installation

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



Joined: 23 May 2012
Posts: 2

PostPosted: Fri May 25, 2012 12:55 pm    Post subject: Error: Cuda version 4.0 not available in this installation Reply with quote

Hi everyone, I have recently downloaded PGI Workstation 12.5 and the PGI Accelerator 12.5. I have used it to compile fortran programs and everything worked out fine, but when I wanted to try my first CUDA Fortran program it wouldn't compile and gave me the following error message:

Quote:
pgfortran-Error-CUDA version 4.0 is not available in this installation


I ran it with the command "$ pgfortran test1.cuf" , test1.cuf being the file containing the code.

I'm running all this on a 13' MacBook Pro 2010, the GPU being a GeForce 320m.

running pgaccelinfo gives me the following information:


Quote:
CUDA Driver Version: 4020

Device Number: 0
Device Name: GeForce 320M
Device Revision Number: 1.2

+a lot of (in my opinion) irrelevant technical stuff


I've also set the DYLD_LIBRARY_PATH variable to be /usr/local/cuda/bin, only upon doing that pgaccelinfo recognized my GPU.

I'm assuming that this is a configuration issue, since I have successfully compiled the sample programs given with the CUDA SDK using nvidias compiler.

One more thing that I'd like to mention is that pgaccelinfo displays my CUDA driver version as "CUDA Driver Version: 4020", System preferences it is displayed as "CUDA Driver Version: 4.2.9" and nvidia's deviceQuery programs displays it as "CUDA Driver Version / Runtime Version 4.2 / 4.2"
Is it possible that I've set the path wrong? Or some other reason why the versions differ?

Thanks in advance for your help on this issue,

Joe
Back to top
View user's profile
mkcolg



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

PostPosted: Fri May 25, 2012 5:26 pm    Post subject: Reply with quote

Hi Joe,

Quote:
pgfortran-Error-CUDA version 4.0 is not available in this installation

This typically means that the PGI supplied CUDA toolkit was not installed. When you installed 12.5, did you select yes when asked to install the CUDA Toolkit? If not, please re-install the compilers with the CUDA Toolkit.

Quote:
Is it possible that I've set the path wrong? Or some other reason why the versions differ?
No this is all fine. The driver version is only relevant when you run your code. The above error is a compile time issue.

Hope this helps,
Mat
Back to top
View user's profile
jbach



Joined: 23 May 2012
Posts: 2

PostPosted: Fri May 25, 2012 6:04 pm    Post subject: Reply with quote

Hi Mat,

Thanks for your reply. I already tried reinstalling the compiler, because I read about it in a different thread. I didn't see a prompt asking me whether I wanted to install the toolkit or not. I installed the PGI Workstation 12.5 package followed by the PGI Accelerator 12.5 package both times without prompts. And I've just checked again, there don't seem to be any options other than the location of the install.

Also, I just realised there is a /opt/pgi/osx86/12.5/cuda folder, but no /opt/pgi/osx86-64/12.5/cuda folder. I don't know if that could have anything to do with it?

Thanks again,

Joe
Back to top
View user's profile
mkcolg



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

PostPosted: Tue May 29, 2012 12:50 pm    Post subject: Reply with quote

Hi Joe,

Quote:
Also, I just realised there is a /opt/pgi/osx86/12.5/cuda folder, but no /opt/pgi/osx86-64/12.5/cuda folder. I don't know if that could have anything to do with it?
The cuda folder should be in "/opt/pgi/osx86/2012/cuda" and "/opt/pgi/osx86-64/2012/cuda". So what's not expected is that the folder is under the 32-bit 12.5 directory.

We do install testing before each release but I'll ask our engineers to double check that things are correct for MacOSX.

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