Commit 1459580e authored by Luka Stanisic's avatar Luka Stanisic

temporarily disabled fastest CUDA detection, since it strangely causes error on dvl machine

parent c4d1dff7
...@@ -290,6 +290,11 @@ int bioem_cuda::selectCudaDevice() ...@@ -290,6 +290,11 @@ int bioem_cuda::selectCudaDevice()
printf("No CUDA device detected\n"); printf("No CUDA device detected\n");
return(1); return(1);
} }
/* The following code, doing search for a fastest GPU,
is temporarily disabled since it causes initialization
errors on dvl machine. It is safe to ignore warnings
for "bestDeviceSpeed" */
#if 0
for (int i = 0;i < count;i++) for (int i = 0;i < count;i++)
{ {
#if CUDA_VERSION > 3010 #if CUDA_VERSION > 3010
...@@ -314,6 +319,7 @@ int bioem_cuda::selectCudaDevice() ...@@ -314,6 +319,7 @@ int bioem_cuda::selectCudaDevice()
bestDeviceSpeed = deviceSpeed; bestDeviceSpeed = deviceSpeed;
} }
} }
#endif
if (getenv("GPUDEVICE")) if (getenv("GPUDEVICE"))
{ {
int device = atoi(getenv("GPUDEVICE")); int device = atoi(getenv("GPUDEVICE"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment