Skip to content

Commit

Permalink
replace correct file
Browse files Browse the repository at this point in the history
  • Loading branch information
VinInn committed Jul 10, 2021
1 parent 5023a68 commit dcdaca5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions RecoPixelVertexing/PixelTriplets/plugins/GPUCACell.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ class GPUCACell {
auto i = cellNeighbors.extend(); // maybe wasted....
if (i > 0) {
cellNeighbors[i].reset();
__threadfence();
#ifdef __CUDACC__
auto zero = (PtrAsInt)(&cellNeighbors[0]);
atomicCAS((PtrAsInt*)(&theOuterNeighbors),
Expand All @@ -89,6 +90,7 @@ class GPUCACell {
auto i = cellTracks.extend(); // maybe wasted....
if (i > 0) {
cellTracks[i].reset();
__threadfence();
#ifdef __CUDACC__
auto zero = (PtrAsInt)(&cellTracks[0]);
atomicCAS((PtrAsInt*)(&theTracks), zero, (PtrAsInt)(&cellTracks[i])); // if fails we cannot give "i" back...
Expand Down

0 comments on commit dcdaca5

Please sign in to comment.