-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove invariant loads on primal computation #1325
Conversation
|
||
mod, meta = GPUCompiler.codegen(:llvm, primal_job; optimize=false, toplevel=toplevel, cleanup=false, validate=false, parent_job=parent_job) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
mod, meta = GPUCompiler.codegen(:llvm, primal_job; optimize=false, toplevel=toplevel, cleanup=false, validate=false, parent_job=parent_job) | |
mod, meta = GPUCompiler.codegen( | |
:llvm, | |
primal_job; | |
optimize=false, | |
toplevel=toplevel, | |
cleanup=false, | |
validate=false, | |
parent_job=parent_job, | |
) |
@@ -4366,6 +4366,9 @@ function GPUCompiler.codegen(output::Symbol, job::CompilerJob{<:EnzymeTarget}; | |||
|
|||
mod, meta = GPUCompiler.codegen(:llvm, primal_job; optimize=false, toplevel=toplevel, cleanup=false, validate=false, parent_job=parent_job) | |||
prepare_llvm(mod, primal_job, meta) | |||
for f in functions(mod) | |||
permit_inlining!(f) | |||
end | |||
|
|||
LLVM.ModulePassManager() do pm | |||
API.AddPreserveNVVMPass!(pm, #=Begin=#true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[JuliaFormatter] reported by reviewdog 🐶
API.AddPreserveNVVMPass!(pm, #=Begin=#true) | |
API.AddPreserveNVVMPass!(pm, true) #=Begin=# |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vchuravy @simsurace so I actually disagree with this part of the autoformatter, since I would very much like to know what that arg corresponds to (as presently specified with a comment).
What's the right way to do so in-format?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, good question. It seems to be a known issue domluna/JuliaFormatter.jl#562
I thought we were running this already, but somehow it might have decayed off?