Skip to content

Commit

Permalink
Enzyme: mark device_sync as non-differentiable [only downstream]
Browse files Browse the repository at this point in the history
leads to a compile-time performance boost
  • Loading branch information
wsmoses authored Dec 26, 2024
1 parent a0c2f4b commit 09db71a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ext/EnzymeCoreExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ end
function EnzymeCore.EnzymeRules.inactive_noinl(::typeof(CUDA.is_pinned), args...)
return nothing
end
function EnzymeCore.EnzymeRules.inactive_noinl(::typeof(CUDA.device_synchronize), args...)
return nothing
end
function EnzymeCore.EnzymeRules.inactive(::typeof(CUDA.launch_configuration), args...; kwargs...)
return nothing
end
Expand Down

0 comments on commit 09db71a

Please sign in to comment.