Skip to content

Commit

Permalink
cuda: formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
blackwer committed Sep 7, 2023
1 parent 1cb892e commit 02bc3f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
7 changes: 3 additions & 4 deletions include/cufinufft/impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,10 @@ int cufinufft_makeplan_impl(int type, int dim, int *nmodes, int iflag, int ntran
}

/* Automatically set GPU method. */
if(d_plan->opts.gpu_method == 0)
{
if(type == 1)
if (d_plan->opts.gpu_method == 0) {
if (type == 1)
d_plan->opts.gpu_method = 2;
else if(type == 2)
else if (type == 2)
d_plan->opts.gpu_method = 1;
}

Expand Down
1 change: 0 additions & 1 deletion test/cuda/interp1d_test.cu
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ int run_test(int method, int nupts_distribute, int nf1, int M, T tol, int kereva
checkCudaErrors(cudaMalloc(&d_c, M * sizeof(complex_t)));
checkCudaErrors(cudaMalloc(&d_fw, nf1 * sizeof(complex_t)));

int dim = 1;
cufinufft_plan_t<real_t> *dplan;
dplan = new cufinufft_plan_t<real_t>;
// Zero out your struct, (sets all pointers to NULL, crucial)
Expand Down

0 comments on commit 02bc3f2

Please sign in to comment.