tadd information on automatically chosen device - sphere - GPU-based 3D discret… | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit af88cc3aca4957e76bb71e3d08d51cd5c173e74d | |
parent b1524662d66a4c90fb6a539b4da4fee656403cb0 | |
Author: Anders Damsgaard <[email protected]> | |
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(-) | |
--- | |
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 | |
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); |