Skip to content

Commit bfadb0f

Browse files
committed
unecessary CUDA.@allowscalar for x::Range
1 parent 17cc127 commit bfadb0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ end
248248
Returns an array, of the ArrayType of the device `grid` lives on, that contains the values of
249249
function `func` evaluated on the `grid`.
250250
"""
251-
on_grid(func, grid::OneDGrid) = CUDA.@allowscalar @. func(grid.x)
251+
on_grid(func, grid::OneDGrid) = func.(grid.x)
252252

253253
function on_grid(func, grid::TwoDGrid)
254254
x, y = gridpoints(grid)

0 commit comments

Comments
 (0)