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

Follow-up to the big reorg PR #584

Merged
merged 13 commits into from
Nov 5, 2024
10 changes: 5 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ if(FINUFFT_USE_CPU)
set(XTL_VERSION 0.7.7)
set(XSIMD_VERSION 13.0.0)
# using latest ducc0 version for now as it fixes MacOS GCC build
set(DUCC0_VERSION b0beb85e03982344a31ebb119758d7aa3ef5d362)
ahbarnett marked this conversation as resolved.
Show resolved Hide resolved
set(DUCC0_VERSION ducc0_0_35_0)
set(FINUFFT_FFTW_LIBRARIES)
include(cmake/setupXSIMD.cmake)
if(FINUFFT_USE_DUCC0)
Expand Down Expand Up @@ -257,8 +257,8 @@ if(FINUFFT_USE_CPU)
src/utils.cpp
contrib/legendre_rule_fast.cpp
src/fft.cpp
src/finufft_core.cpp
src/simpleinterfaces.cpp
src/finufft.cpp
src/c_interface.cpp
fortran/finufftfort.cpp)
else()
add_library(
Expand All @@ -267,8 +267,8 @@ if(FINUFFT_USE_CPU)
src/utils.cpp
contrib/legendre_rule_fast.cpp
src/fft.cpp
src/finufft_core.cpp
src/simpleinterfaces.cpp
src/finufft.cpp
src/c_interface.cpp
fortran/finufftfort.cpp)
endif()
set_finufft_options(finufft)
Expand Down
221 changes: 94 additions & 127 deletions fortran/finufftfort.cpp

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions include/finufft.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

// This contains both single and double precision user-facing commands.
// "macro-safe" rewrite, including the plan object, Barnett 5/21/22-6/7/22.
// They will clobber any prior macros starting FINUFFT*, so in the lib/test
// sources finufft.h must be included before defs.h
// They will clobber any prior macros starting FINUFFT*.

