-
Notifications
You must be signed in to change notification settings - Fork 81
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/19854289811/artifacts/4735610205. |
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 aab84faa..a617c0b8 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 c1989bf3..279aea19 100644
--- a/src/llvm/attributes.jl
+++ b/src/llvm/attributes.jl
@@ -130,8 +130,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",
@@ -270,8 +270,8 @@ const inactivefns = Set{String}((
"ijl_f_sizeof",
"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 67.76% 67.77%
=======================================
Files 58 58
Lines 20913 20913
=======================================
+ Hits 14172 14173 +1
+ Misses 6741 6740 -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 |
6beb4b9 to
5089a97
Compare
5089a97 to
a81b1bc
Compare