5 extern "C" int use_cuda(void)
8 cudaError_t err = cudaGetDeviceCount(&nDevices);
9 if (err != cudaSuccess) {
10 std::cerr << "Failed to retrieve the number of CUDA enabled devices"
14 std::cout << "Found " << nDevices << " CUDA enabled devices" << std::endl;