espressomd-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ESPResSo-devel] configure and CUDA


From: Olaf Lenz
Subject: [ESPResSo-devel] configure and CUDA
Date: Tue, 12 Aug 2014 11:10:31 +0200

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]