Skip to content

Commit

Permalink
Fix uninitialized memory access
Browse files Browse the repository at this point in the history
  • Loading branch information
fwyzard committed Aug 9, 2018
1 parent c21bbb7 commit d8a811e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ void CAHitQuadrupletGeneratorGPU::allocateOnGPU()

cudaCheck(cudaMalloc(&device_theCells_,
maxNumberOfLayerPairs_ * maxNumberOfDoublets_ * sizeof(GPUCACell)));
cudaCheck(cudaMalloc(&device_nCells_,sizeof(uint32_t)));
cudaCheck(cudaMalloc(&device_nCells_, sizeof(uint32_t)));
cudaCheck(cudaMemset(device_nCells_, 0, sizeof(uint32_t)));

cudaCheck(cudaMalloc(&device_isOuterHitOfCell_,
maxNumberOfLayers_ * maxNumberOfHits_ * sizeof(GPU::VecArray<unsigned int, maxCellsPerHit_>)));
Expand Down

0 comments on commit d8a811e

Please sign in to comment.