/* Devnotes.
A) Two precisions done by including the "either precision" headers twice.
Expand Down
137 changes: 0 additions & 137 deletions include/finufft/defs.h

This file was deleted.

42 changes: 28 additions & 14 deletions include/finufft/dirft.h
Original file line number Diff line number Diff line change
@@ -1,22 +1,36 @@
#ifndef DIRFT_H
#define DIRFT_H

#include <finufft/defs.h>
#include <finufft/finufft_core.h>

void dirft1d1(BIGINT nj, FLT *x, CPX *c, int isign, BIGINT ms, CPX *f);
void dirft1d2(BIGINT nj, FLT *x, CPX *c, int iflag, BIGINT ms, CPX *f);
void dirft1d3(BIGINT nj, FLT *x, CPX *c, int iflag, BIGINT nk, FLT *s, CPX *f);
template<typename T>
void dirft1d1(BIGINT nj, T *x, std::complex<T> *c, int isign, BIGINT ms,
std::complex<T> *f);
template<typename T>
void dirft1d2(BIGINT nj, T *x, std::complex<T> *c, int iflag, BIGINT ms,
std::complex<T> *f);
template<typename T>
void dirft1d3(BIGINT nj, T *x, std::complex<T> *c, int iflag, BIGINT nk, T *s,
std::complex<T> *f);

void dirft2d1(BIGINT nj, FLT *x, FLT *y, CPX *c, int iflag, BIGINT ms, BIGINT mt, CPX *f);
void dirft2d2(BIGINT nj, FLT *x, FLT *y, CPX *c, int iflag, BIGINT ms, BIGINT mt, CPX *f);
void dirft2d3(BIGINT nj, FLT *x, FLT *y, CPX *c, int iflag, BIGINT nk, FLT *s, FLT *t,
CPX *f);
template<typename T>
void dirft2d1(BIGINT nj, T *x, T *y, std::complex<T> *c, int iflag, BIGINT ms, BIGINT mt,
std::complex<T> *f);
template<typename T>
void dirft2d2(BIGINT nj, T *x, T *y, std::complex<T> *c, int iflag, BIGINT ms, BIGINT mt,
std::complex<T> *f);
template<typename T>
void dirft2d3(BIGINT nj, T *x, T *y, std::complex<T> *c, int iflag, BIGINT nk, T *s, T *t,
std::complex<T> *f);

void dirft3d1(BIGINT nj, FLT *x, FLT *y, FLT *z, CPX *c, int iflag, BIGINT ms, BIGINT mt,
BIGINT mu, CPX *f);
void dirft3d2(BIGINT nj, FLT *x, FLT *y, FLT *z, CPX *c, int iflag, BIGINT ms, BIGINT mt,
BIGINT mu, CPX *f);
void dirft3d3(BIGINT nj, FLT *x, FLT *y, FLT *z, CPX *c, int iflag, BIGINT nk, FLT *s,
FLT *t, FLT *u, CPX *f);
template<typename T>
void dirft3d1(BIGINT nj, T *x, T *y, T *z, std::complex<T> *c, int iflag, BIGINT ms,
BIGINT mt, BIGINT mu, std::complex<T> *f);
template<typename T>
void dirft3d2(BIGINT nj, T *x, T *y, T *z, std::complex<T> *c, int iflag, BIGINT ms,
BIGINT mt, BIGINT mu, std::complex<T> *f);
template<typename T>
void dirft3d3(BIGINT nj, T *x, T *y, T *z, std::complex<T> *c, int iflag, BIGINT nk, T *s,
T *t, T *u, std::complex<T> *f);

#endif
9 changes: 9 additions & 0 deletions include/finufft/fft.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ template<typename T> class Finufft_FFT_plan {
public:
[[maybe_unused]] Finufft_FFT_plan(void (*)(void *) = nullptr,
void (*)(void *) = nullptr, void * = nullptr) {}
// deleting these operations to be consistent with the FFTW plans (seel below)
Finufft_FFT_plan(const Finufft_FFT_plan &) = delete;
Finufft_FFT_plan &operator=(const Finufft_FFT_plan &) = delete;
[[maybe_unused]] void plan(const std::vector<int> & /*dims*/, size_t /*batchSize*/,
std::complex<T> * /*ptr*/, int /*sign*/, int /*options*/,
int /*nthreads*/) {}
Expand Down Expand Up @@ -63,11 +66,15 @@ template<> struct Finufft_FFT_plan<float> {
#endif
unlock();
}
// we have raw pointers in the object (the FFTW plan).
// If we allow copying those, we end up destroying the plans multiple times.
Finufft_FFT_plan(const Finufft_FFT_plan &) = delete;
[[maybe_unused]] ~Finufft_FFT_plan() {
lock();
fftwf_destroy_plan(plan_);
unlock();
}
Finufft_FFT_plan &operator=(const Finufft_FFT_plan &) = delete;

