Hi!
Configure tests whether a CUDA program runs by compiling and executing the following code:
#include <cuda.h>
int main() {
int no;
cudaGetDeviceCount(&no);
}
Unfortunately, this test will also run fine when a CUDA device is there but cannot be used (e.g. because you do not have write permissions to the device).
Does anyone have some simple CUDA code that will actually check whether a CUDA program can do anything?
Olaf
--
Dr. rer. nat. Olaf Lenz
Institut für Computerphysik, Allmandring 3, D-70569 Stuttgart
Phone: +49-711-685-63607