Skip to content

Commit

Permalink
naming issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dfm committed Mar 13, 2024
1 parent 1c23899 commit 77c102c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion lib/jax_finufft_cpu.cc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ void run_nufft(int type, void *desc_in, T *x, T *y, T *z, std::complex<T> *c, st
reinterpret_cast<const char *>(desc_in), sizeof(cpu::descriptor<T>));
int64_t n_k = 1;
for (int d = 0; d < ndim; ++d) n_k *= descriptor->n_k[d];
finufft_opts opts = descriptor->opts.finufft_opts;
finufft_opts opts = descriptor->opts._opts;

typename cpu::plan_type<T>::type plan;
cpu::makeplan<T>(type, ndim, const_cast<int64_t *>(descriptor->n_k), descriptor->iflag,
Expand Down
40 changes: 20 additions & 20 deletions lib/jax_finufft_cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ struct opts {
enum SpreadSort { No = 0, Yes, Heuristic };
enum SpreadThread { Auto = 0, Seq, Parallel };

finufft_opts finufft_opts;
finufft_opts _opts;

opts(bool modeord, // (type 1,2 only): 0 CMCL-style increasing mode order
// 1 FFT-style mode order
Expand All @@ -163,25 +163,25 @@ struct opts {
int spread_nthr_atomic, // if >=0, threads above which spreader OMP critical goes atomic
int spread_max_sp_size // if >0, overrides spreader (dir=1) max subproblem size
) {
default_opts<double>(&finufft_opts);

finufft_opts.modeord = modeord;
finufft_opts.chkbnds = chkbnds;

finufft_opts.debug = int(debug);
finufft_opts.spread_debug = int(spread_debug);
finufft_opts.showwarn = int(showwarn);

finufft_opts.nthreads = nthreads;
finufft_opts.fftw = fftw;
finufft_opts.spread_sort = spread_sort;
finufft_opts.spread_kerevalmeth = int(spread_kerevalmeth);
finufft_opts.spread_kerpad = int(spread_kerpad);
finufft_opts.upsampfac = upsampfac;
finufft_opts.spread_thread = int(spread_thread);
finufft_opts.maxbatchsize = maxbatchsize;
finufft_opts.spread_nthr_atomic = spread_nthr_atomic;
finufft_opts.spread_max_sp_size = spread_max_sp_size;
default_opts<double>(&_opts);

_opts.modeord = modeord;
_opts.chkbnds = chkbnds;

_opts.debug = int(debug);
_opts.spread_debug = int(spread_debug);
_opts.showwarn = int(showwarn);

_opts.nthreads = nthreads;
_opts.fftw = fftw;
_opts.spread_sort = spread_sort;
_opts.spread_kerevalmeth = int(spread_kerevalmeth);
_opts.spread_kerpad = int(spread_kerpad);
_opts.upsampfac = upsampfac;
_opts.spread_thread = int(spread_thread);
_opts.maxbatchsize = maxbatchsize;
_opts.spread_nthr_atomic = spread_nthr_atomic;
_opts.spread_max_sp_size = spread_max_sp_size;
}
};

Expand Down

0 comments on commit 77c102c

Please sign in to comment.