void plan
[[maybe_unused]] (const std::vector<int> &dims, size_t batchSize,
Expand Down Expand Up @@ -131,11 +138,13 @@ template<> struct Finufft_FFT_plan<double> {
#endif
unlock();
}
Finufft_FFT_plan(const Finufft_FFT_plan &) = delete;
[[maybe_unused]] ~Finufft_FFT_plan() {
lock();
fftw_destroy_plan(plan_);
unlock();
}
Finufft_FFT_plan &operator=(const Finufft_FFT_plan &) = delete;

void plan
[[maybe_unused]] (const std::vector<int> &dims, size_t batchSize,
Expand Down
22 changes: 15 additions & 7 deletions include/finufft/finufft_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,17 @@
// values for M = nj (also nk in type 3)...
inline constexpr BIGINT MAX_NU_PTS = BIGINT(1e14);

// MR: In the longer term I suggest to move
// away from M_PI, which was never part of the standard.
// Perhaps a constexpr pi in the namespace finufft, or a constexpr finufft_pi
ahbarnett marked this conversation as resolved.
Show resolved Hide resolved
// if no namespaces are used?
// In C++20 these constants will be part of the language, and the problem will go away.
#ifndef M_PI // Windows apparently doesn't have this const
#define M_PI 3.14159265358979329
#endif
#define M_1_2PI 0.159154943091895336
#define M_2PI 6.28318530717958648

// ----- OpenMP macros which also work when omp not present -----
// Allows compile-time switch off of openmp, so compilation without any openmp
// is done (Note: _OPENMP is automatically set by -fopenmp compile flag)
Expand Down Expand Up @@ -138,7 +149,8 @@

// These default and delete specifications just state the obvious,
// but are here to silence compiler warnings.
FINUFFT_PLAN_T() = default;
FINUFFT_PLAN_T(int type, int dim, const BIGINT *n_modes, int iflag, int ntrans, TF tol,
ahbarnett marked this conversation as resolved.
Show resolved Hide resolved
finufft_opts *opts, int &ier);
// Copy construction and assignent are already deleted implicitly
// because of the unique_ptr member.
FINUFFT_PLAN_T(const FINUFFT_PLAN_T &) = delete;
Expand All @@ -147,12 +159,12 @@

int type; // transform type (Rokhlin naming): 1,2 or 3
int dim; // overall dimension: 1,2 or 3
int ntrans; // how many transforms to do at once (vector or "many" mode)

Check warning on line 162 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, native, On, Debug, cl, cl, On)

'FINUFFT_PLAN_T<f64>': '4' bytes padding added after data member 'FINUFFT_PLAN_T<f64>::ntrans'

Check warning on line 162 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, native, On, Debug, cl, cl, On)

'FINUFFT_PLAN_T<f32>': '4' bytes padding added after data member 'FINUFFT_PLAN_T<f32>::ntrans'

Check warning on line 162 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, /arch:SSE2, On, Debug, cl, cl, On)

'FINUFFT_PLAN_T<f64>': '4' bytes padding added after data member 'FINUFFT_PLAN_T<f64>::ntrans'

Check warning on line 162 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, /arch:SSE2, On, Debug, cl, cl, On)

'FINUFFT_PLAN_T<f32>': '4' bytes padding added after data member 'FINUFFT_PLAN_T<f32>::ntrans'

Check warning on line 162 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, /arch:AVX2, Off, Debug, cl, cl, On)

'FINUFFT_PLAN_T<f64>': '4' bytes padding added after data member 'FINUFFT_PLAN_T<f64>::ntrans'

Check warning on line 162 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, /arch:AVX2, Off, Debug, cl, cl, On)

'FINUFFT_PLAN_T<f32>': '4' bytes padding added after data member 'FINUFFT_PLAN_T<f32>::ntrans'

Check warning on line 162 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, /arch:SSE2, Off, Debug, cl, cl, On)

'FINUFFT_PLAN_T<f64>': '4' bytes padding added after data member 'FINUFFT_PLAN_T<f64>::ntrans'

Check warning on line 162 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, /arch:SSE2, Off, Debug, cl, cl, On)

'FINUFFT_PLAN_T<f32>': '4' bytes padding added after data member 'FINUFFT_PLAN_T<f32>::ntrans'

Check warning on line 162 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, /arch:AVX2, On, Debug, cl, cl, On)

'FINUFFT_PLAN_T<f64>': '4' bytes padding added after data member 'FINUFFT_PLAN_T<f64>::ntrans'

Check warning on line 162 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, /arch:AVX2, On, Debug, cl, cl, On)

'FINUFFT_PLAN_T<f32>': '4' bytes padding added after data member 'FINUFFT_PLAN_T<f32>::ntrans'

Check warning on line 162 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, native, Off, Debug, cl, cl, On)

'FINUFFT_PLAN_T<f64>': '4' bytes padding added after data member 'FINUFFT_PLAN_T<f64>::ntrans'

Check warning on line 162 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, native, Off, Debug, cl, cl, On)

'FINUFFT_PLAN_T<f32>': '4' bytes padding added after data member 'FINUFFT_PLAN_T<f32>::ntrans'

