tAdded cudaCHooseDevice - sphere - GPU-based 3D discrete element method algorithm with optional fluid coupling
 (HTM) git clone git://src.adamsgaard.dk/sphere
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) LICENSE
       ---
 (DIR) commit 4913beff6de85824c230a9ae5ebd387eafde0769
 (DIR) parent 8fc31f7a414c45d4873d81dab38d5d1dda71e829
 (HTM) Author: Anders Damsgaard <adc@geo.au.dk>
       Date:   Tue,  4 Dec 2012 14:28:09 +0100
       
       Added cudaCHooseDevice
       
       Diffstat:
         M src/device.cu                       |       4 ++--
       
       1 file changed, 2 insertions(+), 2 deletions(-)
       ---
 (DIR) 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 mode GPUs
       -    //cudaChooseDevice(&cudadevice, &prop); 
       +    cudaChooseDevice(&cudadevice, &prop); 
        
            checkForCudaErrors("While initializing CUDA device");
        }