-
Notifications
You must be signed in to change notification settings - Fork 82
Add example of workgroupsize breaking Enzyme #2751
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
base: main
Are you sure you want to change the base?
Conversation
vchuravy
commented
Nov 8, 2025
|
what exactly is and can we define a relevant custom derivative handler for it? it's come up a few times |
|
it looks like its a different way of throwing a method error? which would explain why the unreachable thing happened? |
|
The primal code doesn't throw, so it might be something that is emitted as a fallback. Now I have a small enough example that I can stare at Monday |
1944a5a to
50e1738
Compare
Benchmark Results
Benchmark PlotsA plot of the benchmark results has been uploaded as an artifact at https://github.com/EnzymeAD/Enzyme.jl/actions/runs/19274745464/artifacts/4534972919. |
220c730 to
c076dd6
Compare
|
@wsmoses with Cthulhu: But the error that Enzyme gives only the pointer: |
|
Your PR requires formatting changes to meet the project's style guidelines. Click here to view the suggested changes.diff --git a/src/compiler/validation.jl b/src/compiler/validation.jl
index 9623f24d..6931b2e6 100644
--- a/src/compiler/validation.jl
+++ b/src/compiler/validation.jl
@@ -100,8 +100,8 @@ function __init__()
"jl_array_typetagdata",
"ijl_array_typetagdata",
"jl_idtable_rehash",
- "jl_f__compute_sparams",
- "ijl_f__compute_sparams",
+ "jl_f__compute_sparams",
+ "ijl_f__compute_sparams",
)
for name in known_names
sym = LLVM.find_symbol(name)
diff --git a/src/llvm/attributes.jl b/src/llvm/attributes.jl
index fc880da7..d1dafd30 100644
--- a/src/llvm/attributes.jl
+++ b/src/llvm/attributes.jl
@@ -125,8 +125,8 @@ const nofreefns = Set{String}((
"ijl_f__typevar",
"jl_f_isa",
"ijl_f_isa",
- "jl_f__compute_sparams",
- "ijl_f__compute_sparams",
+ "jl_f__compute_sparams",
+ "ijl_f__compute_sparams",
"jl_set_task_threadpoolid",
"ijl_set_task_threadpoolid",
"jl_types_equal",
@@ -260,8 +260,8 @@ const inactivefns = Set{String}((
"ijl_f__typevar",
"jl_f_isa",
"ijl_f_isa",
- "jl_f__compute_sparams",
- "ijl_f__compute_sparams",
+ "jl_f__compute_sparams",
+ "ijl_f__compute_sparams",
"jl_set_task_threadpoolid",
"ijl_set_task_threadpoolid",
"jl_types_equal", |
|
@wsmoses adding |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2751 +/- ##
=======================================
Coverage 68.91% 68.92%
=======================================
Files 58 58
Lines 19861 19861
=======================================
+ Hits 13688 13689 +1
+ Misses 6173 6172 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
also add it to the list of names to lookup? Enzyme.jl/src/compiler/validation.jl Line 102 in 6b30dda
|
|
None of the other |