Skip to content
This repository has been archived by the owner on Jun 27, 2022. It is now read-only.

Commit

Permalink
fix correlation1D illegal cuda memory bug
Browse files Browse the repository at this point in the history
  • Loading branch information
StOnEGiggity committed Dec 11, 2018
1 parent 1c561f7 commit f0213d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/operator/correlation1D.cu
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ void Forward_gpu(

int x_shift = - neighborhood_grid_radius_;
if(single_side == -1) { // to the left
x_shift = -neighborhood_grid_width_;
x_shift = -neighborhood_grid_radius_;
} else if(single_side == 1) { // to the right
x_shift = 0;
}
Expand Down Expand Up @@ -338,7 +338,7 @@ void Backward_gpu(

int x_shift = - neighborhood_grid_radius_;
if (single_side == -1) { // to the left
x_shift = -neighborhood_grid_width_;
x_shift = -neighborhood_grid_radius_;
} else if(single_side == 1) { // to the right
x_shift = 0;
}
Expand Down

0 comments on commit f0213d0

Please sign in to comment.