Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for https://github.com/3dem/relion/issues/1017 #1021

Merged
merged 1 commit into from
Nov 2, 2023
Merged
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
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
Loading