well, your code definitely does not fail with cuda 1.1, OpenSuSE 10.2 (32 and 64bit), 8600GT or 8800GTX. Sorry, I don’t have cuda2 installed at this time. Try downgrading, if it still fails for you, then the error must be somewhere in your setup.
Drivers: 169.09 on the 64bit box with the 8800gtx in it, and 177.10 on a 32bit box with the 8600GT.
Run the deviceQuery SDK sample. It will likely report that no device is detected.
The usual cause of this is that cuda library was not installed with the driver or you have the wrong driver for the CUDA version you are using. For CUDA 1.1, re-install the latest driver available at www.nvidia.com. For CUDA 2.0, you must install the driver specifically for the beta.
If you are on linux and installing the drivers through your OS’s package manager, it may not be installing the cuda library. Search the forums for some previous solutions to this problem for particular linux distributions.