Check warning on line 162 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, /arch:AVX2, On, Debug, cl, cl, Off)

'FINUFFT_PLAN_T<f64>': '4' bytes padding added after data member 'FINUFFT_PLAN_T<f64>::ntrans'

Check warning on line 162 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, /arch:AVX2, On, Debug, cl, cl, Off)

'FINUFFT_PLAN_T<f32>': '4' bytes padding added after data member 'FINUFFT_PLAN_T<f32>::ntrans'

Check warning on line 162 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, /arch:SSE2, Off, Debug, cl, cl, Off)

'FINUFFT_PLAN_T<f64>': '4' bytes padding added after data member 'FINUFFT_PLAN_T<f64>::ntrans'

Check warning on line 162 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, /arch:SSE2, Off, Debug, cl, cl, Off)

'FINUFFT_PLAN_T<f32>': '4' bytes padding added after data member 'FINUFFT_PLAN_T<f32>::ntrans'

Check warning on line 162 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, /arch:AVX2, Off, Debug, cl, cl, Off)

'FINUFFT_PLAN_T<f64>': '4' bytes padding added after data member 'FINUFFT_PLAN_T<f64>::ntrans'

Check warning on line 162 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, /arch:SSE2, On, Debug, cl, cl, Off)

'FINUFFT_PLAN_T<f64>': '4' bytes padding added after data member 'FINUFFT_PLAN_T<f64>::ntrans'

Check warning on line 162 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, /arch:SSE2, On, Debug, cl, cl, Off)

'FINUFFT_PLAN_T<f32>': '4' bytes padding added after data member 'FINUFFT_PLAN_T<f32>::ntrans'

Check warning on line 162 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, native, On, Debug, cl, cl, Off)

'FINUFFT_PLAN_T<f64>': '4' bytes padding added after data member 'FINUFFT_PLAN_T<f64>::ntrans'

Check warning on line 162 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, native, Off, Debug, cl, cl, Off)

'FINUFFT_PLAN_T<f64>': '4' bytes padding added after data member 'FINUFFT_PLAN_T<f64>::ntrans'
BIGINT nj; // num of NU pts in type 1,2 (for type 3, num input x pts)
BIGINT nk; // number of NU freq pts (type 3 only)
TF tol; // relative user tolerance
int batchSize; // # strength vectors to group together for FFTW, etc
int nbatch; // how many batches done to cover all ntrans vectors

Check warning on line 167 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, native, On, Debug, cl, cl, On)

'FINUFFT_PLAN_T<f32>': '4' bytes padding added after data member 'FINUFFT_PLAN_T<f32>::nbatch'

Check warning on line 167 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, /arch:SSE2, On, Debug, cl, cl, On)

'FINUFFT_PLAN_T<f32>': '4' bytes padding added after data member 'FINUFFT_PLAN_T<f32>::nbatch'

Check warning on line 167 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, /arch:AVX2, Off, Debug, cl, cl, On)

'FINUFFT_PLAN_T<f32>': '4' bytes padding added after data member 'FINUFFT_PLAN_T<f32>::nbatch'

Check warning on line 167 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, /arch:SSE2, Off, Debug, cl, cl, On)

'FINUFFT_PLAN_T<f32>': '4' bytes padding added after data member 'FINUFFT_PLAN_T<f32>::nbatch'

Check warning on line 167 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, /arch:AVX2, On, Debug, cl, cl, On)

'FINUFFT_PLAN_T<f32>': '4' bytes padding added after data member 'FINUFFT_PLAN_T<f32>::nbatch'

Check warning on line 167 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, native, Off, Debug, cl, cl, On)

'FINUFFT_PLAN_T<f32>': '4' bytes padding added after data member 'FINUFFT_PLAN_T<f32>::nbatch'

