tAdded cudaCHooseDevice - sphere - GPU-based 3D discrete element method algorit… | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 4913beff6de85824c230a9ae5ebd387eafde0769 | |
parent 8fc31f7a414c45d4873d81dab38d5d1dda71e829 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Tue, 4 Dec 2012 14:28:09 +0100 | |
Added cudaCHooseDevice | |
Diffstat: | |
M src/device.cu | 4 ++-- | |
1 file changed, 2 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/src/device.cu b/src/device.cu | |
t@@ -47,7 +47,7 @@ __host__ void DEM::initializeGPU(void) | |
// Register number of devices | |
cudaGetDeviceCount(&devicecount); | |
- if(devicecount == 0) { | |
+ if (devicecount == 0) { | |
std::cerr << "\nERROR: No CUDA-enabled devices availible. Bye." | |
<< std::endl; | |
exit(EXIT_FAILURE); | |
t@@ -74,7 +74,7 @@ __host__ void DEM::initializeGPU(void) | |
} | |
// Comment following line when using a system only containing exclusive mo… | |
- //cudaChooseDevice(&cudadevice, &prop); | |
+ cudaChooseDevice(&cudadevice, &prop); | |
checkForCudaErrors("While initializing CUDA device"); | |
} |