Introduction
Introduction Statistics Contact Development Disclaimer Help
tConstant memory vars referenced directly, not by string - sphere - GPU-based 3…
git clone git://src.adamsgaard.dk/sphere
Log
Files
Refs
LICENSE
---
commit 6bbe20b846311d165bb831422b509c93f00bfa30
parent 9371ce64cd832118cb825c28b8005f13038360fa
Author: Anders Damsgaard <[email protected]>
Date: Wed, 13 Mar 2013 23:42:07 +0100
Constant memory vars referenced directly, not by string
Diffstat:
M src/device.cu | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/src/device.cu b/src/device.cu
t@@ -200,11 +200,17 @@ __host__ void DEM::transferToConstantDeviceMemory()
if (verbose == 1)
cout << " Transfering data to constant device memory: ";
+ /*// Reference by string deprecated in cuda 5.0
cudaMemcpyToSymbol("devC_nd", &nd, sizeof(nd));
cudaMemcpyToSymbol("devC_np", &np, sizeof(np));
cudaMemcpyToSymbol("devC_nw", &walls.nw, sizeof(unsigned int));
cudaMemcpyToSymbol("devC_nc", &NC, sizeof(int));
- cudaMemcpyToSymbol("devC_dt", &time.dt, sizeof(Float));
+ cudaMemcpyToSymbol("devC_dt", &time.dt, sizeof(Float));*/
+ cudaMemcpyToSymbol(devC_nd, &nd, sizeof(nd));
+ cudaMemcpyToSymbol(devC_np, &np, sizeof(np));
+ cudaMemcpyToSymbol(devC_nw, &walls.nw, sizeof(unsigned int));
+ cudaMemcpyToSymbol(devC_nc, &NC, sizeof(int));
+ cudaMemcpyToSymbol(devC_dt, &time.dt, sizeof(Float));
cudaMemcpyToSymbol(devC_grid, &grid, sizeof(Grid));
cudaMemcpyToSymbol(devC_params, &params, sizeof(Params));
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.