Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/compiler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5074,7 +5074,7 @@ function GPUCompiler.compile_unhooked(output::Symbol, job::CompilerJob{<:EnzymeT
"trmv",
"syrk",
"trmm",
"trsm",
# "trsm", Not actually implemented yet
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry quick post commit review, can this be limited to 1.12+.

It will otherwise slow down other code by making it non-blas, if not differentiated

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oof, that's frustrating, shouldn't we ideally not do the blas replacement when a function is not being differentiated? Otherwise this problem occurs for many more functions?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it does indeed occur for more functions (which is why we should be somewhat sparing on the blas replacements).

The issue is that at the time of replacement, we haven't run activity analysis so we don't know what is needed and what isn't

"potrf",
)
ForwardModeTypes = ("s", "d", "c", "z")
Expand Down
Loading