Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cxx/isce3/cuda/image/Resample.cu
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ void _resampleToCoordsGlobal(
// done with a multiple of the thrd_per_block pixels, but the output data size will
// typically be smaller than this multiple. So, some calls to this function on
// the device will be for non-existent pixels which must be discarded.
if (pixel_index > resampled_block_width * resampled_block_length) return;
if (pixel_index >= resampled_block_width * resampled_block_length) return;

const auto chip_size = static_cast<size_t>(SINC_ONE);

Expand Down
4 changes: 2 additions & 2 deletions cxx/isce3/cuda/image/gpuResampSlc.cu
Original file line number Diff line number Diff line change
Expand Up @@ -125,15 +125,15 @@ void transformTile(thrust::complex<float> *resampledSlc,
// Check if resampling possible at the starting rows of a tile.
(iRowResamp < chipHalf)
// Check if resampling possible at the ending rows of a tile.
|| (iRowResamp + chipHalf > inReadableLength);
|| (iRowResamp + chipHalf >= inReadableLength);

// Check if resampled column index is in bounds by checking if chip
// used to resample can be populated.
const bool colOutOfBounds =
// Check if resampling possible at starting columns of a tile.
(iColResamp - chipHalf < 0)
// Check if resampling possible at the ending columns of a tile.
|| (iColResamp + chipHalf > inWidth);
|| (iColResamp + chipHalf >= (long long int)inWidth);

// Skip computations if indices out of bound or az/rng not in doppler
if (rowOutOfBounds || colOutOfBounds || iRowResamp < 0 || iColResamp < 0)
Expand Down