Skip to content

Commit 3bd36a9

Browse files
committed
Force specialization with mapidx function.
1 parent 6cec87e commit 3bd36a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/broadcast.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ end
6969
copyto!(dest, convert(Broadcasted{Nothing}, bc))
7070

7171
# TODO: is this still necessary?
72-
function mapidx(f, A::GPUArray, args::NTuple{N, Any}) where N
73-
gpu_call(A, (f, A, args)) do state, f, A, args
72+
function mapidx(f::F, A::GPUArray, args::NTuple{N, Any}) where {F,N}
73+
gpu_call(A, (f, A, args)) do state, f::F, A, args
7474
ilin = @linearidx(A, state)
7575
f(ilin, A, args...)
7676
end

0 commit comments

Comments
 (0)