Skip to content

Commit

Permalink
Try to fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jipolanco committed Sep 20, 2024
1 parent 4f68830 commit 5e9ab75
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/abstractNFFTs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Base.@constprop :aggressive function PlanNUFFT(
m, σ, reltol = AbstractNFFTs.accuracyParams(; kwargs...)
backend = KA.get_backend(xp) # e.g. use GPU backend if xp is a GPU array
sort_points = sortNodes ? True() : False() # this is type-unstable (unless constant propagation happens)
block_size = blocking ? default_block_size() : nothing # also type-unstable
block_size = blocking ? default_block_size(backend) : nothing # also type-unstable
kernel = window isa AbstractKernel ? window : convert_window_function(window)
p = PlanNUFFT(Complex{Tr}, Ns, HalfSupport(m); backend, σ = Tr(σ), sort_points, fftshift, block_size, kernel, fftw_flags = fftflags)
AbstractNFFTs.nodes!(p, xp)
Expand Down
4 changes: 2 additions & 2 deletions test/accuracy.jl
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function test_nufft_type1_1d(
Np = 2 * N,
m = HalfSupport(8),
σ = 1.25,
block_size = NonuniformFFTs.default_block_size(),
block_size = NonuniformFFTs.default_block_size(CPU()),
) where {T <: Number}
if T <: Real
Tr = T
Expand Down Expand Up @@ -154,7 +154,7 @@ function test_nufft_type2_1d(
Np = 2 * N,
m = HalfSupport(8),
σ = 1.25,
block_size = NonuniformFFTs.default_block_size(),
block_size = NonuniformFFTs.default_block_size(CPU()),
) where {T <: Number}
if T <: Real
Tr = T
Expand Down
4 changes: 2 additions & 2 deletions test/multidimensional.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function test_nufft_type1(
Np = 2 * first(Ns),
m = HalfSupport(8),
σ = 1.25,
block_size = NonuniformFFTs.default_block_size(),
block_size = NonuniformFFTs.default_block_size(CPU()),
sort_points = False(),
) where {T <: Number}
Tr = real(T)
Expand Down Expand Up @@ -79,7 +79,7 @@ function test_nufft_type2(
Np = 2 * first(Ns),
m = HalfSupport(8),
σ = 1.25,
block_size = NonuniformFFTs.default_block_size(),
block_size = NonuniformFFTs.default_block_size(CPU()),
sort_points = False(),
) where {T <: Number}
Tr = real(T)
Expand Down

0 comments on commit 5e9ab75

Please sign in to comment.