Skip to content

Commit

Permalink
3D SM and GM optimized
Browse files Browse the repository at this point in the history
  • Loading branch information
DiamonDinoia committed Jul 18, 2024
1 parent 366295d commit 24bf6be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion perftest/cuda/bench.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def build_args(args):
for i in range(1, 7):
args["--tol"] = "1E-" + str(i)
print("Running with tol = 1E-" + str(i))
for method in ['2', '1']:
for method in ['4', '2']:
args["--method"] = method
if method == '0':
data['method'].append('auto')
Expand Down
6 changes: 1 addition & 5 deletions src/cuda/common.cu
Original file line number Diff line number Diff line change
Expand Up @@ -277,11 +277,7 @@ void cufinufft_setup_binsize(int type, int ns, int dim, cufinufft_opts *opts) {
case 2: {
opts->gpu_binsizex = 32;
opts->gpu_binsizey = 32;
// fall through otherwise
if (opts->gpu_method && ns > 2) {
break;
}
}
} break;
case 1: {
cudaGetDevice(&device_id);
if (const auto err = cudaGetLastError(); err != cudaSuccess) {
Expand Down

0 comments on commit 24bf6be

Please sign in to comment.