Skip to content

Commit

Permalink
error for DFT on gpu (Closes ##322)
Browse files Browse the repository at this point in the history
  • Loading branch information
Moritz Blumenthal committed Sep 7, 2024
1 parent 7ae7e42 commit b51d193
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/nufft.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,20 @@ int main_nufft(int argc, char* argv[argc])

cmdline(&argc, argv, ARRAY_SIZE(args), args, help_str, ARRAY_SIZE(opts), opts);

if (dft) {

if (bart_use_gpu)
error("DFT not supported on GPU.\n");

num_init();

bart_use_gpu = false;

} else {

num_init_gpu_support();
}

if (adjoint && inverse)
error("Adjoint and inverse requested at the same time.\n");

Expand Down Expand Up @@ -131,8 +145,6 @@ int main_nufft(int argc, char* argv[argc])
coilest_dims[0], coilest_dims[1], coilest_dims[2]);
}

num_init_gpu_support();

long basis_dims[DIMS];
complex float* basis = NULL;

Expand Down

0 comments on commit b51d193

Please sign in to comment.