Skip to content

Conversation

@wsmoses
Copy link
Member

@wsmoses wsmoses commented Dec 1, 2025

@github-actions
Copy link
Contributor

github-actions bot commented Dec 1, 2025

Your PR requires formatting changes to meet the project's style guidelines.
Please consider running Runic (git runic main) to apply these changes.

Click here to view the suggested changes.
diff --git a/src/compiler.jl b/src/compiler.jl
index d9e3627c..c4d8d2d0 100644
--- a/src/compiler.jl
+++ b/src/compiler.jl
@@ -6630,11 +6630,11 @@ function _thunk(job, postopt::Bool = true)::Tuple{LLVM.Module, Vector{Any}, Stri
             for f in functions(mod)
                 for i in 1:length(parameters(f))
                     for a in collect(parameter_attributes(f, i))
-                       if kind(a) == "enzyme_sret"
-                           API.EnzymeDumpValueRef(f)
-                       end
-                       @assert kind(a) != "enzyme_sret"
-                       @assert kind(a) != "enzyme_sret_v"
+                        if kind(a) == "enzyme_sret"
+                            API.EnzymeDumpValueRef(f)
+                        end
+                        @assert kind(a) != "enzyme_sret"
+                        @assert kind(a) != "enzyme_sret_v"
                     end
                 end
             end
@@ -6644,7 +6644,7 @@ function _thunk(job, postopt::Bool = true)::Tuple{LLVM.Module, Vector{Any}, Stri
             if DumpPrePostOpt[]
                 API.EnzymeDumpModuleRef(mod.ref)
             end
-            post_optimize!(mod, JIT.get_tm(); callconv=false)
+            post_optimize!(mod, JIT.get_tm(); callconv = false)
             if DumpPostOpt[]
                 API.EnzymeDumpModuleRef(mod.ref)
             end

@codecov
Copy link

codecov bot commented Dec 1, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 50.87%. Comparing base (7cdcc1c) to head (e6b5c3a).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2824      +/-   ##
==========================================
+ Coverage   48.00%   50.87%   +2.86%     
==========================================
  Files          13       13              
  Lines        1256     1256              
==========================================
+ Hits          603      639      +36     
+ Misses        653      617      -36     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 1, 2025

Benchmark Results

main e6b5c3a... main / e6b5c3a...
basics/make_zero/namedtuple 0.0513 ± 0.0027 μs 0.0513 ± 0.0028 μs 1 ± 0.076
basics/make_zero/struct 0.259 ± 0.0069 μs 0.257 ± 0.0052 μs 1.01 ± 0.034
basics/overhead 4.64 ± 0.01 ns 4.03 ± 0.001 ns 1.15 ± 0.0025
basics/remake_zero!/namedtuple 0.234 ± 0.006 μs 0.234 ± 0.0068 μs 1 ± 0.039
basics/remake_zero!/struct 0.243 ± 0.008 μs 0.242 ± 0.0075 μs 1 ± 0.045
fold_broadcast/multidim_sum_bcast/1D 10.3 ± 0.2 μs 10.3 ± 0.5 μs 0.996 ± 0.052
fold_broadcast/multidim_sum_bcast/2D 12.3 ± 0.23 μs 12.2 ± 0.25 μs 1 ± 0.028
time_to_load 1.01 ± 0.009 s 1.01 ± 0.0064 s 1.01 ± 0.011

Benchmark Plots

A plot of the benchmark results has been uploaded as an artifact at https://github.com/EnzymeAD/Enzyme.jl/actions/runs/19872092353/artifacts/4742729204.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants