Skip to content

Commit

Permalink
Merge pull request #1021 from 3dem/qfix_issue_1017
Browse files Browse the repository at this point in the history
Fix for #1017
  • Loading branch information
biochem-fan committed Nov 2, 2023
2 parents 635b591 + 9850446 commit 4c8ae10
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/fftw.h
Original file line number Diff line number Diff line change
Expand Up @@ -418,14 +418,6 @@ void centerFFT_2D_CPU(
int xshift,
int yshift)
{
#ifdef DEBUG_CUDA
if (image_size > (size_t)std::numeric_limits<int>::max())
ACC_PTR_DEBUG_INFO("centerFFT_2D: image_size > std::numeric_limits<int>::max()");
if (image_size*(size_t)batch_size > (size_t)std::numeric_limits<int>::max())
ACC_PTR_DEBUG_INFO("centerFFT_2D: image_size*batch_size > std::numeric_limits<int>::max()");
if (pixel_end > image_size)
ACC_PTR_DEBUG_INFO("centerFFT_2D: pixel_end > image_size");
#endif
size_t pix_start = pixel_start;
size_t pix_end = pixel_end;
for(int batch=0; batch<batch_size; batch++)
Expand Down Expand Up @@ -466,14 +458,6 @@ void centerFFT_3D_CPU(
int yshift,
int zshift)
{
#ifdef DEBUG_CUDA
if (image_size > (size_t)std::numeric_limits<int>::max())
ACC_PTR_DEBUG_INFO("centerFFT_3D: image_size > std::numeric_limits<int>::max()");
if (image_size*(size_t)batch_size > (size_t)std::numeric_limits<int>::max())
ACC_PTR_DEBUG_INFO("centerFFT_3D: image_size*batch_size > std::numeric_limits<int>::max()");
if (pixel_end > image_size)
ACC_PTR_DEBUG_INFO("centerFFT_3D: pixel_end > image_size");
#endif
size_t pix_start = pixel_start;
size_t pix_end = pixel_end;
int xydim = xdim*ydim;
Expand Down

0 comments on commit 4c8ae10

Please sign in to comment.