BIGINT ms; // number of modes in x (1) dir (historical CMCL name) = N1
BIGINT mt; // number of modes in y (2) direction = N2
Expand All @@ -164,7 +176,7 @@
BIGINT nf3; // " z (3)
BIGINT nf; // total # fine grid points (product of the above three)

int fftSign; // sign in exponential for NUFFT defn, guaranteed to be +-1

Check warning on line 179 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, native, On, Debug, cl, cl, On)

'FINUFFT_PLAN_T<f64>': '4' bytes padding added after data member 'FINUFFT_PLAN_T<f64>::fftSign'

Check warning on line 179 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, /arch:SSE2, On, Debug, cl, cl, On)

'FINUFFT_PLAN_T<f64>': '4' bytes padding added after data member 'FINUFFT_PLAN_T<f64>::fftSign'

Check warning on line 179 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, /arch:AVX2, Off, Debug, cl, cl, On)

'FINUFFT_PLAN_T<f64>': '4' bytes padding added after data member 'FINUFFT_PLAN_T<f64>::fftSign'

Check warning on line 179 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, /arch:SSE2, Off, Debug, cl, cl, On)

'FINUFFT_PLAN_T<f64>': '4' bytes padding added after data member 'FINUFFT_PLAN_T<f64>::fftSign'

Check warning on line 179 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, /arch:SSE2, Off, Debug, cl, cl, On)

'FINUFFT_PLAN_T<f32>': '4' bytes padding added after data member 'FINUFFT_PLAN_T<f32>::fftSign'

Check warning on line 179 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, /arch:AVX2, On, Debug, cl, cl, On)

'FINUFFT_PLAN_T<f64>': '4' bytes padding added after data member 'FINUFFT_PLAN_T<f64>::fftSign'

Check warning on line 179 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, native, Off, Debug, cl, cl, On)

'FINUFFT_PLAN_T<f64>': '4' bytes padding added after data member 'FINUFFT_PLAN_T<f64>::fftSign'

Check warning on line 179 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, /arch:AVX2, On, Debug, cl, cl, Off)

'FINUFFT_PLAN_T<f64>': '4' bytes padding added after data member 'FINUFFT_PLAN_T<f64>::fftSign'

Check warning on line 179 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, /arch:SSE2, Off, Debug, cl, cl, Off)

'FINUFFT_PLAN_T<f64>': '4' bytes padding added after data member 'FINUFFT_PLAN_T<f64>::fftSign'

Check warning on line 179 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, /arch:AVX2, Off, Debug, cl, cl, Off)

'FINUFFT_PLAN_T<f64>': '4' bytes padding added after data member 'FINUFFT_PLAN_T<f64>::fftSign'

Check warning on line 179 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, /arch:SSE2, On, Debug, cl, cl, Off)

'FINUFFT_PLAN_T<f64>': '4' bytes padding added after data member 'FINUFFT_PLAN_T<f64>::fftSign'

Check warning on line 179 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, native, On, Debug, cl, cl, Off)

'FINUFFT_PLAN_T<f64>': '4' bytes padding added after data member 'FINUFFT_PLAN_T<f64>::fftSign'

Check warning on line 179 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, native, Off, Debug, cl, cl, Off)

'FINUFFT_PLAN_T<f64>': '4' bytes padding added after data member 'FINUFFT_PLAN_T<f64>::fftSign'

std::vector<TF> phiHat1; // FT of kernel in t1,2, on x-axis mode grid
std::vector<TF> phiHat2; // " y-axis.
Expand All @@ -174,7 +186,7 @@
// & act on. Usually the largest working array

std::vector<BIGINT> sortIndices; // precomputed NU pt permutation, speeds spread/interp
bool didSort; // whether binsorting used (false: identity perm used)

Check warning on line 189 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, native, On, Debug, cl, cl, On)

'FINUFFT_PLAN_T<f64>': '7' bytes padding added after data member 'FINUFFT_PLAN_T<f64>::didSort'

Check warning on line 189 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, /arch:SSE2, On, Debug, cl, cl, On)

