Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 375823 - dev-util/nvidia-cuda-sdk-4.0 does not work with nvidia-drivers-270.41.06 / cudaGetDeviceCount returned 3
Summary: dev-util/nvidia-cuda-sdk-4.0 does not work with nvidia-drivers-270.41.06 / cu...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Michal Januszewski (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-20 22:31 UTC by Tomas Vondra
Modified: 2012-07-22 22:12 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.