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
I've just tested it works fine with 270.41.19 (at least on amd64, the previous post was from x86).
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?
Please retest with newer versions.