Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 375823

Summary: dev-util/nvidia-cuda-sdk-4.0 does not work with nvidia-drivers-270.41.06 / cudaGetDeviceCount returned 3
Product: Gentoo Linux Reporter: Tomas Vondra <tv>
Component: New packagesAssignee: Michal Januszewski (RETIRED) <spock>
Status: RESOLVED TEST-REQUEST    
Severity: normal CC: marius.brehler+gentoo
Priority: Normal    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Tomas Vondra 2011-07-20 22:31:42 UTC
After installing the current CUDA SDK / toolkit (4.0), it did not work with the nvidia-drivers-270.41.06 ebuild. Everything worked fine, but when running deviceQuery example I was constantly getting this error:

cudaGetDeviceCount returned 3
-> initialization error
[deviceQuery.exe] test results...
FAILED

After I downloaded the fresh drivers from nvidia.com (NVIDIA-Linux-x86-275.19.run) and installed it, everything worked fine.

Not sure if there's an incompatibility or what - maybe the SDK should require a newer nvidia-drivers ebuild?

Reproducible: Always

Steps to Reproduce:
1. install current nvidia-drivers (270.41.06) and nvidia-cuda-sdk (4.0)
2. try to run /opt/cuda/sdk/C/bin/linux/release/deviceQuery

Actual Results:  
the utility prints "cudaGetDeviceCount returned 3" error

Expected Results:  
the utility should print info about the nvidia device
Comment 1 Tomas Vondra 2011-07-26 20:29:17 UTC
I've just tested it works fine with 270.41.19 (at least on amd64, the previous post was from x86).
Comment 2 Marius Brehler 2012-04-24 21:51:33 UTC
On http://developer.nvidia.com/cuda-toolkit-40 nvidia-driver 270.41.19 is listed as "Developer Drivers for Linux". Normally this is the first version which fully supports the new CUDA toolkit/sdk.

Maybe this should be fixed, if it is planed to provide CUDA 4.0 in future (also after 4.2 was released yesterday).
It also seems that there is no version 270 driver in portage any more. Should the ebuild require one of the 290 drivers instead or would 270.41.19 even be fine?
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2012-07-22 22:12:24 UTC
Please retest with newer versions.