PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

could not initialize CUDA runtime, error code=100

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



Joined: 14 Nov 2011
Posts: 2

PostPosted: Fri Feb 03, 2012 7:20 pm    Post subject: could not initialize CUDA runtime, error code=100 Reply with quote

I have successfully installed and used pgfortran 11.10 on my MacPro, but can't get it to see the GPU (Nvidia Quadro 4000).

Running pgaccelinfo -v gives

CUDA Driver Version: 4010
could not initialize CUDA runtime, error code=100
libamdcalcl.dylib not found
No accelerators found.
Check that you have installed the CUDA or CAL libraries properly
Check that your LD_LIBRARY_PATH environment variable points to the CUDA or CAL runtime installation directory
Check the permissions on your device

I have verified that the driver is loaded with: kextstat | grep -i cuda:

117 0 0xffffff7f81994000 0x2000 0x2000 com.nvidia.CUDA (1.1.0) <4>

and I have also added this line to my .bash_profile
export DYLD_LIBRARY_PATH=$PGI/opt/pgi/osx86/2011/cuda/4.0/lib:$DYLD_LIBRARY_PATH

Is there something else I should have done?
Back to top
View user's profile
mkcolg



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

PostPosted: Mon Feb 06, 2012 2:13 pm    Post subject: Reply with quote

Hi Peter,

Let's start by taking PGI out of the equation. Can you try compiling and running the CUDA SDK's device query example using NVIDIA's nvcc compiler?

Note that the CUDA components PGI ships are only necessary for compilation. All runtime libraries required by the NVIDIA CUDA Driver should be provided by NVIDIA. So if you're able to run the SDK example, try removing your DYLD_LIBRARY_PATH setting since this should not be pointing to a PGI directory.

- Mat
Back to top
View user's profile
PeterDaivis92620



Joined: 14 Nov 2011
Posts: 2

PostPosted: Mon Feb 06, 2012 4:13 pm    Post subject: Now working - thanks Reply with quote

Thanks for your reply and advice, Mat.

I reinstalled the Quadro 4000 driver (256.02.25f1v1) and the CUDA driver (4.1.25) recommended by Nvidia for MacOSX 10.6.8 on my MacPro 5,1.

Then I repaired permissions.

Then I installed the Cuda SDK etc from Nvidia and pointed DYLD_LIBRARY_PATH to the /usr/local/cuda/lib for their installation. deviceQuery now works and so do pgaccelinfo -v and the pgi version of deviceQuery.

Just one suggestion - there are some small differences between MacOSX and Linux that are not mentioned in the PGI documentation and make it slightly misleading and confusing, such as the difference between LD_LIBRARY_PATH and DYLD_LIBRARY_PATH. Clarifying these would make the process much easier for Mac users.


Thanks,

Peter
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