Skip to content

Commit

Permalink
prevent docs warning (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pangoraw authored Oct 28, 2024
1 parent c973bab commit 2f6a6d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mlir/IR/Type.jl
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ Type(T::Core.Type{<:Integer}; context::Context=context()) =
Creates a complex type with the given element type.
"""
Type(::Core.Type{Complex{T}}; context=context()) where {T} = Type(API.mlirComplexTypeGet(Type(T)))
Type(T::Core.Type{<:Complex}; context=context()) = Type(API.mlirComplexTypeGet(Type(T(im) |> real |> typeof)))

"""
Type(T::Core.Type{<:Signed}; context=context()
Expand Down

1 comment on commit 2f6a6d9

@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: 2f6a6d9 Previous: c973bab Ratio
ViT base (256 x 256 x 3 x 32)/forward/CUDA/Reactant (optimize = :after_enzyme) 1249734857 ns
ViT base (256 x 256 x 3 x 32)/forward/CUDA/Reactant 1242994162 ns
ViT base (256 x 256 x 3 x 32)/forward/CUDA/Reactant (optimize = :before_enzyme) 1195264640 ns
ViT base (256 x 256 x 3 x 32)/forward/CUDA/Reactant (optimize = :only_enzyme) 2306719819 ns
ViT base (256 x 256 x 3 x 32)/forward/CUDA/Lux 213417826 ns
ViT base (256 x 256 x 3 x 32)/forward/CPU/Reactant (optimize = :after_enzyme) 5619173445 ns 6942378221 ns 0.81
ViT base (256 x 256 x 3 x 32)/forward/CPU/Reactant 5334345862 ns 6705186602 ns 0.80
ViT base (256 x 256 x 3 x 32)/forward/CPU/Reactant (optimize = :before_enzyme) 5283772358 ns 5132850481 ns 1.03
ViT base (256 x 256 x 3 x 32)/forward/CPU/Reactant (optimize = :only_enzyme) 6769958907 ns 6900117430 ns 0.98
ViT base (256 x 256 x 3 x 32)/forward/CPU/Lux 35047348986 ns 32366513741 ns 1.08
ViT small (256 x 256 x 3 x 4)/forward/CUDA/Reactant (optimize = :after_enzyme) 1277061285 ns
ViT small (256 x 256 x 3 x 4)/forward/CUDA/Reactant 1265330704 ns
ViT small (256 x 256 x 3 x 4)/forward/CUDA/Reactant (optimize = :before_enzyme) 1319818472.5 ns
ViT small (256 x 256 x 3 x 4)/forward/CUDA/Reactant (optimize = :only_enzyme) 2485738704 ns
ViT small (256 x 256 x 3 x 4)/forward/CUDA/Lux 8548946 ns
ViT small (256 x 256 x 3 x 4)/forward/CPU/Reactant (optimize = :after_enzyme) 1640403929 ns 1575356122 ns 1.04
ViT small (256 x 256 x 3 x 4)/forward/CPU/Reactant 1624981145 ns 1570924950 ns 1.03
ViT small (256 x 256 x 3 x 4)/forward/CPU/Reactant (optimize = :before_enzyme) 1613497904 ns 1565028142 ns 1.03
ViT small (256 x 256 x 3 x 4)/forward/CPU/Reactant (optimize = :only_enzyme) 2925330438 ns 2856808592 ns 1.02
ViT small (256 x 256 x 3 x 4)/forward/CPU/Lux 3005994981 ns 3760448029 ns 0.80
ViT tiny (256 x 256 x 3 x 32)/forward/CUDA/Reactant (optimize = :after_enzyme) 1302523637 ns
ViT tiny (256 x 256 x 3 x 32)/forward/CUDA/Reactant 1279881184.5 ns
ViT tiny (256 x 256 x 3 x 32)/forward/CUDA/Reactant (optimize = :before_enzyme) 1221896798 ns
ViT tiny (256 x 256 x 3 x 32)/forward/CUDA/Reactant (optimize = :only_enzyme) 2518812295 ns
ViT tiny (256 x 256 x 3 x 32)/forward/CUDA/Lux 21046449.5 ns
ViT tiny (256 x 256 x 3 x 32)/forward/CPU/Reactant (optimize = :after_enzyme) 2222479042 ns 2128493599 ns 1.04
ViT tiny (256 x 256 x 3 x 32)/forward/CPU/Reactant 2232948599 ns 2129917461 ns 1.05
ViT tiny (256 x 256 x 3 x 32)/forward/CPU/Reactant (optimize = :before_enzyme) 2244870900 ns 2144814245 ns 1.05
ViT tiny (256 x 256 x 3 x 32)/forward/CPU/Reactant (optimize = :only_enzyme) 3549740380 ns 3369934599 ns 1.05
ViT tiny (256 x 256 x 3 x 32)/forward/CPU/Lux 5525916823.5 ns 5824843875 ns 0.95
ViT tiny (256 x 256 x 3 x 4)/forward/CUDA/Reactant (optimize = :after_enzyme) 1276973264.5 ns
ViT tiny (256 x 256 x 3 x 4)/forward/CUDA/Reactant 1268819089 ns
ViT tiny (256 x 256 x 3 x 4)/forward/CUDA/Reactant (optimize = :before_enzyme) 1208687674 ns
ViT tiny (256 x 256 x 3 x 4)/forward/CUDA/Reactant (optimize = :only_enzyme) 2407396694 ns
ViT tiny (256 x 256 x 3 x 4)/forward/CUDA/Lux 6966972 ns
ViT tiny (256 x 256 x 3 x 4)/forward/CPU/Reactant (optimize = :after_enzyme) 1477620923 ns 1471151972 ns 1.00
ViT tiny (256 x 256 x 3 x 4)/forward/CPU/Reactant 1472576060 ns 1454461327 ns 1.01
ViT tiny (256 x 256 x 3 x 4)/forward/CPU/Reactant (optimize = :before_enzyme) 1474827913 ns 1448322402 ns 1.02
ViT tiny (256 x 256 x 3 x 4)/forward/CPU/Reactant (optimize = :only_enzyme) 2778453642 ns 2719591355 ns 1.02
ViT tiny (256 x 256 x 3 x 4)/forward/CPU/Lux 1130986304.5 ns 1489583234 ns 0.76
ViT tiny (256 x 256 x 3 x 16)/forward/CUDA/Reactant (optimize = :after_enzyme) 1217166466 ns
ViT tiny (256 x 256 x 3 x 16)/forward/CUDA/Reactant 1289351790 ns
ViT tiny (256 x 256 x 3 x 16)/forward/CUDA/Reactant (optimize = :before_enzyme) 1290846696.5 ns
ViT tiny (256 x 256 x 3 x 16)/forward/CUDA/Reactant (optimize = :only_enzyme) 2439329631 ns
ViT tiny (256 x 256 x 3 x 16)/forward/CUDA/Lux 11335374 ns
ViT tiny (256 x 256 x 3 x 16)/forward/CPU/Reactant (optimize = :after_enzyme) 1767669698 ns 1735365519 ns 1.02
ViT tiny (256 x 256 x 3 x 16)/forward/CPU/Reactant 1753861643 ns 1737798412 ns 1.01
ViT tiny (256 x 256 x 3 x 16)/forward/CPU/Reactant (optimize = :before_enzyme) 1730166719 ns 1733685587 ns 1.00
ViT tiny (256 x 256 x 3 x 16)/forward/CPU/Reactant (optimize = :only_enzyme) 3055075413 ns 2993317296 ns 1.02
ViT tiny (256 x 256 x 3 x 16)/forward/CPU/Lux 3163273720 ns 2901135267 ns 1.09
ViT small (256 x 256 x 3 x 16)/forward/CUDA/Reactant (optimize = :after_enzyme) 1252706203 ns
ViT small (256 x 256 x 3 x 16)/forward/CUDA/Reactant 1244953037 ns
ViT small (256 x 256 x 3 x 16)/forward/CUDA/Reactant (optimize = :before_enzyme) 1272847971 ns
ViT small (256 x 256 x 3 x 16)/forward/CUDA/Reactant (optimize = :only_enzyme) 2683822024 ns
ViT small (256 x 256 x 3 x 16)/forward/CUDA/Lux 25478417 ns
ViT small (256 x 256 x 3 x 16)/forward/CPU/Reactant (optimize = :after_enzyme) 2236278568 ns 2187057130 ns 1.02
ViT small (256 x 256 x 3 x 16)/forward/CPU/Reactant 2237924534 ns 2168782149 ns 1.03
ViT small (256 x 256 x 3 x 16)/forward/CPU/Reactant (optimize = :before_enzyme) 2212087492 ns 2195046454 ns 1.01
ViT small (256 x 256 x 3 x 16)/forward/CPU/Reactant (optimize = :only_enzyme) 3546320207 ns 3463762891 ns 1.02
ViT small (256 x 256 x 3 x 16)/forward/CPU/Lux 5763894130.5 ns 6324223255.5 ns 0.91
ViT small (256 x 256 x 3 x 32)/forward/CUDA/Reactant (optimize = :after_enzyme) 1320883045 ns
ViT small (256 x 256 x 3 x 32)/forward/CUDA/Reactant 1311502435 ns
ViT small (256 x 256 x 3 x 32)/forward/CUDA/Reactant (optimize = :before_enzyme) 1359516723 ns
ViT small (256 x 256 x 3 x 32)/forward/CUDA/Reactant (optimize = :only_enzyme) 2652444409 ns
ViT small (256 x 256 x 3 x 32)/forward/CUDA/Lux 50149906 ns
ViT small (256 x 256 x 3 x 32)/forward/CPU/Reactant (optimize = :after_enzyme) 3038494804 ns 2971985591 ns 1.02
ViT small (256 x 256 x 3 x 32)/forward/CPU/Reactant 3034868554 ns 2982932980 ns 1.02
ViT small (256 x 256 x 3 x 32)/forward/CPU/Reactant (optimize = :before_enzyme) 3043196341 ns 2969765048 ns 1.02
ViT small (256 x 256 x 3 x 32)/forward/CPU/Reactant (optimize = :only_enzyme) 4493792409 ns 4310355973 ns 1.04
ViT small (256 x 256 x 3 x 32)/forward/CPU/Lux 11147401934 ns 8843746527 ns 1.26
ViT base (256 x 256 x 3 x 16)/forward/CUDA/Reactant (optimize = :after_enzyme) 1322310080 ns
ViT base (256 x 256 x 3 x 16)/forward/CUDA/Reactant 1325171411 ns
ViT base (256 x 256 x 3 x 16)/forward/CUDA/Reactant (optimize = :before_enzyme) 1287824673 ns
ViT base (256 x 256 x 3 x 16)/forward/CUDA/Reactant (optimize = :only_enzyme) 2586974329 ns
ViT base (256 x 256 x 3 x 16)/forward/CUDA/Lux 68180485 ns
ViT base (256 x 256 x 3 x 16)/forward/CPU/Reactant (optimize = :after_enzyme) 3262785501 ns 3212028509 ns 1.02
ViT base (256 x 256 x 3 x 16)/forward/CPU/Reactant 3248806786 ns 3152003834 ns 1.03
ViT base (256 x 256 x 3 x 16)/forward/CPU/Reactant (optimize = :before_enzyme) 3234623743 ns 3214649160 ns 1.01
ViT base (256 x 256 x 3 x 16)/forward/CPU/Reactant (optimize = :only_enzyme) 4707557622 ns 4585953917 ns 1.03
ViT base (256 x 256 x 3 x 16)/forward/CPU/Lux 13676029593 ns 15345755188 ns 0.89
ViT base (256 x 256 x 3 x 4)/forward/CUDA/Reactant (optimize = :after_enzyme) 1316892556 ns
ViT base (256 x 256 x 3 x 4)/forward/CUDA/Reactant 1260539573 ns
ViT base (256 x 256 x 3 x 4)/forward/CUDA/Reactant (optimize = :before_enzyme) 1339224548 ns
ViT base (256 x 256 x 3 x 4)/forward/CUDA/Reactant (optimize = :only_enzyme) 2439170674 ns
ViT base (256 x 256 x 3 x 4)/forward/CUDA/Lux 19630937 ns
ViT base (256 x 256 x 3 x 4)/forward/CPU/Reactant (optimize = :after_enzyme) 1914379352 ns 1851132574 ns 1.03
ViT base (256 x 256 x 3 x 4)/forward/CPU/Reactant 1908767496 ns 1842102127 ns 1.04
ViT base (256 x 256 x 3 x 4)/forward/CPU/Reactant (optimize = :before_enzyme) 1940246170 ns 1854468275 ns 1.05
ViT base (256 x 256 x 3 x 4)/forward/CPU/Reactant (optimize = :only_enzyme) 3177313151 ns 3046813758 ns 1.04
ViT base (256 x 256 x 3 x 4)/forward/CPU/Lux 3458788796.5 ns 3984192963 ns 0.87

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

Please sign in to comment.