Skip to content

Commit e7547cd

Browse files
committed
Fix dispatch for bounds errors on GPU
1 parent 31923a0 commit e7547cd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "PointNeighbors"
22
uuid = "1c4d5385-0a27-49de-8e2c-43b175c8985c"
33
authors = ["Erik Faulhaber <erik.faulhaber@uni-koeln.de>"]
4-
version = "0.6.0"
4+
version = "0.4.9-dev"
55

66
[deps]
77
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"

src/cell_lists/full_grid.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,9 @@ function max_points_per_cell(cells)
222222
return 100
223223
end
224224

225-
@inline function check_cell_bounds(cell_list::FullGridCellList, cell::Tuple)
225+
@inline function check_cell_bounds(cell_list::FullGridCellList{<:DynamicVectorOfVectors{<:Any,
226+
<:Array}},
227+
cell::Tuple)
226228
(; linear_indices) = cell_list
227229

228230
# Make sure that points are not added to the outer padding layer, which is needed
@@ -236,9 +238,7 @@ end
236238
end
237239

238240
# On GPUs, we can't throw a proper error message because string interpolation is not allowed
239-
@inline function check_cell_bounds(cell_list::FullGridCellList{<:DynamicVectorOfVectors{<:Any,
240-
<:AbstractGPUArray}},
241-
cell::Tuple)
241+
@inline function check_cell_bounds(cell_list::FullGridCellList, cell::Tuple)
242242
(; linear_indices) = cell_list
243243

244244
# Make sure that points are not added to the outer padding layer, which is needed

0 commit comments

Comments
 (0)