Commit 8689a536 authored by Peter Eastman's avatar Peter Eastman
Browse files

Minor bug fix

parent 8d206abc
......@@ -184,8 +184,10 @@ __global__ void moveValidElementsScattered(const T* dgData,T* dgCompact,const un
}
void planCompaction(compactionPlan& d,bool stageOutput) {
int device;
cudaGetDevice(&device);
cudaDeviceProp deviceProp;
cudaGetDeviceProperties(&deviceProp, 0);
cudaGetDeviceProperties(&deviceProp, device);
d.nThreadBlocks = 16*deviceProp.multiProcessorCount;
cudaMalloc((void**)&(d.dgBlockCounts), d.nThreadBlocks*sizeof(unsigned int));
d.stageOutput = stageOutput;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment