tremoved failing copy of constant memory to multi GPUs - sphere - GPU-based 3D … | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit d2c4cf8394c22630b74b581fb67a0f44b7520c3b | |
parent 983734d17bb48ec0d5191c2e18e66808584afc95 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Mon, 30 Jun 2014 12:46:31 +0200 | |
removed failing copy of constant memory to multi GPUs | |
Diffstat: | |
M src/device.cu | 8 ++++---- | |
1 file changed, 4 insertions(+), 4 deletions(-) | |
--- | |
diff --git a/src/device.cu b/src/device.cu | |
t@@ -235,8 +235,8 @@ __host__ void DEM::transferToConstantDeviceMemory() | |
if (verbose == 1) | |
cout << " Transfering data to constant device memory: "; | |
- for (int d=0; d<ndevices; d++) { | |
- cudaSetDevice(d); | |
+ /*for (int d=0; d<ndevices; d++) { | |
+ cudaSetDevice(d);*/ | |
cudaMemcpyToSymbol(devC_nd, &nd, sizeof(nd)); | |
cudaMemcpyToSymbol(devC_np, &np, sizeof(np)); | |
cudaMemcpyToSymbol(devC_nw, &walls.nw, sizeof(unsigned int)); | |
t@@ -244,8 +244,8 @@ __host__ void DEM::transferToConstantDeviceMemory() | |
cudaMemcpyToSymbol(devC_dt, &time.dt, sizeof(Float)); | |
cudaMemcpyToSymbol(devC_grid, &grid, sizeof(Grid)); | |
cudaMemcpyToSymbol(devC_params, ¶ms, sizeof(Params)); | |
- } | |
- cudaSetDevice(device); | |
+ /*} | |
+ cudaSetDevice(device);*/ | |
checkForCudaErrors("After transferring to device constant memory"); | |