You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ext/EnzymeExt.jl
+2-32Lines changed: 2 additions & 32 deletions
Original file line number
Diff line number
Diff line change
@@ -70,25 +70,6 @@ module EnzymeExt
70
70
fwd_kernel(f, args...; ndrange, workgroupsize)
71
71
end
72
72
73
-
74
-
@inlinefunctionmake_active_byref(f::F, ::Val{ActiveTys}) where {F, ActiveTys}
75
-
if!any(ActiveTys)
76
-
return f
77
-
end
78
-
functioninact(ctx, args2::Vararg{Any, N}) where N
79
-
args3 =ntuple(Val(N)) do i
80
-
Base.@_inline_meta
81
-
if ActiveTys[i]
82
-
args2[i][]
83
-
else
84
-
args2[i]
85
-
end
86
-
end
87
-
f(ctx, args3...)
88
-
end
89
-
return inact
90
-
end
91
-
92
73
function EnzymeRules.augmented_primal(config::Config, func::Const{<:Kernel{CPU}}, ::Type{Const{Nothing}}, args::Vararg{Any, N}; ndrange=nothing, workgroupsize=nothing) where N
0 commit comments