Skip to content

Commit

Permalink
Fix Julia project path in MLIR bindings regeneration workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mofeing committed Oct 27, 2024
1 parent 42942e0 commit b614a45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/regenerate-mlir-bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
working-directory: ./deps/ReactantExtra
env:
JULIA_DEPOT_PATH: ${{ runner.temp }}/julia_depot
- run: julia make-bindings.jl
- run: julia --project=. make-bindings.jl
working-directory: ./deps/ReactantExtra
env:
JULIA_DEPOT_PATH: ${{ runner.temp }}/julia_depot
Expand Down

1 comment on commit b614a45

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

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

Reactant.jl Benchmarks

Benchmark suite Current: b614a45 Previous: 42942e0 Ratio
ViT base (256 x 256 x 3 x 32)/forward/CUDA/Reactant (optimize = :after_enzyme) 1351952654 ns 1325006950 ns 1.02
ViT base (256 x 256 x 3 x 32)/forward/CUDA/Reactant 1329740254 ns 1235896790 ns 1.08
ViT base (256 x 256 x 3 x 32)/forward/CUDA/Reactant (optimize = :before_enzyme) 1313154586 ns 1260870880 ns 1.04
ViT base (256 x 256 x 3 x 32)/forward/CUDA/Reactant (optimize = :only_enzyme) 2566992420 ns 2354818253 ns 1.09
ViT base (256 x 256 x 3 x 32)/forward/CUDA/Lux 221738431 ns 208350792 ns 1.06
ViT base (256 x 256 x 3 x 32)/forward/CPU/Reactant (optimize = :after_enzyme) 5795183922 ns 5855977297 ns 0.99
ViT base (256 x 256 x 3 x 32)/forward/CPU/Reactant 5365250430 ns 5221394418 ns 1.03
ViT base (256 x 256 x 3 x 32)/forward/CPU/Reactant (optimize = :before_enzyme) 5580309503 ns 5167730933 ns 1.08
ViT base (256 x 256 x 3 x 32)/forward/CPU/Reactant (optimize = :only_enzyme) 7018981334 ns 7329557931 ns 0.96
ViT base (256 x 256 x 3 x 32)/forward/CPU/Lux 32330341377 ns 33799289512 ns 0.96
ViT small (256 x 256 x 3 x 4)/forward/CUDA/Reactant (optimize = :after_enzyme) 1295393361 ns 1288968381 ns 1.00
ViT small (256 x 256 x 3 x 4)/forward/CUDA/Reactant 1391655239.5 ns 1367739710.5 ns 1.02
ViT small (256 x 256 x 3 x 4)/forward/CUDA/Reactant (optimize = :before_enzyme) 1288112883.5 ns 1241844781 ns 1.04
ViT small (256 x 256 x 3 x 4)/forward/CUDA/Reactant (optimize = :only_enzyme) 2580913506 ns 2383293970 ns 1.08
ViT small (256 x 256 x 3 x 4)/forward/CUDA/Lux 8622025 ns 8825641 ns 0.98
ViT small (256 x 256 x 3 x 4)/forward/CPU/Reactant (optimize = :after_enzyme) 1638985456 ns 1947817634 ns 0.84
ViT small (256 x 256 x 3 x 4)/forward/CPU/Reactant 1598870688 ns 1582676667 ns 1.01
ViT small (256 x 256 x 3 x 4)/forward/CPU/Reactant (optimize = :before_enzyme) 1604887372 ns 1587980197 ns 1.01
ViT small (256 x 256 x 3 x 4)/forward/CPU/Reactant (optimize = :only_enzyme) 2845843527 ns 2835816387 ns 1.00
ViT small (256 x 256 x 3 x 4)/forward/CPU/Lux 3290222049 ns 3059951855 ns 1.08
ViT tiny (256 x 256 x 3 x 32)/forward/CUDA/Reactant (optimize = :after_enzyme) 1337995509 ns 1383755457.5 ns 0.97
ViT tiny (256 x 256 x 3 x 32)/forward/CUDA/Reactant 1266589678.5 ns 1446515309 ns 0.88
ViT tiny (256 x 256 x 3 x 32)/forward/CUDA/Reactant (optimize = :before_enzyme) 1304533265 ns 1261596782 ns 1.03
ViT tiny (256 x 256 x 3 x 32)/forward/CUDA/Reactant (optimize = :only_enzyme) 2619821981 ns 2589819311 ns 1.01
ViT tiny (256 x 256 x 3 x 32)/forward/CUDA/Lux 22673367 ns 22684780 ns 1.00
ViT tiny (256 x 256 x 3 x 32)/forward/CPU/Reactant (optimize = :after_enzyme) 2164741585 ns 2197648970 ns 0.99
ViT tiny (256 x 256 x 3 x 32)/forward/CPU/Reactant 2187101004 ns 2228789213 ns 0.98
ViT tiny (256 x 256 x 3 x 32)/forward/CPU/Reactant (optimize = :before_enzyme) 2222453725 ns 2201537016 ns 1.01
ViT tiny (256 x 256 x 3 x 32)/forward/CPU/Reactant (optimize = :only_enzyme) 3473087162 ns 3498815180 ns 0.99
ViT tiny (256 x 256 x 3 x 32)/forward/CPU/Lux 5922666949.5 ns 5675046852 ns 1.04
ViT tiny (256 x 256 x 3 x 4)/forward/CUDA/Reactant (optimize = :after_enzyme) 1409824378 ns 1286548945 ns 1.10
ViT tiny (256 x 256 x 3 x 4)/forward/CUDA/Reactant 1274413695 ns 1286795640 ns 0.99
ViT tiny (256 x 256 x 3 x 4)/forward/CUDA/Reactant (optimize = :before_enzyme) 1229630167.5 ns 1307418594.5 ns 0.94
ViT tiny (256 x 256 x 3 x 4)/forward/CUDA/Reactant (optimize = :only_enzyme) 2435178422 ns 2562260509 ns 0.95
ViT tiny (256 x 256 x 3 x 4)/forward/CUDA/Lux 6720828 ns 7586742.5 ns 0.89
ViT tiny (256 x 256 x 3 x 4)/forward/CPU/Reactant (optimize = :after_enzyme) 1443071529 ns 1477416147 ns 0.98
ViT tiny (256 x 256 x 3 x 4)/forward/CPU/Reactant 1455478624 ns 1459717161 ns 1.00
ViT tiny (256 x 256 x 3 x 4)/forward/CPU/Reactant (optimize = :before_enzyme) 1436315353 ns 1427023275 ns 1.01
ViT tiny (256 x 256 x 3 x 4)/forward/CPU/Reactant (optimize = :only_enzyme) 2698020568 ns 2666201644 ns 1.01
ViT tiny (256 x 256 x 3 x 4)/forward/CPU/Lux 1179865891 ns 1191242722 ns 0.99
ViT tiny (256 x 256 x 3 x 16)/forward/CUDA/Reactant (optimize = :after_enzyme) 1311903715.5 ns 1237383506.5 ns 1.06
ViT tiny (256 x 256 x 3 x 16)/forward/CUDA/Reactant 1208899239.5 ns 1281328564 ns 0.94
ViT tiny (256 x 256 x 3 x 16)/forward/CUDA/Reactant (optimize = :before_enzyme) 1315408397 ns 1283366518 ns 1.02
ViT tiny (256 x 256 x 3 x 16)/forward/CUDA/Reactant (optimize = :only_enzyme) 2622407972 ns 2571097612 ns 1.02
ViT tiny (256 x 256 x 3 x 16)/forward/CUDA/Lux 12273085 ns 12172844 ns 1.01
ViT tiny (256 x 256 x 3 x 16)/forward/CPU/Reactant (optimize = :after_enzyme) 1747750553 ns 1744895489 ns 1.00
ViT tiny (256 x 256 x 3 x 16)/forward/CPU/Reactant 1759657061 ns 1744209257 ns 1.01
ViT tiny (256 x 256 x 3 x 16)/forward/CPU/Reactant (optimize = :before_enzyme) 1730465781 ns 1741523121 ns 0.99
ViT tiny (256 x 256 x 3 x 16)/forward/CPU/Reactant (optimize = :only_enzyme) 2979617791 ns 2952374286 ns 1.01
ViT tiny (256 x 256 x 3 x 16)/forward/CPU/Lux 2985205457 ns 3161120339.5 ns 0.94
ViT small (256 x 256 x 3 x 16)/forward/CUDA/Reactant (optimize = :after_enzyme) 1205936693 ns 1246653286 ns 0.97
ViT small (256 x 256 x 3 x 16)/forward/CUDA/Reactant 1289931712 ns 1235082506.5 ns 1.04
ViT small (256 x 256 x 3 x 16)/forward/CUDA/Reactant (optimize = :before_enzyme) 1274603974.5 ns 1256777245.5 ns 1.01
ViT small (256 x 256 x 3 x 16)/forward/CUDA/Reactant (optimize = :only_enzyme) 2353800786 ns 2464259574 ns 0.96
ViT small (256 x 256 x 3 x 16)/forward/CUDA/Lux 27361038 ns 27204139 ns 1.01
ViT small (256 x 256 x 3 x 16)/forward/CPU/Reactant (optimize = :after_enzyme) 2245983275 ns 2222730518 ns 1.01
ViT small (256 x 256 x 3 x 16)/forward/CPU/Reactant 2235719581 ns 2224096501 ns 1.01
ViT small (256 x 256 x 3 x 16)/forward/CPU/Reactant (optimize = :before_enzyme) 2225764215 ns 2192837165 ns 1.02
ViT small (256 x 256 x 3 x 16)/forward/CPU/Reactant (optimize = :only_enzyme) 3488656246 ns 3433421300 ns 1.02
ViT small (256 x 256 x 3 x 16)/forward/CPU/Lux 6519742812.5 ns 5511062562 ns 1.18
ViT small (256 x 256 x 3 x 32)/forward/CUDA/Reactant (optimize = :after_enzyme) 1273072927 ns 1275826558 ns 1.00
ViT small (256 x 256 x 3 x 32)/forward/CUDA/Reactant 1275903559 ns 1269696500.5 ns 1.00
ViT small (256 x 256 x 3 x 32)/forward/CUDA/Reactant (optimize = :before_enzyme) 1306679492 ns 1268437005 ns 1.03
ViT small (256 x 256 x 3 x 32)/forward/CUDA/Reactant (optimize = :only_enzyme) 2418323014 ns 2335849488 ns 1.04
ViT small (256 x 256 x 3 x 32)/forward/CUDA/Lux 52729682 ns 52614815 ns 1.00
ViT small (256 x 256 x 3 x 32)/forward/CPU/Reactant (optimize = :after_enzyme) 3106843960 ns 3004532618 ns 1.03
ViT small (256 x 256 x 3 x 32)/forward/CPU/Reactant 3110765368 ns 3029206535 ns 1.03
ViT small (256 x 256 x 3 x 32)/forward/CPU/Reactant (optimize = :before_enzyme) 3067530015 ns 3106275502 ns 0.99
ViT small (256 x 256 x 3 x 32)/forward/CPU/Reactant (optimize = :only_enzyme) 4512690716 ns 4523804192 ns 1.00
ViT small (256 x 256 x 3 x 32)/forward/CPU/Lux 23082341445 ns 13248514271 ns 1.74
ViT base (256 x 256 x 3 x 16)/forward/CUDA/Reactant (optimize = :after_enzyme) 1244033717 ns 1287364685 ns 0.97
ViT base (256 x 256 x 3 x 16)/forward/CUDA/Reactant 1220583584 ns 1270728075 ns 0.96
ViT base (256 x 256 x 3 x 16)/forward/CUDA/Reactant (optimize = :before_enzyme) 1241043964.5 ns 1211872705.5 ns 1.02
ViT base (256 x 256 x 3 x 16)/forward/CUDA/Reactant (optimize = :only_enzyme) 2534565534 ns 2307284213 ns 1.10
ViT base (256 x 256 x 3 x 16)/forward/CUDA/Lux 71029594 ns 70823960.5 ns 1.00
ViT base (256 x 256 x 3 x 16)/forward/CPU/Reactant (optimize = :after_enzyme) 3308971321 ns 3242934004 ns 1.02
ViT base (256 x 256 x 3 x 16)/forward/CPU/Reactant 3272699344 ns 3261225461 ns 1.00
ViT base (256 x 256 x 3 x 16)/forward/CPU/Reactant (optimize = :before_enzyme) 3281133548 ns 3276733542 ns 1.00
ViT base (256 x 256 x 3 x 16)/forward/CPU/Reactant (optimize = :only_enzyme) 4663116034 ns 4672103022 ns 1.00
ViT base (256 x 256 x 3 x 16)/forward/CPU/Lux 13237204037 ns 12733986436 ns 1.04
ViT base (256 x 256 x 3 x 4)/forward/CUDA/Reactant (optimize = :after_enzyme) 1206105557 ns 1198686032 ns 1.01
ViT base (256 x 256 x 3 x 4)/forward/CUDA/Reactant 1205282113 ns 1202407868 ns 1.00
ViT base (256 x 256 x 3 x 4)/forward/CUDA/Reactant (optimize = :before_enzyme) 1254093260 ns 1268714295.5 ns 0.99
ViT base (256 x 256 x 3 x 4)/forward/CUDA/Reactant (optimize = :only_enzyme) 2518219292 ns 2558419074 ns 0.98
ViT base (256 x 256 x 3 x 4)/forward/CUDA/Lux 20789324 ns 20788095 ns 1.00
ViT base (256 x 256 x 3 x 4)/forward/CPU/Reactant (optimize = :after_enzyme) 1913409296 ns 1877899848 ns 1.02
ViT base (256 x 256 x 3 x 4)/forward/CPU/Reactant 1887591901 ns 1956925868 ns 0.96
ViT base (256 x 256 x 3 x 4)/forward/CPU/Reactant (optimize = :before_enzyme) 1917404653 ns 2314364652 ns 0.83
ViT base (256 x 256 x 3 x 4)/forward/CPU/Reactant (optimize = :only_enzyme) 3181159514 ns 3172070657 ns 1.00
ViT base (256 x 256 x 3 x 4)/forward/CPU/Lux 3522016222.5 ns 4073780422 ns 0.86

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

Please sign in to comment.