Skip to content

Commit

Permalink
Update EnzymeGPUArraysCoreExt.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses authored Dec 23, 2024
1 parent 86e86e9 commit c63ecfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/EnzymeGPUArraysCoreExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ using GPUArraysCore
using Enzyme

@inline function Enzyme.onehot(x::AbstractGPUArray)
Enzyme.onehot_internal(zerosetfn, x, 0, length(x))
Enzyme.onehot_internal(Enzyme.zerosetfn, x, 0, length(x))
end

@inline function Enzyme.onehot(x::AbstractGPUArray, start::Int, endl::Int)
Enzyme.onehot_internal(zerosetfn, x, start-1, endl-start+1)
Enzyme.onehot_internal(Enzyme.zerosetfn, x, start-1, endl-start+1)
end

function Enzyme.zerosetfn(x::AbstractGPUArray, i::Int)
Expand Down

0 comments on commit c63ecfb

Please sign in to comment.