tchange to cudaSetDevice call - sphere - GPU-based 3D discrete element method algorithm with optional fluid coupling
HTML git clone git://src.adamsgaard.dk/sphere
DIR Log
DIR Files
DIR Refs
DIR LICENSE
---
DIR commit 3a667e15cad30dff5e13719d67070f2c672dd13f
DIR parent 12069f935ee3eee83ca540f9cb3b60d62078b60d
HTML Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Mon, 28 Jul 2014 11:35:35 +0200
change to cudaSetDevice call
Diffstat:
M src/device.cu | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
DIR diff --git a/src/device.cu b/src/device.cu
t@@ -136,7 +136,8 @@ __host__ void DEM::initializeGPU(void)
}
}
- cudaChooseDevice(&device, &prop);
+ // The value of device is now 0 or larger
+ cudaSetDevice(device);
checkForCudaErrors("While initializing CUDA device");
}