Skip to content

Fix enzyme tests#3211

Merged
maleadt merged 1 commit into
mainfrom
ksh/fix_enzyme
Jul 22, 2026
Merged

Fix enzyme tests#3211
maleadt merged 1 commit into
mainfrom
ksh/fix_enzyme

Conversation

@kshyatt

@kshyatt kshyatt commented Jul 21, 2026

Copy link
Copy Markdown
Member

Should allow our Enzyme tests to pass once EnzymeAD/Enzyme.jl#3354 merges, which will allow Enzyme to use GPUCompiler 2.0. cc @wsmoses

@kshyatt

kshyatt commented Jul 21, 2026

Copy link
Copy Markdown
Member Author

Should fix #3172

@kshyatt kshyatt linked an issue Jul 21, 2026 that may be closed by this pull request
@kshyatt
kshyatt requested a review from maleadt July 21, 2026 14:50
@github-actions

github-actions Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

CUDA.jl Benchmarks

Details
Benchmark suite Current: 329c83a Previous: 069cdff Ratio
array/accumulate/Float32/1d 97386 ns 98074 ns 0.99
array/accumulate/Float32/dims=1 70760 ns 74919 ns 0.94
array/accumulate/Float32/dims=1L 1597639 ns 1600002 ns 1.00
array/accumulate/Float32/dims=2 136983 ns 140367 ns 0.98
array/accumulate/Float32/dims=2L 658332 ns 659745 ns 1.00
array/accumulate/Int64/1d 117058 ns 117818 ns 0.99
array/accumulate/Int64/dims=1 74808 ns 79251 ns 0.94
array/accumulate/Int64/dims=1L 1726813 ns 1717606 ns 1.01
array/accumulate/Int64/dims=2 148983 ns 153507 ns 0.97
array/accumulate/Int64/dims=2L 985885 ns 986800 ns 1.00
array/broadcast 17557 ns 18060 ns 0.97
array/broadcast launch 8124 ns
array/construct 896.6410256410256 ns 869.1052631578947 ns 1.03
array/copy 16488 ns 15967 ns 1.03
array/copyto!/cpu_to_gpu 206308 ns 208599 ns 0.99
array/copyto!/gpu_to_cpu 238647 ns 241280 ns 0.99
array/copyto!/gpu_to_gpu 8746.333333333334 ns 9209.333333333334 ns 0.95
array/iteration/findall/bool 130420 ns 132021 ns 0.99
array/iteration/findall/int 143793 ns 145286 ns 0.99
array/iteration/findfirst/bool 66759 ns 67274 ns 0.99
array/iteration/findfirst/int 68434 ns 68529 ns 1.00
array/iteration/findmin/1d 59591 ns 64309 ns 0.93
array/iteration/findmin/2d 98062 ns 99940 ns 0.98
array/iteration/logical 180074 ns 185815 ns 0.97
array/iteration/scalar 62534 ns 63136 ns 0.99
array/permutedims/2d 47721 ns 48431 ns 0.99
array/permutedims/3d 48979 ns 50026 ns 0.98
array/permutedims/4d 48570 ns 49849 ns 0.97
array/random/rand/Float32 11576 ns 11669 ns 0.99
array/random/rand/Int64 22091 ns 22883 ns 0.97
array/random/rand!/Float32 7750.25 ns 7731.75 ns 1.00
array/random/rand!/Int64 19421 ns 20210 ns 0.96
array/random/randn/Float32 32096 ns 32574 ns 0.99
array/random/randn!/Float32 29126 ns 23189 ns 1.26
array/reductions/mapreduce/Float32/1d 31451 ns 31371 ns 1.00
array/reductions/mapreduce/Float32/dims=1 37186 ns 37491 ns 0.99
array/reductions/mapreduce/Float32/dims=1L 49872 ns 49977 ns 1.00
array/reductions/mapreduce/Float32/dims=2 54328 ns 54508 ns 1.00
array/reductions/mapreduce/Float32/dims=2L 66072 ns 66329 ns 1.00
array/reductions/mapreduce/Int64/1d 38075 ns 37643 ns 1.01
array/reductions/mapreduce/Int64/dims=1 39684 ns 39961 ns 0.99
array/reductions/mapreduce/Int64/dims=1L 87941 ns 87917 ns 1.00
array/reductions/mapreduce/Int64/dims=2 57084 ns 57047 ns 1.00
array/reductions/mapreduce/Int64/dims=2L 82053 ns 82751 ns 0.99
array/reductions/reduce/Float32/1d 31574 ns 31482 ns 1.00
array/reductions/reduce/Float32/dims=1 37010 ns 37630 ns 0.98
array/reductions/reduce/Float32/dims=1L 49965 ns 50073 ns 1.00
array/reductions/reduce/Float32/dims=2 54356 ns 54518 ns 1.00
array/reductions/reduce/Float32/dims=2L 67581 ns 67963 ns 0.99
array/reductions/reduce/Int64/1d 38225 ns 38054 ns 1.00
array/reductions/reduce/Int64/dims=1 39626 ns 39983 ns 0.99
array/reductions/reduce/Int64/dims=1L 87735 ns 87988 ns 1.00
array/reductions/reduce/Int64/dims=2 56670 ns 56860 ns 1.00
array/reductions/reduce/Int64/dims=2L 82335 ns 82191 ns 1.00
array/reverse/1d 16011 ns 16098 ns 0.99
array/reverse/1dL 68995 ns 68844 ns 1.00
array/reverse/1dL_inplace 67092 ns 66918 ns 1.00
array/reverse/1d_inplace 8183.666666666667 ns 9757 ns 0.84
array/reverse/2d 19204 ns 19108 ns 1.01
array/reverse/2dL 72721 ns 72561 ns 1.00
array/reverse/2dL_inplace 66836 ns 66785 ns 1.00
array/reverse/2d_inplace 9535 ns 9397 ns 1.01
array/sorting/1d 2646085 ns 2656939 ns 1.00
array/sorting/2d 1027510 ns 1038211 ns 0.99
array/sorting/by 3167423 ns 3192363 ns 0.99
cuda/synchronization/context/auto 1028.9 ns 1015.3 ns 1.01
cuda/synchronization/context/blocking 795.5744680851063 ns 784.6960784313726 ns 1.01
cuda/synchronization/context/nonblocking 5762.333333333333 ns 5655.166666666667 ns 1.02
cuda/synchronization/stream/auto 878.72 ns 857.3174603174604 ns 1.02
cuda/synchronization/stream/blocking 670.474025974026 ns 654.7730061349694 ns 1.02
cuda/synchronization/stream/nonblocking 5631.142857142857 ns 5491 ns 1.03
integration/byval/reference 147402 ns 147245 ns 1.00
integration/byval/slices=1 151405 ns 149267 ns 1.01
integration/byval/slices=2 294426 ns 292191 ns 1.01
integration/byval/slices=3 437477 ns 434868 ns 1.01
integration/cudadevrt 104622 ns 104357 ns 1.00
integration/volumerhs 9141542 ns 9315717 ns 0.98
kernel/indexing 12593 ns 12183 ns 1.03
kernel/indexing_checked 13308 ns 13078 ns 1.02
kernel/launch 2093.777777777778 ns 2032.3333333333333 ns 1.03
kernel/occupancy 670.4223602484471 ns 667.8466257668712 ns 1.00
kernel/rand 15138 ns 14903 ns 1.02
latency/import 4107938988 ns 4116528672 ns 1.00
latency/precompile 4805131996 ns 4814427609 ns 1.00
latency/ttfp 5197284945 ns 5198634459 ns 1.00

This comment was automatically generated by workflow using github-action-benchmark.

@codecov

codecov Bot commented Jul 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.69%. Comparing base (9b95c01) to head (329c83a).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3211      +/-   ##
==========================================
+ Coverage   92.61%   92.69%   +0.07%     
==========================================
  Files         167      167              
  Lines       13901    13901              
==========================================
+ Hits        12875    12885      +10     
+ Misses       1026     1016      -10     

☔ View full report in Codecov by Harness.
📢 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.

@maleadt
maleadt merged commit 8fc49fe into main Jul 22, 2026
1 check passed
@maleadt
maleadt deleted the ksh/fix_enzyme branch July 22, 2026 18:24
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.

Some recent cuda commit broke the enzyme.jl tests?

2 participants