'FINUFFT_PLAN_T<f64>': '7' bytes padding added after data member 'FINUFFT_PLAN_T<f64>::didSort'

Check warning on line 189 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, /arch:AVX2, Off, Debug, cl, cl, On)

'FINUFFT_PLAN_T<f64>': '7' bytes padding added after data member 'FINUFFT_PLAN_T<f64>::didSort'

Check warning on line 189 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, /arch:SSE2, Off, Debug, cl, cl, On)

'FINUFFT_PLAN_T<f64>': '7' bytes padding added after data member 'FINUFFT_PLAN_T<f64>::didSort'

Check warning on line 189 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, /arch:AVX2, On, Debug, cl, cl, On)

'FINUFFT_PLAN_T<f64>': '7' bytes padding added after data member 'FINUFFT_PLAN_T<f64>::didSort'

Check warning on line 189 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, native, Off, Debug, cl, cl, On)

'FINUFFT_PLAN_T<f64>': '7' bytes padding added after data member 'FINUFFT_PLAN_T<f64>::didSort'

Check warning on line 189 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, /arch:AVX2, On, Debug, cl, cl, Off)

'FINUFFT_PLAN_T<f64>': '7' bytes padding added after data member 'FINUFFT_PLAN_T<f64>::didSort'

Check warning on line 189 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, /arch:SSE2, Off, Debug, cl, cl, Off)

'FINUFFT_PLAN_T<f64>': '7' bytes padding added after data member 'FINUFFT_PLAN_T<f64>::didSort'

Check warning on line 189 in include/finufft/finufft_core.h

View workflow job for this annotation

GitHub Actions / cmake-ci (windows-2022, msvc, /arch:SSE2, On, Debug, cl, cl, Off)

'FINUFFT_PLAN_T<f64>': '7' bytes padding added after data member 'FINUFFT_PLAN_T<f64>::didSort'

TF *X = nullptr, *Y = nullptr, *Z = nullptr; // for t1,2: ptr to user-supplied NU pts
// (no new allocs). for t3: allocated as
Expand All @@ -189,7 +201,8 @@
std::vector<TF> Sp, Tp, Up; // internal primed targs (s'_k, etc),
// allocated
type3params<TF> t3P; // groups together type 3 shift, scale, phase, parameters
FINUFFT_PLAN_T<TF> *innerT2plan = nullptr; // ptr used for type 2 in step 2 of type 3
std::unique_ptr<FINUFFT_PLAN_T<TF>> innerT2plan; // ptr used for type 2 in step 2 of
// type 3

// other internal structs
std::unique_ptr<Finufft_FFT_plan<TF>> fftPlan;
Expand All @@ -204,10 +217,5 @@
template<typename TF>
int finufft_makeplan_t(int type, int dim, const BIGINT *n_modes, int iflag, int ntrans,
TF tol, FINUFFT_PLAN_T<TF> **pp, finufft_opts *opts);
template<typename TF>
int finufft_setpts_t(FINUFFT_PLAN_T<TF> *p, BIGINT nj, TF *xj, TF *yj, TF *zj, BIGINT nk,
TF *s, TF *t, TF *u);
template<typename TF>
int finufft_execute_t(FINUFFT_PLAN_T<TF> *p, std::complex<TF> *cj, std::complex<TF> *fk);

#endif // FINUFFT_CORE_H
3 changes: 2 additions & 1 deletion include/finufft/spreadinterp.h
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
// Defines interface to spreading/interpolation code.

// Devnotes: see defs.h for definition of MAX_NSPREAD (as of 9/24/18).
// Devnotes: see finufft_core.h for definition of MAX_NSPREAD
// RESCALE macro moved to spreadinterp.cpp, 7/15/20.
// finufft_spread_opts renamed 6/7/22.

#ifndef SPREADINTERP_H
#define SPREADINTERP_H

#include <finufft/finufft_core.h>
#include <finufft_spread_opts.h>

/* Bitwise debugging timing flag (TF) defs; see finufft_spread_opts.flags.
Expand Down
Loading
Loading