Skip to content

Commit

Permalink
Fix JET tests?
Browse files Browse the repository at this point in the history
  • Loading branch information
jipolanco committed Sep 20, 2024
1 parent 5e9ab75 commit 2fc6487
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/blocking.jl
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ function BlockData(
@assert N - M > 0
min(B, N ÷ 2, N - M)
end
dims = block_dims .+ 2M # include padding for values outside of block (TODO: include padding in original block_dims?)
dims = block_dims .+ 2M # include padding for values outside of block (TODO: include padding in original block_dims? requires minimal block_size in each direction)
Tr = real(T)
block_sizes = map(Ñs, block_dims) do N, B
@inline
Expand All @@ -299,9 +299,9 @@ function BlockData(
)
end

function set_points!(::CPU, bd::BlockData, points::StructVector, xp, timer; transform::F = identity) where {F <: Function}
function set_points!(backend::CPU, bd::BlockData, points::StructVector, xp, timer; transform::F = identity) where {F <: Function}
# This technically never happens, but we might use it as a way to disable blocking.
isempty(bd.buffers) && return set_points!(NullBlockData(), points, xp, timer)
isempty(bd.buffers) && return set_points!(backend, NullBlockData(), points, xp, timer; transform)

(; indices, cumulative_npoints_per_block, blockidx, pointperm, block_sizes,) = bd
N = type_length(eltype(xp)) # = number of dimensions
Expand Down

0 comments on commit 2fc6487

Please sign in to comment.