tadd information on automatically chosen device - 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 af88cc3aca4957e76bb71e3d08d51cd5c173e74d
(DIR) parent b1524662d66a4c90fb6a539b4da4fee656403cb0
(HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Mon, 28 Jul 2014 11:25:20 +0200
add information on automatically chosen device
Diffstat:
M python/permeability.sh | 4 ++--
M src/device.cu | 5 +++++
2 files changed, 7 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/python/permeability.sh b/python/permeability.sh
t@@ -39,8 +39,8 @@ nvidia-smi
rm CMakeCache.txt
cmake . && make && make test
cd python
-python permeability1.py &
-python permeability2.py &
+#python permeability1.py &
+#python permeability2.py &
python permeability3.py &
wait
(DIR) diff --git a/src/device.cu b/src/device.cu
t@@ -110,6 +110,11 @@ __host__ void DEM::initializeGPU(void)
}
device = cudadevice; // store in DEM class
+ if (verbose == 1) {
+ cout << " Using CUDA device ID " << device << " with "
+ << max_ncudacores << " cores." << std::endl;
+ }
+
} else {
cudaGetDeviceProperties(&prop, device);