| tchange to cudaSetDevice call - sphere - GPU-based 3D discrete element method a… | |
| git clone git://src.adamsgaard.dk/sphere | |
| Log | |
| Files | |
| Refs | |
| LICENSE | |
| --- | |
| commit 3a667e15cad30dff5e13719d67070f2c672dd13f | |
| parent 12069f935ee3eee83ca540f9cb3b60d62078b60d | |
| Author: Anders Damsgaard <[email protected]> | |
| 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(-) | |
| --- | |
| 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"); | |
| } |