Skip to content

[Tile] tile DeviceTransform port - #9210

Merged
nanan-nvidia merged 100 commits into
NVIDIA:mainfrom
nanan-nvidia:tile-device-transform
Jul 10, 2026
Merged

nanan-nvidia merged 100 commits into
NVIDIA:mainfrom
nanan-nvidia:tile-device-transform

Conversation

@nanan-nvidia

@nanan-nvidia nanan-nvidia commented Jun 1, 2026 •

Copy link
Copy Markdown
Contributor

This PR is a port of cub::DeviceTransform (#8087, #9038) onto cutile, and to compare side-by-side with the existing CUB benches.

The intention is that we gate all the tile code behind a Macro, so that it is invisible to user when the Macro is disabled (by default). And we can do CI / test performance of cutile with the Macro enabled.

Before the benchmarks, it is important to note that SIMT-Tile interop for TileIR is still work in progress. Thus, right now, the custom function the user passes in must be a __tile__ function, and it must consist of tile operations and must be inlinable.

Current B200 benchmark on pytorch and babel:

pytorch (tile / cub/ delta = tile - cub, BW utilisation %)

op T 2^16 2^20 2^24 2^28 2^31
relu half $\ \ 0.4/\ \ 0.6/{\color{red}-\ \ 0.1}$ $\ \ 6.6/\ \ 6.8/{\color{red}-\ \ 0.2}$ $47.9/47.4/{\color{green}+\ \ 0.5}$ $83.5/83.1/{\color{green}+\ \ 0.4}$ $87.8/80.2/{\color{green}+\ \ 7.6}$
relu bf16 $\ \ 0.5/\ \ 0.5/{\color{red}-\ \ 0.1}$ $\ \ 6.7/\ \ 7.0/{\color{red}-\ \ 0.3}$ $47.5/46.2/{\color{green}+\ \ 1.3}$ $83.3/83.0/{\color{green}+\ \ 0.3}$ $87.7/80.9/{\color{green}+\ \ 6.8}$
relu f32 $\ \ 1.1/\ \ 1.1/{\color{red}-\ \ 0.0}$ $12.9/13.3/{\color{red}-\ \ 0.4}$ $64.7/65.0/{\color{red}-\ \ 0.3}$ $88.4/88.8/{\color{red}-\ \ 0.3}$ $90.8/91.1/{\color{red}-\ \ 0.3}$
sigmoid half $\ \ 0.5/\ \ 0.5/{\color{red}-\ \ 0.1}$ $\ \ 6.9/\ \ 6.6/{\color{green}+\ \ 0.2}$ $34.5/31.5/{\color{green}+\ \ 3.0}$ $48.1/45.5/{\color{green}+\ \ 2.5}$ $49.3/46.8/{\color{green}+\ \ 2.6}$
sigmoid bf16 $\ \ 0.5/\ \ 0.6/{\color{red}-\ \ 0.1}$ $\ \ 6.9/\ \ 6.7/{\color{green}+\ \ 0.3}$ $34.8/32.0/{\color{green}+\ \ 2.8}$ $48.1/45.5/{\color{green}+\ \ 2.6}$ $49.4/46.8/{\color{green}+\ \ 2.7}$
sigmoid f32 $\ \ 1.0/\ \ 1.1/{\color{red}-\ \ 0.1}$ $12.9/13.3/{\color{red}-\ \ 0.4}$ $61.3/56.8/{\color{green}+\ \ 4.5}$ $83.8/76.7/{\color{green}+\ \ 7.1}$ $79.3/73.3/{\color{green}+\ \ 6.0}$
tanh half $\ \ 0.5/\ \ 0.6/{\color{red}-\ \ 0.0}$ $\ \ 7.0/\ \ 6.7/{\color{green}+\ \ 0.3}$ $39.6/35.5/{\color{green}+\ \ 4.1}$ $58.5/51.6/{\color{green}+\ \ 6.9}$ $60.4/53.2/{\color{green}+\ \ 7.2}$
tanh bf16 $\ \ 0.5/\ \ 0.6/{\color{red}-\ \ 0.0}$ $\ \ 7.0/\ \ 6.7/{\color{green}+\ \ 0.2}$ $38.4/35.5/{\color{green}+\ \ 2.9}$ $55.3/51.4/{\color{green}+\ \ 3.9}$ $56.9/53.1/{\color{green}+\ \ 3.8}$
tanh f32 $\ \ 1.0/\ \ 1.1/{\color{red}-\ \ 0.1}$ $13.0/13.3/{\color{red}-\ \ 0.3}$ $64.8/57.5/{\color{green}+\ \ 7.3}$ $88.8/76.7/{\color{green}+12.0}$ $86.7/75.0/{\color{green}+11.6}$
gelu half $\ \ 0.5/\ \ 0.6/{\color{red}-\ \ 0.0}$ $\ \ 6.9/\ \ 6.7/{\color{green}+\ \ 0.2}$ $35.3/30.5/{\color{green}+\ \ 4.8}$ $48.8/43.2/{\color{green}+\ \ 5.5}$ $50.1/44.4/{\color{green}+\ \ 5.7}$
gelu bf16 $\ \ 0.5/\ \ 0.6/{\color{red}-\ \ 0.0}$ $\ \ 6.9/\ \ 6.7/{\color{green}+\ \ 0.2}$ $34.9/30.6/{\color{green}+\ \ 4.4}$ $48.3/43.3/{\color{green}+\ \ 5.1}$ $49.6/44.5/{\color{green}+\ \ 5.1}$
gelu f32 $\ \ 1.1/\ \ 1.1/{\color{red}-\ \ 0.0}$ $13.1/13.3/{\color{red}-\ \ 0.2}$ $64.2/53.5/{\color{green}+10.8}$ $85.2/72.8/{\color{green}+12.4}$ $80.5/69.2/{\color{green}+11.4}$
sin half $\ \ 0.5/\ \ 0.6/{\color{red}-\ \ 0.1}$ $\ \ 6.8/\ \ 6.6/{\color{green}+\ \ 0.2}$ $33.3/30.4/{\color{green}+\ \ 2.8}$ $46.9/41.5/{\color{green}+\ \ 5.3}$ $48.1/42.6/{\color{green}+\ \ 5.5}$
sin bf16 $\ \ 0.5/\ \ 0.5/{\color{red}-\ \ 0.1}$ $\ \ 6.8/\ \ 6.6/{\color{green}+\ \ 0.2}$ $33.2/30.4/{\color{green}+\ \ 2.8}$ $46.8/41.6/{\color{green}+\ \ 5.2}$ $48.1/42.6/{\color{green}+\ \ 5.5}$
sin f32 $\ \ 0.9/\ \ 1.1/{\color{red}-\ \ 0.2}$ $12.9/13.3/{\color{red}-\ \ 0.3}$ $60.4/53.4/{\color{green}+\ \ 7.0}$ $79.8/72.7/{\color{green}+\ \ 7.1}$ $76.2/69.5/{\color{green}+\ \ 6.7}$
exp half $\ \ 0.5/\ \ 0.6/{\color{red}-\ \ 0.0}$ $\ \ 6.8/\ \ 6.7/{\color{green}+\ \ 0.1}$ $46.9/38.8/{\color{green}+\ \ 8.1}$ $74.8/61.0/{\color{green}+13.8}$ $73.4/60.3/{\color{green}+13.1}$
exp bf16 $\ \ 0.5/\ \ 0.6/{\color{red}-\ \ 0.0}$ $\ \ 6.9/\ \ 6.7/{\color{green}+\ \ 0.2}$ $45.5/38.9/{\color{green}+\ \ 6.6}$ $71.2/62.1/{\color{green}+\ \ 9.1}$ $73.6/61.7/{\color{green}+11.9}$
exp f32 $\ \ 1.1/\ \ 1.1/{\color{red}-\ \ 0.0}$ $12.9/13.3/{\color{red}-\ \ 0.4}$ $64.7/65.4/{\color{red}-\ \ 0.7}$ $88.5/87.2/{\color{green}+\ \ 1.2}$ $90.8/82.8/{\color{green}+\ \ 8.1}$
add half $\ \ 0.8/\ \ 0.8/{\color{red}-\ \ 0.0}$ $10.1/10.0/{\color{green}+\ \ 0.1}$ $57.1/53.5/{\color{green}+\ \ 3.6}$ $88.6/86.8/{\color{green}+\ \ 1.8}$ $92.5/84.1/{\color{green}+\ \ 8.4}$
add bf16 $\ \ 0.8/\ \ 0.8/{\color{red}-\ \ 0.0}$ $10.2/10.0/{\color{green}+\ \ 0.2}$ $56.7/53.5/{\color{green}+\ \ 3.2}$ $88.6/86.9/{\color{green}+\ \ 1.8}$ $92.5/85.7/{\color{green}+\ \ 6.8}$
add f32 $\ \ 1.6/\ \ 1.6/{\color{red}-\ \ 0.1}$ $17.8/17.9/{\color{red}-\ \ 0.2}$ $70.1/69.9/{\color{green}+\ \ 0.2}$ $91.2/92.1/{\color{red}-\ \ 0.8}$ $92.8/93.6/{\color{red}-\ \ 0.9}$
sub half $\ \ 0.8/\ \ 0.8/{\color{green}+\ \ 0.0}$ $10.0/10.0/{\color{red}-\ \ 0.0}$ $57.2/53.4/{\color{green}+\ \ 3.8}$ $88.7/86.8/{\color{green}+\ \ 1.8}$ $92.5/84.0/{\color{green}+\ \ 8.5}$
sub bf16 $\ \ 0.8/\ \ 0.8/{\color{red}-\ \ 0.0}$ $10.0/10.0/{\color{green}+\ \ 0.1}$ $57.4/53.4/{\color{green}+\ \ 4.0}$ $88.6/86.9/{\color{green}+\ \ 1.8}$ $92.4/85.6/{\color{green}+\ \ 6.9}$
sub f32 $\ \ 1.6/\ \ 1.6/{\color{red}-\ \ 0.0}$ $17.7/17.7/{\color{green}+\ \ 0.1}$ $70.7/70.0/{\color{green}+\ \ 0.7}$ $91.2/92.1/{\color{red}-\ \ 0.8}$ $92.7/93.7/{\color{red}-\ \ 1.0}$
mul half $\ \ 0.8/\ \ 0.8/{\color{green}+\ \ 0.0}$ $10.0/10.0/{\color{green}+\ \ 0.1}$ $57.7/53.5/{\color{green}+\ \ 4.3}$ $88.6/86.8/{\color{green}+\ \ 1.8}$ $92.6/83.9/{\color{green}+\ \ 8.6}$
mul bf16 $\ \ 0.8/\ \ 0.8/{\color{green}+\ \ 0.0}$ $10.1/10.0/{\color{green}+\ \ 0.1}$ $57.7/53.5/{\color{green}+\ \ 4.3}$ $88.7/86.8/{\color{green}+\ \ 1.8}$ $92.5/85.5/{\color{green}+\ \ 6.9}$
mul f32 $\ \ 1.6/\ \ 1.6/{\color{green}+\ \ 0.0}$ $19.3/18.1/{\color{green}+\ \ 1.1}$ $71.0/70.0/{\color{green}+\ \ 1.0}$ $91.3/92.1/{\color{red}-\ \ 0.8}$ $92.8/93.6/{\color{red}-\ \ 0.8}$
div half $\ \ 0.7/\ \ 0.8/{\color{red}-\ \ 0.1}$ $10.0/10.0/{\color{red}-\ \ 0.0}$ $53.5/49.3/{\color{green}+\ \ 4.3}$ $83.2/73.2/{\color{green}+10.0}$ $79.4/69.9/{\color{green}+\ \ 9.5}$
div bf16 $\ \ 0.7/\ \ 0.8/{\color{red}-\ \ 0.1}$ $\ \ 9.5/10.0/{\color{red}-\ \ 0.5}$ $54.4/49.2/{\color{green}+\ \ 5.2}$ $82.5/69.7/{\color{green}+12.8}$ $79.8/71.6/{\color{green}+\ \ 8.2}$
div f32 $\ \ 1.5/\ \ 1.6/{\color{red}-\ \ 0.1}$ $17.5/17.2/{\color{green}+\ \ 0.3}$ $69.9/67.4/{\color{green}+\ \ 2.5}$ $92.3/85.1/{\color{green}+\ \ 7.2}$ $93.6/81.8/{\color{green}+11.8}$
le half $\ \ 0.8/\ \ 0.8/{\color{red}-\ \ 0.0}$ $10.0/10.0/{\color{green}+\ \ 0.0}$ $57.9/53.4/{\color{green}+\ \ 4.5}$ $89.2/84.7/{\color{green}+\ \ 4.5}$ $92.7/82.5/{\color{green}+10.2}$
le bf16 $\ \ 0.8/\ \ 0.8/{\color{green}+\ \ 0.1}$ $10.0/\ \ 9.6/{\color{green}+\ \ 0.5}$ $57.9/54.0/{\color{green}+\ \ 3.9}$ $89.3/84.7/{\color{green}+\ \ 4.6}$ $92.7/83.1/{\color{green}+\ \ 9.6}$
le f32 $\ \ 1.6/\ \ 1.6/{\color{green}+\ \ 0.0}$ $18.2/17.6/{\color{green}+\ \ 0.7}$ $70.6/70.3/{\color{green}+\ \ 0.3}$ $91.3/92.1/{\color{red}-\ \ 0.8}$ $92.8/93.9/{\color{red}-\ \ 1.2}$
ge half $\ \ 0.8/\ \ 0.8/{\color{green}+\ \ 0.0}$ $10.0/10.0/{\color{green}+\ \ 0.0}$ $57.5/53.4/{\color{green}+\ \ 4.1}$ $89.3/84.7/{\color{green}+\ \ 4.6}$ $92.8/82.6/{\color{green}+10.2}$
ge bf16 $\ \ 0.8/\ \ 0.8/{\color{green}+\ \ 0.0}$ $10.0/\ \ 9.8/{\color{green}+\ \ 0.2}$ $57.5/53.4/{\color{green}+\ \ 4.1}$ $89.3/84.7/{\color{green}+\ \ 4.6}$ $92.7/83.1/{\color{green}+\ \ 9.6}$
ge f32 $\ \ 1.6/\ \ 1.6/{\color{green}+\ \ 0.1}$ $18.4/17.5/{\color{green}+\ \ 0.9}$ $70.2/69.9/{\color{green}+\ \ 0.3}$ $91.3/92.1/{\color{red}-\ \ 0.8}$ $92.7/93.9/{\color{red}-\ \ 1.2}$
fmin half $\ \ 0.8/\ \ 0.8/{\color{green}+\ \ 0.0}$ $10.0/\ \ 9.7/{\color{green}+\ \ 0.3}$ $57.4/53.5/{\color{green}+\ \ 3.9}$ $89.1/84.0/{\color{green}+\ \ 5.0}$ $92.7/80.2/{\color{green}+12.5}$
fmin bf16 $\ \ 0.8/\ \ 0.8/{\color{green}+\ \ 0.0}$ $10.0/\ \ 9.7/{\color{green}+\ \ 0.3}$ $57.9/53.4/{\color{green}+\ \ 4.5}$ $89.1/84.0/{\color{green}+\ \ 5.1}$ $92.6/81.7/{\color{green}+10.9}$
fmin f32 $\ \ 1.6/\ \ 1.6/{\color{green}+\ \ 0.0}$ $19.3/18.5/{\color{green}+\ \ 0.8}$ $70.7/70.6/{\color{green}+\ \ 0.1}$ $91.2/92.0/{\color{red}-\ \ 0.8}$ $92.8/93.5/{\color{red}-\ \ 0.7}$
fmax half $\ \ 0.8/\ \ 0.8/{\color{green}+\ \ 0.0}$ $10.0/10.0/{\color{green}+\ \ 0.0}$ $57.7/53.4/{\color{green}+\ \ 4.3}$ $89.1/83.8/{\color{green}+\ \ 5.3}$ $92.7/80.3/{\color{green}+12.4}$
fmax bf16 $\ \ 0.8/\ \ 0.8/{\color{green}+\ \ 0.0}$ $10.0/10.0/{\color{green}+\ \ 0.1}$ $58.1/53.5/{\color{green}+\ \ 4.7}$ $89.1/84.0/{\color{green}+\ \ 5.0}$ $92.6/81.7/{\color{green}+10.9}$
fmax f32 $\ \ 1.6/\ \ 1.6/{\color{green}+\ \ 0.0}$ $18.7/18.2/{\color{green}+\ \ 0.5}$ $69.8/68.5/{\color{green}+\ \ 1.3}$ $91.2/92.0/{\color{red}-\ \ 0.8}$ $92.8/93.5/{\color{red}-\ \ 0.7}$

babel

op T 2^16 2^20 2^24 2^28 2^31
mul i8 $\ \ 0.2/\ \ 0.3/{\color{red}-\ \ 0.1}$ $\ \ 3.5/\ \ 3.4/{\color{green}+\ \ 0.1}$ $34.5/30.2/{\color{green}+\ \ 4.3}$ $72.9/58.9/{\color{green}+14.0}$ $79.4/59.8/{\color{green}+19.6}$
mul i16 $\ \ 0.5/\ \ 0.5/{\color{red}-\ \ 0.1}$ $\ \ 6.7/\ \ 6.7/{\color{red}-\ \ 0.0}$ $48.2/47.5/{\color{green}+\ \ 0.7}$ $85.2/85.5/{\color{red}-\ \ 0.2}$ $89.4/82.2/{\color{green}+\ \ 7.2}$
mul f32 $\ \ 0.9/\ \ 1.1/{\color{red}-\ \ 0.2}$ $12.9/13.3/{\color{red}-\ \ 0.3}$ $61.6/65.3/{\color{red}-\ \ 3.7}$ $87.5/89.0/{\color{red}-\ \ 1.5}$ $89.6/91.0/{\color{red}-\ \ 1.5}$
mul f64 $\ \ 1.7/\ \ 2.1/{\color{red}-\ \ 0.4}$ $21.8/21.5/{\color{green}+\ \ 0.3}$ $73.8/76.1/{\color{red}-\ \ 2.2}$ $88.8/90.0/{\color{red}-\ \ 1.3}$ $89.8/91.1/{\color{red}-\ \ 1.3}$
add i8 $\ \ 0.3/\ \ 0.4/{\color{red}-\ \ 0.1}$ $\ \ 5.2/\ \ 5.0/{\color{green}+\ \ 0.1}$ $38.8/39.9/{\color{red}-\ \ 1.1}$ $66.9/71.3/{\color{red}-\ \ 4.4}$ $71.2/70.4/{\color{green}+\ \ 0.8}$
add i16 $\ \ 0.8/\ \ 0.8/{\color{red}-\ \ 0.0}$ $10.0/10.0/{\color{green}+\ \ 0.0}$ $58.4/54.7/{\color{green}+\ \ 3.7}$ $88.7/86.9/{\color{green}+\ \ 1.9}$ $92.5/85.3/{\color{green}+\ \ 7.2}$
add f32 $\ \ 1.6/\ \ 1.6/{\color{red}-\ \ 0.1}$ $17.7/17.5/{\color{green}+\ \ 0.2}$ $70.2/68.8/{\color{green}+\ \ 1.5}$ $91.2/92.1/{\color{red}-\ \ 0.9}$ $92.8/93.7/{\color{red}-\ \ 0.9}$
add f64 $\ \ 3.0/\ \ 3.1/{\color{red}-\ \ 0.1}$ $30.9/31.5/{\color{red}-\ \ 0.6}$ $80.3/79.9/{\color{green}+\ \ 0.4}$ $92.0/93.3/{\color{red}-\ \ 1.3}$ $93.0/94.1/{\color{red}-\ \ 1.1}$
triad i8 $\ \ 0.4/\ \ 0.4/{\color{red}-\ \ 0.0}$ $\ \ 5.1/\ \ 5.0/{\color{green}+\ \ 0.0}$ $36.9/36.9/{\color{green}+\ \ 0.0}$ $64.1/67.4/{\color{red}-\ \ 3.3}$ $66.2/64.6/{\color{green}+\ \ 1.6}$
triad i16 $\ \ 0.8/\ \ 0.8/{\color{green}+\ \ 0.0}$ $10.0/10.0/{\color{green}+\ \ 0.0}$ $57.9/53.5/{\color{green}+\ \ 4.4}$ $90.0/85.9/{\color{green}+\ \ 4.0}$ $93.0/83.3/{\color{green}+\ \ 9.6}$
triad f32 $\ \ 1.6/\ \ 1.6/{\color{green}+\ \ 0.0}$ $18.9/17.6/{\color{green}+\ \ 1.3}$ $71.0/70.0/{\color{green}+\ \ 1.1}$ $91.3/92.3/{\color{red}-\ \ 1.0}$ $92.9/91.6/{\color{green}+\ \ 1.3}$
triad f64 $\ \ 3.2/\ \ 3.1/{\color{green}+\ \ 0.1}$ $30.5/29.7/{\color{green}+\ \ 0.8}$ $79.9/79.8/{\color{green}+\ \ 0.1}$ $92.1/93.5/{\color{red}-\ \ 1.4}$ $93.0/93.8/{\color{red}-\ \ 0.8}$
nstream i8 $\ \ 0.4/\ \ 0.5/{\color{red}-\ \ 0.1}$ $\ \ 6.6/\ \ 6.7/{\color{red}-\ \ 0.0}$ $37.7/42.6/{\color{red}-\ \ 4.9}$ $56.5/65.8/{\color{red}-\ \ 9.2}$ $57.3/64.0/{\color{red}-\ \ 6.6}$
nstream i16 $\ \ 1.1/\ \ 1.1/{\color{green}+\ \ 0.0}$ $13.3/13.3/{\color{green}+\ \ 0.0}$ $61.9/60.9/{\color{green}+\ \ 1.0}$ $91.7/85.2/{\color{green}+\ \ 6.5}$ $95.0/81.5/{\color{green}+13.6}$
nstream f32 $\ \ 2.1/\ \ 2.1/{\color{green}+\ \ 0.1}$ $22.0/21.4/{\color{green}+\ \ 0.6}$ $74.6/73.4/{\color{green}+\ \ 1.2}$ $93.4/92.7/{\color{green}+\ \ 0.8}$ $95.3/93.4/{\color{green}+\ \ 1.9}$
nstream f64 $\ \ 3.8/\ \ 3.6/{\color{green}+\ \ 0.2}$ $35.5/35.5/{\color{green}+\ \ 0.0}$ $83.3/83.2/{\color{green}+\ \ 0.0}$ $94.5/94.5/{\color{red}-\ \ 0.1}$ $95.4/95.5/{\color{red}-\ \ 0.0}$

copy, grayscale, fill

op T 2^16 2^20 2^24 2^28 2^31
copy i8 $\ \ 0.3/\ \ 0.3/{\color{green}+\ \ 0.0}$ $\ \ 4.0/\ \ 3.4/{\color{green}+\ \ 0.6}$ $35.8/30.8/{\color{green}+\ \ 5.1}$ $82.1/72.0/{\color{green}+10.0}$ $89.8/68.5/{\color{green}+21.2}$
copy i16 $\ \ 0.5/\ \ 0.5/{\color{green}+\ \ 0.0}$ $\ \ 6.8/\ \ 6.8/{\color{green}+\ \ 0.1}$ $51.7/47.4/{\color{green}+\ \ 4.4}$ $86.5/84.8/{\color{green}+\ \ 1.7}$ $90.5/80.6/{\color{green}+\ \ 9.9}$
copy i32 $\ \ 0.9/\ \ 1.1/{\color{red}-\ \ 0.2}$ $13.0/13.1/{\color{red}-\ \ 0.1}$ $61.8/65.3/{\color{red}-\ \ 3.4}$ $87.7/88.7/{\color{red}-\ \ 1.1}$ $89.6/91.0/{\color{red}-\ \ 1.5}$
copy f32 $\ \ 0.9/\ \ 1.1/{\color{red}-\ \ 0.2}$ $13.0/13.2/{\color{red}-\ \ 0.1}$ $62.2/65.3/{\color{red}-\ \ 3.1}$ $87.6/88.8/{\color{red}-\ \ 1.1}$ $88.2/91.2/{\color{red}-\ \ 3.0}$
copy f64 $\ \ 2.1/\ \ 2.1/{\color{red}-\ \ 0.0}$ $23.0/22.2/{\color{green}+\ \ 0.8}$ $75.5/75.7/{\color{red}-\ \ 0.2}$ $89.8/90.1/{\color{red}-\ \ 0.3}$ $90.9/91.2/{\color{red}-\ \ 0.3}$
grayscale f32 $\ \ 1.7/\ \ 2.0/{\color{red}-\ \ 0.3}$ $21.7/21.3/{\color{green}+\ \ 0.4}$ $70.7/71.1/{\color{red}-\ \ 0.4}$ $92.3/92.6/{\color{red}-\ \ 0.4}$ $94.0/93.7/{\color{green}+\ \ 0.3}$
grayscale f64 $\ \ 3.5/\ \ 3.8/{\color{red}-\ \ 0.2}$ $35.1/35.1/{\color{red}-\ \ 0.0}$ $79.7/82.7/{\color{red}-\ \ 3.1}$ $92.9/94.4/{\color{red}-\ \ 1.5}$ $93.7/95.6/{\color{red}-\ \ 1.9}$
fill I8 $\ \ 0.1/\ \ 0.1/{\color{red}-\ \ 0.0}$ $\ \ 2.2/\ \ 2.2/{\color{red}-\ \ 0.0}$ $26.3/26.3/{\color{red}-\ \ 0.0}$ $85.1/85.1/{\color{red}-\ \ 0.0}$ $97.4/97.4/{\color{red}-\ \ 0.0}$
fill I16 $\ \ 0.3/\ \ 0.3/{\color{green}+\ \ 0.0}$ $\ \ 4.4/\ \ 4.4/{\color{green}+\ \ 0.0}$ $42.1/42.6/{\color{red}-\ \ 0.6}$ $91.8/91.9/{\color{red}-\ \ 0.1}$ $98.2/98.2/{\color{red}-\ \ 0.0}$
fill I32 $\ \ 0.6/\ \ 0.6/{\color{red}-\ \ 0.0}$ $\ \ 8.5/\ \ 8.3/{\color{green}+\ \ 0.2}$ $60.1/59.3/{\color{green}+\ \ 0.8}$ $95.1/95.0/{\color{green}+\ \ 0.1}$ $98.8/98.7/{\color{green}+\ \ 0.1}$
fill I64 $\ \ 1.1/\ \ 1.1/{\color{green}+\ \ 0.0}$ $13.9/15.1/{\color{red}-\ \ 1.2}$ $72.8/71.4/{\color{green}+\ \ 1.4}$ $97.4/97.0/{\color{green}+\ \ 0.4}$ $99.1/99.0/{\color{green}+\ \ 0.1}$

We did not do benchmarks on complex, fib and heavy:

  • for complex, cutile does not accept std::complex as a vaild type to form tiles.
  • for fib, with tile semantics, there is no 1-to-1 fair implementation in tile. We can get one by abusing ct::select but it is much slower.
  • for heavy, cutile lowers syntax like T reg[N] to heap allocation.

There was a more detailed write up on fib and heavy here: #9038 (comment)

@nanan-nvidia nanan-nvidia self-assigned this Jun 1, 2026
@github-project-automation github-project-automation Bot moved this to Todo in CCCL Jun 1, 2026
@copy-pr-bot

copy-pr-bot Bot commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@cccl-authenticator-app cccl-authenticator-app Bot moved this from Todo to In Progress in CCCL Jun 1, 2026

@miscco miscco left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks great already

Comment on lines +78 to +79
auto num_items = ct::assume_bounded_below<0>(ct::assume_divisible<16>(num_items_));
auto out = ct::assume_aligned<16>(out_);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggestion: For a fair comparison, the transform_kernel should support unaligned data as well. This can be just a branch dispatching two an aligned and an unaligned code path.

@nanan-nvidia nanan-nvidia Jun 2, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Indeed! However, I have observed very bad performance on tile kernels in this case. When the pointer is not aligned, all loads will not be vectorized. CUB does way better with TMA & overcopying.

I am asking compiler people to see if they can add this heuristics, since having this will make a much more informative benchmark

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

That is a very good idea! Please help them improve tile!

Unaligned inputs are less common but do appear. Examples are if you want to run a kernel on the output of a previous one, where the previous one also chose the problem size. Like, you partition an array by a predicate and then only transform the elements of the selected partition, etc. Such cases come up frequently in database or dataframe workloads.

@bernhardmgruber

Copy link
Copy Markdown
Contributor

I am genuinely impressed by the size of the tile kernel! It's really small and expressive. Nice!

@nanan-nvidia

nanan-nvidia commented Jun 4, 2026 •

Copy link
Copy Markdown
Contributor Author

NOTE: Not ready to merge due to regular device transform SIMT kernels will fail to compile with --enable-tile. I temporarily unblocked myself with e0a31e4

This now introduces tile kernels with no call site change for users. To opt in at build time, please compile with --enable-tile and -DCCCL_ENABLE_TILE_TRANSFORM_DISPATCH.

The basic idea is, at compile time, eligible (Op, T, NIn) combos will be dispatched to tile kernels with traits. We can ship traits based on our benchmarks (i.e. if we know tile is better on some (Op, T, NIn)). The user can also self-register the combos they find tile to be beneficial. To self register, they need to provide three pieces of data:

First, a SIMT functor that will be called at the API:

struct my_tanh {
    template <class T>
    __host__ __device__ T operator()(T v) const {
        return static_cast<T>(::cuda::std::tanh(static_cast<float>(v)));
    }
};

Second, a tile functor that has the same semantical meaning:

#if defined(CCCL_ENABLE_TILE_TRANSFORM_DISPATCH) && _CCCL_TILE_COMPILATION()
struct tile_my_tanh {
    template <class T>
    __tile__ auto operator()(T v) const {
        namespace ct = cuda::tiles;
        return ct::element_cast<ct::tile_element_t<T>>(
            ct::tanh(ct::element_cast<float>(v)));
    }
};

And third, the trait specialization that links those two functors:

CUB_NAMESPACE_BEGIN
namespace detail::transform::tile {
    template <class T>
    struct tile_eligible<my_tanh, T, 1> : std::true_type {
        using tile_op_type = tile_my_tanh;
    };
    // Optional: hint the tile policy picker that this is MUFU-heavy.
    template <> struct tile_mufu_heavy<my_tanh> : std::true_type {};
}
CUB_NAMESPACE_END
#endif

The general idea is that as cutile c++ gets more and more mature and performant, we can correspondingly register more and more cases until it covers all the cases.

The dispatch flow is as follows:

                 cub::DeviceTransform::Transform(.., op, ..)
                                │
                                ▼
              if constexpr (tile_dispatch_eligible_v<Op, OutIter, InIters...>):
                                │
              ┌─────────────────┴─────────────────┐
              ▼                                   ▼
       runtime preconditions OK?            standard CUB dispatch
       (16B-aligned pointers, 
        num_items % 16 == 0, 
        num_items ≤ 2^31)
              │
       ┌──────┴──────┐
       ▼             ▼
   tile kernel    standard CUB

Those runtime preconditions exist because current bad cutile performance on those cases.

image

@fbusato fbusato left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I did a first pass for the library implementation. The implementation is already great!!
I pointed out some compatibility and stylistic issues.

@nanan-nvidia nanan-nvidia changed the title [Tile][WIP] tile DeviceTransform port https://github.com/NVIDIA/cccl/pull/9210#issuecomment-4618162940 Jun 9, 2026
@nanan-nvidia nanan-nvidia removed this from CCCL Jun 9, 2026
@nanan-nvidia nanan-nvidia added this to CCCL Jun 9, 2026
@github-project-automation github-project-automation Bot moved this to In Progress in CCCL Jun 9, 2026
@nanan-nvidia nanan-nvidia removed this from CCCL Jun 9, 2026
@nanan-nvidia nanan-nvidia added this to CCCL Jun 9, 2026
@github-project-automation github-project-automation Bot moved this to Todo in CCCL Jun 9, 2026
@github-project-automation github-project-automation Bot moved this from Todo to In Progress in CCCL Jun 9, 2026
@nanan-nvidia nanan-nvidia changed the title https://github.com/NVIDIA/cccl/pull/9210#issuecomment-4618162940 [Tile][WIP] tile DeviceTransform port Jun 9, 2026
@nanan-nvidia

Copy link
Copy Markdown
Contributor Author

/ok to test b893189

@github-actions

This comment has been minimized.

@nanan-nvidia

Copy link
Copy Markdown
Contributor Author

/ok to test 9af44e6

@github-actions

This comment has been minimized.

@nanan-nvidia
nanan-nvidia force-pushed the tile-device-transform branch from 9af44e6 to 1960f3f Compare June 12, 2026 09:38
@nanan-nvidia

Copy link
Copy Markdown
Contributor Author

/ok to test 1960f3f

@github-actions

This comment has been minimized.

Comment thread cub/cub/device/device_transform.cuh Resolved
Comment thread cub/cub/device/device_transform.cuh Resolved
// Defined as a literal 1/0 (not (_CCCL_CUB_HAS_TILE_TRANSFORM() && defined(...))) so that
// `#if _CCCL_CUB_TILE_TRANSFORM_DISPATCH_ENABLED()` in non-system code (benches, tests) does not
// generate `defined` via macro expansion, which is UB and trips -Wexpansion-to-defined under -Werror.
#if _CCCL_CUB_HAS_TILE_TRANSFORM() && defined(CCCL_ENABLE_TILE_TRANSFORM_DISPATCH)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@bernhardmgruber my feeling is that we should have a CUB specific macro to enable or disable Tile for CUB. Per-API macro looks too invasive. Any thought?

@bernhardmgruber bernhardmgruber Jun 23, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why not a CCCL-wide macro? But otherwise, this should definitely go into some more common/non-transform specific header. Like cub/detail/tile_support.cuh or something like that. You may also move the tile traits there.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why can't we just use _CCCL_TILE_COMPILATION()?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This existed because we wanted a separate CTK version check. The version check is now redundant since the compiler fixes are back ported to 13.4 and _CCCL_TILE_COMPILATION already checks it.

@nanan-nvidia

Copy link
Copy Markdown
Contributor Author

/ok to test 88aeee3

@nanan-nvidia
nanan-nvidia requested a review from fbusato July 7, 2026 09:11
@gevtushenko gevtushenko changed the title [Tile][WIP] tile DeviceTransform port [Tile] tile DeviceTransform port Jul 7, 2026
@nanan-nvidia

Copy link
Copy Markdown
Contributor Author

/ok to test 00326d7

@github-actions

This comment has been minimized.

@fbusato fbusato left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

looks good, approved. Minor comments to address/reply


#include "../common.h"

#if _CCCL_CUB_TILE_TRANSFORM_DISPATCH_ENABLED()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

question. Does it make sense to use _CCCL_CUB_TILE_TRANSFORM_DISPATCH_ENABLED() if the benchmarks are already gated by cmake checks?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

cmake does not skip the tile benches when the option is OFF (it builds the same files without the tile flags), so we still have to gate those code that won't compile without tile flags behind a macro

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

what about disabling the compilation when the option is OFF? I don't see much value to compile the code if the benchmark is not really enabled. Or do we want this behavior to get better coverage?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, I want to still compile those TUs so they have coverage

Comment thread cub/cub/device/device_transform.cuh Resolved
// serve directly as the tile_operator for the typed cuda::std::plus<T>/multiplies<T> a user passes.
# if _CCCL_HAS_NVFP16()
template <>
inline constexpr bool tile_eligible_v<::cuda::std::plus<::__half>, ::__half, 2> = true;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

could you please remember me why we need specializations only for __half/__nv_bfloat16?
(add a comment if it is the case)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Comment added. It is mainly because we wanted to only specialize on small types since that is the area where we observe most performance benefits.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ok, but what about int8, int16?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

btw, where is the comment?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

On comment: It was at line 80 - line 82. (My new commit deleted this comment, reasons see below)

On int8, int16: good point! Also, I forgot one thing: #9481 was merged yesterday, so the performance gap that motivated those specializations no longer exists. So now, I think we should just specialize for all element types the tile kernel supports, so that we can test on newer hardware.

@nanan-nvidia

Copy link
Copy Markdown
Contributor Author

/ok to test 6eb116d

@nanan-nvidia

Copy link
Copy Markdown
Contributor Author

/ok to test 87001bc

@nanan-nvidia

Copy link
Copy Markdown
Contributor Author

/ok to test 95a222d

@nanan-nvidia
nanan-nvidia enabled auto-merge (squash) July 8, 2026 20:52
@nanan-nvidia

Copy link
Copy Markdown
Contributor Author

/ok to test 0e5f179

@github-actions

This comment has been minimized.

@nanan-nvidia
nanan-nvidia disabled auto-merge July 9, 2026 01:16
Comment thread cub/cub/device/device_transform.cuh Resolved
Comment on lines +39 to +44
// mufu_heavy=true tells the policy the functor body has heavy MUFU usage.
// for small data types, vectorized load will make them arrive packed in
// registers and the compiler unpacks them and packs them back. reducing the
// compute work per thread helps here. need profiling to know the exact cause.
template <typename Out, typename... Ins>
constexpr int pick_tile_size(bool mufu_heavy = false, ::cuda::compute_capability cc = {10, 0})

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Note: this should eventually move into the policy selector

Comment on lines +29 to +35
#define _CCCL_CUB_HAS_TILE_TRANSFORM() _CCCL_TILE_COMPILATION()

#if _CCCL_CUB_HAS_TILE_TRANSFORM() && defined(_CCCL_ENABLE_EXPERIMENTAL_TILE_TRANSFORM_DISPATCH)
# define _CCCL_CUB_TILE_TRANSFORM_DISPATCH_ENABLED() 1
#else
# define _CCCL_CUB_TILE_TRANSFORM_DISPATCH_ENABLED() 0
#endif

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggestion: I don't fully understand why we need two macros. Can't we just have #define _CCCL_CUB_HAS_TILE_TRANSFORM() _CCCL_TILE_COMPILATION() && defined(_CCCL_ENABLE_EXPERIMENTAL_TILE_TRANSFORM_DISPATCH)?

I don't see why we would want to enable the tile transform headers, but not enable the dispatch at the same time.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this is UB

#define _CCCL_CUB_HAS_TILE_TRANSFORM() _CCCL_TILE_COMPILATION() && defined(_CCCL_ENABLE_EXPERIMENTAL_TILE_TRANSFORM_DISPATCH)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Then just rephrase as:

#if _CCCL_CUB_HAS_TILE_TRANSFORM() && defined(_CCCL_ENABLE_EXPERIMENTAL_TILE_TRANSFORM_DISPATCH)
#  define _CCCL_CUB_HAS_TILE_TRANSFORM() 1
#else
#  define _CCCL_CUB_HAS_TILE_TRANSFORM() 0
#endif

And replace every use of _CCCL_CUB_TILE_TRANSFORM_DISPATCH_ENABLED by _CCCL_CUB_HAS_TILE_TRANSFORM?

Comment on lines +25 to +34
// Unary: v * v.
struct square_op
{
_CCCL_EXEC_CHECK_DISABLE
template <class T>
_CCCL_API T operator()(T v) const
{
return static_cast<T>(v * v);
}
};

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggestion: use thrust::square_t

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Just checked, thrust::square<>'s operator() is _CCCL_HOST_DEVICE only, so it doesn't work with cutile.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why can't we just make it _CCCL_API instead?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We can! I just tried it and it would work. But is this something we want for thrust?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yes, we want that everywhere. Can you file a PR and annotate all Thrust functors with _CCCL_API?

@bernhardmgruber

Copy link
Copy Markdown
Contributor

@nanan-nvidia please post the latest version of the babelstream benchmark as an nvbench diff. I am curious how tile compares now that we have store vectorization.

@nanan-nvidia

Copy link
Copy Markdown
Contributor Author

please post the latest version of the babelstream benchmark as an nvbench diff. I am curious how tile compares now that we have store vectorization.

@bernhardmgruber Here it is:

Babelstream:

# mul

## [0] NVIDIA B200

|  T{ct}  |  Elements{io}  |   Ref BWUtil |   Ref Noise |   Cmp BWUtil |   Cmp Noise |    Diff |   %Diff |  Status  |
|---------|----------------|--------------|-------------|--------------|-------------|---------|---------|----------|
|   I8    |      2^16      |        0.28% |       1.91% |        0.28% |       1.90% |   0.00% |   0.09% |  🔵 SAME  |
|   I8    |      2^20      |        3.37% |       3.25% |        3.93% |      14.17% |   0.56% |  16.76% |  🟢 FAST  |
|   I8    |      2^24      |       35.60% |       0.72% |       35.59% |       1.92% |  -0.01% |  -0.03% |  🔵 SAME  |
|   I8    |      2^28      |       82.47% |       1.19% |       69.98% |       0.74% | -12.49% | -15.14% |  🔴 SLOW  |
|   I8    |      2^32      |       90.75% |       0.14% |       76.74% |       0.07% | -14.01% | -15.44% |  🔴 SLOW  |
|   I16   |      2^16      |        0.55% |       5.87% |        0.55% |       4.47% |   0.00% |   0.65% |  🔵 SAME  |
|   I16   |      2^20      |        6.68% |       1.06% |        6.73% |       3.93% |   0.04% |   0.66% |  🔵 SAME  |
|   I16   |      2^24      |       51.00% |       5.82% |       51.50% |       5.52% |   0.50% |   0.98% |  🔵 SAME  |
|   I16   |      2^28      |       86.73% |       0.64% |       86.25% |       0.57% |  -0.48% |  -0.56% |  🔵 SAME  |
|   I16   |      2^32      |       91.21% |       0.08% |       90.79% |       0.10% |  -0.42% |  -0.46% |  🔴 SLOW  |
|   F32   |      2^16      |        1.11% |       3.04% |        1.12% |       1.54% |   0.00% |   0.21% |  🔵 SAME  |
|   F32   |      2^20      |       13.38% |       1.18% |       13.38% |       1.13% |  -0.00% |  -0.02% |  🔵 SAME  |
|   F32   |      2^24      |       65.55% |       1.33% |       65.51% |       1.46% |  -0.04% |  -0.06% |  🔵 SAME  |
|   F32   |      2^28      |       89.06% |       0.34% |       88.78% |       0.29% |  -0.28% |  -0.32% |  🔴 SLOW  |
|   F32   |      2^32      |       91.11% |       0.08% |       90.97% |       0.07% |  -0.14% |  -0.16% |  🔴 SLOW  |
|   F64   |      2^16      |        2.18% |       7.94% |        2.22% |       4.34% |   0.03% |   1.58% |  🔵 SAME  |
|   F64   |      2^20      |       22.08% |       7.62% |       22.51% |       9.25% |   0.43% |   1.94% |  🔵 SAME  |
|   F64   |      2^24      |       75.27% |       2.17% |       74.80% |       1.75% |  -0.46% |  -0.61% |  🔵 SAME  |
|   F64   |      2^28      |       90.13% |       0.23% |       89.87% |       0.20% |  -0.26% |  -0.28% |  🔴 SLOW  |
|   F64   |      2^32      |       91.10% |       0.11% |       90.96% |       0.13% |  -0.14% |  -0.15% |  🔴 SLOW  |

# add

## [0] NVIDIA B200

|  T{ct}  |  Elements{io}  |   Ref BWUtil |   Ref Noise |   Cmp BWUtil |   Cmp Noise |    Diff |   %Diff |  Status  |
|---------|----------------|--------------|-------------|--------------|-------------|---------|---------|----------|
|   I8    |      2^16      |        0.42% |       4.05% |        0.42% |       1.30% |   0.00% |   0.47% |  🔵 SAME  |
|   I8    |      2^20      |        5.01% |       0.93% |        5.41% |      12.29% |   0.40% |   7.95% |  🟢 FAST  |
|   I8    |      2^24      |       44.99% |       4.70% |       40.53% |       3.79% |  -4.46% |  -9.92% |  🔴 SLOW  |
|   I8    |      2^28      |       85.42% |       0.06% |       74.61% |       0.68% | -10.81% | -12.65% |  🔴 SLOW  |
|   I8    |      2^32      |       94.04% |       0.06% |       80.31% |       0.05% | -13.72% | -14.59% |  🔴 SLOW  |
|   I16   |      2^16      |        0.82% |       6.87% |        0.84% |       1.98% |   0.01% |   1.38% |  🔵 SAME  |
|   I16   |      2^20      |       10.03% |       0.86% |       10.03% |       0.97% |  -0.01% |  -0.07% |  🔵 SAME  |
|   I16   |      2^24      |       58.25% |       0.35% |       58.24% |       0.50% |  -0.01% |  -0.01% |  🔵 SAME  |
|   I16   |      2^28      |       89.20% |       0.24% |       88.88% |       0.51% |  -0.32% |  -0.36% |  🔴 SLOW  |
|   I16   |      2^32      |       93.43% |       0.02% |       92.76% |       0.10% |  -0.67% |  -0.72% |  🔴 SLOW  |
|   F32   |      2^16      |        1.66% |       5.20% |        1.67% |       1.88% |   0.01% |   0.71% |  🔵 SAME  |
|   F32   |      2^20      |       18.37% |      11.12% |       19.24% |       9.08% |   0.87% |   4.73% |  🔵 SAME  |
|   F32   |      2^24      |       70.20% |       2.40% |       70.88% |       1.50% |   0.68% |   0.96% |  🔵 SAME  |
|   F32   |      2^28      |       92.29% |       0.19% |       91.28% |       0.32% |  -1.01% |  -1.09% |  🔴 SLOW  |
|   F32   |      2^32      |       93.28% |       0.06% |       92.94% |       0.13% |  -0.34% |  -0.36% |  🔴 SLOW  |
|   F64   |      2^16      |        3.21% |      10.60% |        3.30% |       6.61% |   0.09% |   2.84% |  🔵 SAME  |
|   F64   |      2^20      |       31.84% |       4.06% |       31.91% |       3.36% |   0.08% |   0.24% |  🔵 SAME  |
|   F64   |      2^24      |       79.95% |       0.72% |       80.13% |       0.50% |   0.18% |   0.23% |  🔵 SAME  |
|   F64   |      2^28      |       92.85% |       0.18% |       92.01% |       0.27% |  -0.85% |  -0.91% |  🔴 SLOW  |
|   F64   |      2^32      |       93.28% |       0.06% |       92.95% |       0.06% |  -0.33% |  -0.35% |  🔴 SLOW  |

# triad

## [0] NVIDIA B200

|  T{ct}  |  Elements{io}  |   Ref BWUtil |   Ref Noise |   Cmp BWUtil |   Cmp Noise |    Diff |   %Diff |  Status  |
|---------|----------------|--------------|-------------|--------------|-------------|---------|---------|----------|
|   I8    |      2^16      |        0.42% |       3.99% |        0.42% |       2.60% |   0.00% |   0.28% |  🔵 SAME  |
|   I8    |      2^20      |        5.03% |       2.67% |        5.07% |       5.40% |   0.05% |   0.95% |  🔵 SAME  |
|   I8    |      2^24      |       40.92% |       4.86% |       36.05% |       3.57% |  -4.87% | -11.91% |  🔴 SLOW  |
|   I8    |      2^28      |       85.41% |       0.11% |       63.18% |       0.41% | -22.23% | -26.03% |  🔴 SLOW  |
|   I8    |      2^32      |       94.04% |       0.02% |       66.06% |       0.04% | -27.99% | -29.76% |  🔴 SLOW  |
|   I16   |      2^16      |        0.83% |       4.93% |        0.84% |       1.70% |   0.01% |   0.67% |  🔵 SAME  |
|   I16   |      2^20      |       10.03% |       0.79% |       10.03% |       1.09% |  -0.00% |  -0.01% |  🔵 SAME  |
|   I16   |      2^24      |       57.62% |       2.99% |       58.14% |       1.39% |   0.52% |   0.91% |  🔵 SAME  |
|   I16   |      2^28      |       88.22% |       0.35% |       89.92% |       0.13% |   1.70% |   1.92% |  🟢 FAST  |
|   I16   |      2^32      |       91.73% |       0.02% |       93.28% |       0.18% |   1.55% |   1.69% |  🟢 FAST  |
|   F32   |      2^16      |        1.66% |       5.82% |        1.67% |       2.58% |   0.01% |   0.84% |  🔵 SAME  |
|   F32   |      2^20      |       18.61% |      10.80% |       19.33% |       8.73% |   0.72% |   3.86% |  🔵 SAME  |
|   F32   |      2^24      |       70.98% |       1.23% |       71.06% |       0.94% |   0.08% |   0.11% |  🔵 SAME  |
|   F32   |      2^28      |       92.53% |       0.27% |       91.33% |       0.30% |  -1.20% |  -1.30% |  🔴 SLOW  |
|   F32   |      2^32      |       93.21% |       0.06% |       92.78% |       0.09% |  -0.44% |  -0.47% |  🔴 SLOW  |
|   F64   |      2^16      |        3.20% |      10.90% |        3.31% |       5.92% |   0.12% |   3.62% |  🔵 SAME  |
|   F64   |      2^20      |       30.52% |       8.38% |       31.10% |       7.15% |   0.58% |   1.90% |  🔵 SAME  |
|   F64   |      2^24      |       79.90% |       0.82% |       80.02% |       0.48% |   0.12% |   0.15% |  🔵 SAME  |
|   F64   |      2^28      |       93.24% |       0.29% |       92.06% |       0.29% |  -1.18% |  -1.27% |  🔴 SLOW  |
|   F64   |      2^32      |       93.29% |       0.05% |       92.90% |       0.08% |  -0.38% |  -0.41% |  🔴 SLOW  |

# nstream

## [0] NVIDIA B200

|  T{ct}  |  Elements{io}  |   Ref BWUtil |   Ref Noise |   Cmp BWUtil |   Cmp Noise |    Diff |   %Diff |  Status  |
|---------|----------------|--------------|-------------|--------------|-------------|---------|---------|----------|
|   I8    |      2^16      |        0.55% |       5.89% |        0.44% |      11.33% |  -0.11% | -19.47% |  🔴 SLOW  |
|   I8    |      2^20      |        6.68% |       1.05% |        6.68% |       1.08% |   0.00% |   0.03% |  🔵 SAME  |
|   I8    |      2^24      |       47.46% |       0.49% |       36.45% |       3.85% | -11.00% | -23.18% |  🔴 SLOW  |
|   I8    |      2^28      |       84.54% |       0.47% |       55.56% |       0.06% | -28.98% | -34.28% |  🔴 SLOW  |
|   I8    |      2^32      |       90.78% |       0.02% |       57.51% |       0.02% | -33.27% | -36.64% |  🔴 SLOW  |
|   I16   |      2^16      |        1.03% |      13.22% |        1.10% |       5.97% |   0.07% |   7.18% |  🟢 FAST  |
|   I16   |      2^20      |       13.38% |       1.05% |       13.38% |       0.98% |   0.00% |   0.00% |  🔵 SAME  |
|   I16   |      2^24      |       61.03% |       0.26% |       64.03% |       3.58% |   3.00% |   4.92% |  🟢 FAST  |
|   I16   |      2^28      |       88.79% |       0.17% |       91.71% |       0.10% |   2.92% |   3.29% |  🟢 FAST  |
|   I16   |      2^32      |       92.13% |       0.02% |       95.28% |       0.03% |   3.16% |   3.43% |  🟢 FAST  |
|   F32   |      2^16      |        2.05% |      13.38% |        2.21% |       5.78% |   0.15% |   7.52% |  🟢 FAST  |
|   F32   |      2^20      |       21.36% |       0.74% |       21.38% |       1.09% |   0.02% |   0.08% |  🔵 SAME  |
|   F32   |      2^24      |       74.05% |       1.13% |       74.38% |       0.80% |   0.33% |   0.45% |  🔵 SAME  |
|   F32   |      2^28      |       93.27% |       0.09% |       93.49% |       0.16% |   0.22% |   0.24% |  🟢 FAST  |
|   F32   |      2^32      |       94.95% |       0.00% |       95.41% |       0.02% |   0.46% |   0.48% |  🟢 FAST  |
|   F64   |      2^16      |        3.88% |      14.45% |        4.17% |      12.52% |   0.29% |   7.53% |  🔵 SAME  |
|   F64   |      2^20      |       35.60% |       1.08% |       35.61% |       0.71% |   0.01% |   0.02% |  🔵 SAME  |
|   F64   |      2^24      |       83.21% |       0.59% |       83.26% |       0.45% |   0.05% |   0.06% |  🔵 SAME  |
|   F64   |      2^28      |       94.50% |       0.09% |       94.47% |       0.08% |  -0.03% |  -0.03% |  🔵 SAME  |
|   F64   |      2^32      |       95.48% |       0.01% |       95.48% |       0.01% |   0.00% |   0.00% |  🔵 SAME  |

pytorch:

# relu

## [0] NVIDIA B200

|  T{ct}  |  Elements{io}  |   Ref BWUtil |   Ref Noise |   Cmp BWUtil |   Cmp Noise |   Diff |   %Diff |  Status  |
|---------|----------------|--------------|-------------|--------------|-------------|--------|---------|----------|
|   F16   |      2^16      |        0.56% |       1.64% |        0.56% |       1.72% |  0.00% |   0.14% |  🔵 SAME  |
|   F16   |      2^20      |        6.71% |      80.49% |        6.78% |       5.21% |  0.08% |   1.12% |  🔵 SAME  |
|   F16   |      2^24      |       51.73% |       5.36% |       52.05% |       4.98% |  0.32% |   0.61% |  🔵 SAME  |
|   F16   |      2^28      |       86.98% |       0.64% |       86.51% |       0.43% | -0.46% |  -0.53% |  🔴 SLOW  |
|   F16   |      2^32      |       91.08% |       0.09% |       90.74% |       0.10% | -0.34% |  -0.37% |  🔴 SLOW  |
|  BF16   |      2^16      |        0.55% |       4.84% |        0.56% |       3.95% |  0.00% |   0.19% |  🔵 SAME  |
|  BF16   |      2^20      |        6.69% |       1.86% |        6.74% |       4.61% |  0.05% |   0.73% |  🔵 SAME  |
|  BF16   |      2^24      |       51.40% |       5.61% |       49.86% |       5.80% | -1.55% |  -3.01% |  🔵 SAME  |
|  BF16   |      2^28      |       86.97% |       0.65% |       86.53% |       0.45% | -0.44% |  -0.51% |  🔴 SLOW  |
|  BF16   |      2^32      |       91.09% |       0.09% |       90.72% |       0.11% | -0.37% |  -0.41% |  🔴 SLOW  |
|   F32   |      2^16      |        1.11% |       2.78% |        1.11% |       1.34% |  0.00% |   0.15% |  🔵 SAME  |
|   F32   |      2^20      |       13.38% |       0.88% |       13.39% |       1.15% |  0.01% |   0.05% |  🔵 SAME  |
|   F32   |      2^24      |       65.63% |       1.00% |       65.56% |       1.32% | -0.07% |  -0.11% |  🔵 SAME  |
|   F32   |      2^28      |       88.69% |       0.36% |       88.47% |       0.35% | -0.22% |  -0.25% |  🔵 SAME  |
|   F32   |      2^32      |       91.07% |       0.11% |       90.92% |       0.14% | -0.16% |  -0.17% |  🔴 SLOW  |

# sigmoid

## [0] NVIDIA B200

|  T{ct}  |  Elements{io}  |   Ref BWUtil |   Ref Noise |   Cmp BWUtil |   Cmp Noise |   Diff |   %Diff |  Status  |
|---------|----------------|--------------|-------------|--------------|-------------|--------|---------|----------|
|   F16   |      2^16      |        0.45% |      11.88% |        0.54% |      10.28% |  0.09% |  19.78% |  🟢 FAST  |
|   F16   |      2^20      |        6.69% |       0.77% |        6.69% |       1.02% | -0.00% |  -0.00% |  🔵 SAME  |
|   F16   |      2^24      |       38.33% |       3.20% |       35.59% |       0.32% | -2.74% |  -7.15% |  🔴 SLOW  |
|   F16   |      2^28      |       56.02% |       0.11% |       50.78% |       0.37% | -5.24% |  -9.35% |  🔴 SLOW  |
|   F16   |      2^32      |       58.09% |       0.02% |       52.22% |       0.02% | -5.87% | -10.10% |  🔴 SLOW  |
|  BF16   |      2^16      |        0.45% |      12.30% |        0.54% |      10.09% |  0.09% |  19.20% |  🟢 FAST  |
|  BF16   |      2^20      |        6.69% |       0.90% |        6.69% |       0.96% | -0.00% |  -0.03% |  🔵 SAME  |
|  BF16   |      2^24      |       38.64% |       2.20% |       35.59% |       0.33% | -3.04% |  -7.87% |  🔴 SLOW  |
|  BF16   |      2^28      |       56.01% |       0.07% |       50.62% |       0.09% | -5.39% |  -9.63% |  🔴 SLOW  |
|  BF16   |      2^32      |       58.05% |       0.02% |       51.91% |       0.02% | -6.13% | -10.57% |  🔴 SLOW  |
|   F32   |      2^16      |        1.04% |      12.58% |        1.01% |      13.93% | -0.03% |  -3.13% |  🔵 SAME  |
|   F32   |      2^20      |       13.39% |       0.82% |       13.39% |       1.04% |  0.00% |   0.03% |  🔵 SAME  |
|   F32   |      2^24      |       64.23% |      43.38% |       65.15% |       2.53% |  0.92% |   1.44% |  🔵 SAME  |
|   F32   |      2^28      |       89.33% |       0.03% |       87.08% |       0.15% | -2.25% |  -2.51% |  🔴 SLOW  |
|   F32   |      2^32      |       91.35% |       0.43% |       89.15% |       0.33% | -2.21% |  -2.41% |  🔴 SLOW  |

# tanh

## [0] NVIDIA B200

|  T{ct}  |  Elements{io}  |   Ref BWUtil |   Ref Noise |   Cmp BWUtil |   Cmp Noise |    Diff |   %Diff |  Status  |
|---------|----------------|--------------|-------------|--------------|-------------|---------|---------|----------|
|   F16   |      2^16      |        0.56% |       3.35% |        0.56% |       1.72% |   0.00% |   0.27% |  🔵 SAME  |
|   F16   |      2^20      |        6.68% |       0.98% |        6.70% |       1.72% |   0.01% |   0.17% |  🔵 SAME  |
|   F16   |      2^24      |       42.73% |       0.33% |       38.84% |       0.42% |  -3.89% |  -9.11% |  🔴 SLOW  |
|   F16   |      2^28      |       65.74% |       0.22% |       56.74% |       0.42% |  -9.00% | -13.69% |  🔴 SLOW  |
|   F16   |      2^32      |       68.45% |       0.02% |       58.51% |       0.02% |  -9.93% | -14.51% |  🔴 SLOW  |
|  BF16   |      2^16      |        0.55% |       4.44% |        0.56% |       2.32% |   0.00% |   0.55% |  🔵 SAME  |
|  BF16   |      2^20      |        6.68% |       1.05% |        6.68% |       1.07% |  -0.00% |  -0.01% |  🔵 SAME  |
|  BF16   |      2^24      |       42.74% |       0.45% |       38.84% |       0.47% |  -3.90% |  -9.12% |  🔴 SLOW  |
|  BF16   |      2^28      |       65.12% |       0.24% |       55.57% |       0.13% |  -9.55% | -14.67% |  🔴 SLOW  |
|  BF16   |      2^32      |       67.76% |       0.02% |       57.41% |       0.02% | -10.35% | -15.28% |  🔴 SLOW  |
|   F32   |      2^16      |        1.11% |       3.42% |        1.11% |       2.88% |   0.00% |   0.19% |  🔵 SAME  |
|   F32   |      2^20      |       13.39% |       0.97% |       13.38% |       0.94% |  -0.00% |  -0.03% |  🔵 SAME  |
|   F32   |      2^24      |       65.63% |       0.98% |       65.39% |       1.87% |  -0.24% |  -0.36% |  🔵 SAME  |
|   F32   |      2^28      |       88.87% |       0.37% |       88.60% |       0.37% |  -0.27% |  -0.30% |  🔵 SAME  |
|   F32   |      2^32      |       91.34% |       0.07% |       91.11% |       0.07% |  -0.24% |  -0.26% |  🔴 SLOW  |

# gelu

## [0] NVIDIA B200

|  T{ct}  |  Elements{io}  |   Ref BWUtil |   Ref Noise |   Cmp BWUtil |   Cmp Noise |   Diff |   %Diff |  Status  |
|---------|----------------|--------------|-------------|--------------|-------------|--------|---------|----------|
|   F16   |      2^16      |        0.55% |       7.46% |        0.56% |       1.58% |  0.01% |   1.84% |  🟢 FAST  |
|   F16   |      2^20      |        6.69% |       0.94% |        6.69% |       1.05% |  0.00% |   0.01% |  🔵 SAME  |
|   F16   |      2^24      |       35.62% |       0.85% |       33.96% |       3.90% | -1.66% |  -4.67% |  🔴 SLOW  |
|   F16   |      2^28      |       53.39% |       0.08% |       46.62% |       0.34% | -6.76% | -12.67% |  🔴 SLOW  |
|   F16   |      2^32      |       55.10% |       0.02% |       47.86% |       0.02% | -7.24% | -13.14% |  🔴 SLOW  |
|  BF16   |      2^16      |        0.53% |      10.70% |        0.56% |       2.20% |  0.02% |   4.25% |  🟢 FAST  |
|  BF16   |      2^20      |        6.69% |       0.97% |        6.69% |       1.16% |  0.00% |   0.04% |  🔵 SAME  |
|  BF16   |      2^24      |       35.60% |       0.44% |       32.92% |       1.29% | -2.67% |  -7.50% |  🔴 SLOW  |
|  BF16   |      2^28      |       52.57% |       0.10% |       45.74% |       0.33% | -6.82% | -12.98% |  🔴 SLOW  |
|  BF16   |      2^32      |       54.28% |       0.02% |       46.88% |       0.02% | -7.40% | -13.63% |  🔴 SLOW  |
|   F32   |      2^16      |        1.11% |       4.88% |        1.11% |       3.13% |  0.01% |   0.53% |  🔵 SAME  |
|   F32   |      2^20      |       13.39% |       0.84% |       13.38% |       0.92% | -0.01% |  -0.07% |  🔵 SAME  |
|   F32   |      2^24      |       63.37% |       3.76% |       65.72% |       0.55% |  2.35% |   3.70% |  🟢 FAST  |
|   F32   |      2^28      |       86.24% |       0.32% |       89.01% |       0.33% |  2.77% |   3.21% |  🟢 FAST  |
|   F32   |      2^32      |       88.24% |       0.39% |       89.50% |       0.50% |  1.26% |   1.43% |  🟢 FAST  |

# sin

## [0] NVIDIA B200

|  T{ct}  |  Elements{io}  |   Ref BWUtil |   Ref Noise |   Cmp BWUtil |   Cmp Noise |   Diff |   %Diff |  Status  |
|---------|----------------|--------------|-------------|--------------|-------------|--------|---------|----------|
|   F16   |      2^16      |        0.48% |      14.25% |        0.53% |      11.65% |  0.05% |   9.84% |  🔵 SAME  |
|   F16   |      2^20      |        6.69% |       0.82% |        6.69% |       1.07% |  0.00% |   0.03% |  🔵 SAME  |
|   F16   |      2^24      |       35.60% |       0.27% |       32.86% |       0.35% | -2.74% |  -7.69% |  🔴 SLOW  |
|   F16   |      2^28      |       52.57% |       0.07% |       46.17% |       0.11% | -6.40% | -12.17% |  🔴 SLOW  |
|   F16   |      2^32      |       54.32% |       0.02% |       47.28% |       0.02% | -7.03% | -12.95% |  🔴 SLOW  |
|  BF16   |      2^16      |        0.48% |      14.26% |        0.53% |      12.06% |  0.05% |   9.60% |  🔵 SAME  |
|  BF16   |      2^20      |        6.69% |       0.79% |        6.69% |       1.16% |  0.00% |   0.00% |  🔵 SAME  |
|  BF16   |      2^24      |       35.59% |       0.28% |       32.87% |       0.42% | -2.73% |  -7.66% |  🔴 SLOW  |
|  BF16   |      2^28      |       52.57% |       0.07% |       45.83% |       0.21% | -6.73% | -12.81% |  🔴 SLOW  |
|  BF16   |      2^32      |       54.24% |       0.01% |       46.91% |       0.02% | -7.33% | -13.52% |  🔴 SLOW  |
|   F32   |      2^16      |        1.07% |      10.85% |        1.04% |      12.76% | -0.03% |  -2.60% |  🔵 SAME  |
|   F32   |      2^20      |       13.38% |       0.98% |       13.39% |       1.40% |  0.01% |   0.09% |  🔵 SAME  |
|   F32   |      2^24      |       61.01% |       0.24% |       61.06% |       0.29% |  0.05% |   0.08% |  🔵 SAME  |
|   F32   |      2^28      |       83.29% |       0.18% |       81.69% |       0.28% | -1.60% |  -1.92% |  🔴 SLOW  |
|   F32   |      2^32      |       85.19% |       0.15% |       83.48% |       0.33% | -1.71% |  -2.01% |  🔴 SLOW  |

# exp

## [0] NVIDIA B200

|  T{ct}  |  Elements{io}  |   Ref BWUtil |   Ref Noise |   Cmp BWUtil |   Cmp Noise |    Diff |   %Diff |  Status  |
|---------|----------------|--------------|-------------|--------------|-------------|---------|---------|----------|
|   F16   |      2^16      |        0.56% |       2.07% |        0.56% |       1.55% |   0.00% |   0.12% |  🔵 SAME  |
|   F16   |      2^20      |        6.68% |       0.95% |        6.75% |       4.93% |   0.07% |   0.99% |  🟢 FAST  |
|   F16   |      2^24      |       47.45% |       0.61% |       46.58% |       4.21% |  -0.88% |  -1.85% |  🔴 SLOW  |
|   F16   |      2^28      |       83.07% |       0.55% |       70.49% |       0.24% | -12.57% | -15.14% |  🔴 SLOW  |
|   F16   |      2^32      |       87.02% |       0.18% |       73.52% |       0.03% | -13.50% | -15.52% |  🔴 SLOW  |
|  BF16   |      2^16      |        0.56% |       3.45% |        0.56% |       1.52% |   0.00% |   0.27% |  🔵 SAME  |
|  BF16   |      2^20      |        6.68% |       0.95% |        7.27% |      12.60% |   0.58% |   8.73% |  🟢 FAST  |
|  BF16   |      2^24      |       52.19% |       4.86% |       43.23% |       3.33% |  -8.96% | -17.17% |  🔴 SLOW  |
|  BF16   |      2^28      |       86.50% |       0.06% |       67.66% |       0.06% | -18.84% | -21.78% |  🔴 SLOW  |
|  BF16   |      2^32      |       89.71% |       0.55% |       70.29% |       0.02% | -19.42% | -21.65% |  🔴 SLOW  |
|   F32   |      2^16      |        1.11% |       2.68% |        1.11% |       1.67% |   0.00% |   0.11% |  🔵 SAME  |
|   F32   |      2^20      |       13.38% |       0.88% |       13.38% |       0.98% |  -0.00% |  -0.03% |  🔵 SAME  |
|   F32   |      2^24      |       65.53% |       1.40% |       65.28% |       2.14% |  -0.25% |  -0.38% |  🔵 SAME  |
|   F32   |      2^28      |       88.71% |       0.35% |       88.48% |       0.35% |  -0.23% |  -0.26% |  🔵 SAME  |
|   F32   |      2^32      |       91.13% |       0.07% |       90.95% |       0.10% |  -0.18% |  -0.20% |  🔴 SLOW  |

# add

## [0] NVIDIA B200

|  T{ct}  |  Elements{io}  |   Ref BWUtil |   Ref Noise |   Cmp BWUtil |   Cmp Noise |   Diff |   %Diff |  Status  |
|---------|----------------|--------------|-------------|--------------|-------------|--------|---------|----------|
|   F16   |      2^16      |        0.83% |       5.28% |        0.84% |       1.42% |  0.01% |   0.90% |  🔵 SAME  |
|   F16   |      2^20      |       10.03% |       0.85% |       10.03% |       1.15% |  0.00% |   0.02% |  🔵 SAME  |
|   F16   |      2^24      |       57.44% |       3.32% |       58.02% |       1.89% |  0.59% |   1.02% |  🔵 SAME  |
|   F16   |      2^28      |       89.13% |       0.02% |       88.66% |       0.46% | -0.47% |  -0.53% |  🔴 SLOW  |
|   F16   |      2^32      |       93.36% |       0.02% |       92.70% |       0.12% | -0.66% |  -0.70% |  🔴 SLOW  |
|  BF16   |      2^16      |        0.83% |       6.41% |        0.84% |       1.74% |  0.01% |   1.29% |  🔵 SAME  |
|  BF16   |      2^20      |       10.03% |       0.80% |       10.03% |       0.91% | -0.00% |  -0.02% |  🔵 SAME  |
|  BF16   |      2^24      |       57.38% |       3.41% |       58.00% |       1.98% |  0.62% |   1.08% |  🔵 SAME  |
|  BF16   |      2^28      |       89.13% |       0.03% |       88.67% |       0.47% | -0.46% |  -0.52% |  🔴 SLOW  |
|  BF16   |      2^32      |       93.35% |       0.02% |       92.71% |       0.11% | -0.64% |  -0.69% |  🔴 SLOW  |
|   F32   |      2^16      |        1.66% |       5.43% |        1.67% |       1.98% |  0.01% |   0.84% |  🔵 SAME  |
|   F32   |      2^20      |       18.96% |      10.10% |       19.35% |       8.65% |  0.40% |   2.10% |  🔵 SAME  |
|   F32   |      2^24      |       70.91% |       1.46% |       71.14% |       0.59% |  0.23% |   0.33% |  🔵 SAME  |
|   F32   |      2^28      |       92.31% |       0.19% |       91.30% |       0.31% | -1.02% |  -1.10% |  🔴 SLOW  |
|   F32   |      2^32      |       93.28% |       0.05% |       92.94% |       0.14% | -0.35% |  -0.37% |  🔴 SLOW  |

# sub

## [0] NVIDIA B200

|  T{ct}  |  Elements{io}  |   Ref BWUtil |   Ref Noise |   Cmp BWUtil |   Cmp Noise |   Diff |   %Diff |  Status  |
|---------|----------------|--------------|-------------|--------------|-------------|--------|---------|----------|
|   F16   |      2^16      |        0.83% |       6.00% |        0.84% |       1.47% |  0.01% |   1.15% |  🔵 SAME  |
|   F16   |      2^20      |       10.03% |       1.00% |       10.03% |       1.05% | -0.00% |  -0.02% |  🔵 SAME  |
|   F16   |      2^24      |       57.35% |       3.45% |       57.98% |       2.06% |  0.62% |   1.09% |  🔵 SAME  |
|   F16   |      2^28      |       89.13% |       0.04% |       88.66% |       0.46% | -0.48% |  -0.53% |  🔴 SLOW  |
|   F16   |      2^32      |       93.35% |       0.02% |       92.72% |       0.11% | -0.63% |  -0.68% |  🔴 SLOW  |
|  BF16   |      2^16      |        0.83% |       3.25% |        0.83% |       2.19% |  0.00% |   0.09% |  🔵 SAME  |
|  BF16   |      2^20      |       10.03% |       0.89% |       10.03% |       1.71% |  0.00% |   0.05% |  🔵 SAME  |
|  BF16   |      2^24      |       57.33% |       3.48% |       57.93% |       2.16% |  0.60% |   1.04% |  🔵 SAME  |
|  BF16   |      2^28      |       89.13% |       0.03% |       88.67% |       0.46% | -0.46% |  -0.52% |  🔴 SLOW  |
|  BF16   |      2^32      |       93.36% |       0.02% |       92.71% |       0.12% | -0.65% |  -0.69% |  🔴 SLOW  |
|   F32   |      2^16      |        1.65% |       6.86% |        1.67% |       3.07% |  0.02% |   1.32% |  🔵 SAME  |
|   F32   |      2^20      |       18.32% |      11.16% |       19.09% |       9.70% |  0.77% |   4.19% |  🔵 SAME  |
|   F32   |      2^24      |       70.90% |       1.46% |       71.15% |       0.51% |  0.25% |   0.35% |  🔵 SAME  |
|   F32   |      2^28      |       92.30% |       0.20% |       91.30% |       0.30% | -1.00% |  -1.08% |  🔴 SLOW  |
|   F32   |      2^32      |       93.29% |       0.05% |       92.92% |       0.13% | -0.37% |  -0.40% |  🔴 SLOW  |

# mul

## [0] NVIDIA B200

|  T{ct}  |  Elements{io}  |   Ref BWUtil |   Ref Noise |   Cmp BWUtil |   Cmp Noise |   Diff |   %Diff |  Status  |
|---------|----------------|--------------|-------------|--------------|-------------|--------|---------|----------|
|   F16   |      2^16      |        0.83% |       4.62% |        0.84% |       2.27% |  0.00% |   0.46% |  🔵 SAME  |
|   F16   |      2^20      |       10.03% |       0.79% |       10.03% |       0.98% | -0.00% |  -0.01% |  🔵 SAME  |
|   F16   |      2^24      |       57.37% |       3.42% |       57.99% |       2.02% |  0.62% |   1.08% |  🔵 SAME  |
|   F16   |      2^28      |       89.13% |       0.07% |       88.69% |       0.46% | -0.45% |  -0.50% |  🔴 SLOW  |
|   F16   |      2^32      |       93.35% |       0.02% |       92.71% |       0.13% | -0.63% |  -0.68% |  🔴 SLOW  |
|  BF16   |      2^16      |        0.83% |       3.82% |        0.84% |       1.57% |  0.00% |   0.42% |  🔵 SAME  |
|  BF16   |      2^20      |       10.03% |       0.85% |       10.03% |       1.18% | -0.00% |  -0.02% |  🔵 SAME  |
|  BF16   |      2^24      |       57.33% |       3.47% |       57.94% |       2.15% |  0.61% |   1.06% |  🔵 SAME  |
|  BF16   |      2^28      |       89.13% |       0.03% |       88.66% |       0.47% | -0.47% |  -0.53% |  🔴 SLOW  |
|  BF16   |      2^32      |       93.35% |       0.02% |       92.72% |       0.12% | -0.63% |  -0.67% |  🔴 SLOW  |
|   F32   |      2^16      |        1.64% |       7.47% |        1.67% |       2.42% |  0.03% |   1.72% |  🔵 SAME  |
|   F32   |      2^20      |       19.20% |       9.29% |       19.71% |       6.57% |  0.51% |   2.66% |  🔵 SAME  |
|   F32   |      2^24      |       70.94% |       1.39% |       71.15% |       0.52% |  0.22% |   0.30% |  🔵 SAME  |
|   F32   |      2^28      |       92.31% |       0.20% |       91.29% |       0.32% | -1.02% |  -1.10% |  🔴 SLOW  |
|   F32   |      2^32      |       93.29% |       0.05% |       92.95% |       0.13% | -0.33% |  -0.36% |  🔴 SLOW  |

# div

## [0] NVIDIA B200

|  T{ct}  |  Elements{io}  |   Ref BWUtil |   Ref Noise |   Cmp BWUtil |   Cmp Noise |   Diff |   %Diff |  Status  |
|---------|----------------|--------------|-------------|--------------|-------------|--------|---------|----------|
|   F16   |      2^16      |        0.83% |       5.40% |        0.78% |      12.27% | -0.04% |  -5.26% |  🔵 SAME  |
|   F16   |      2^20      |       10.02% |       1.68% |       10.03% |       1.05% |  0.01% |   0.15% |  🔵 SAME  |
|   F16   |      2^24      |       53.39% |       0.49% |       53.39% |       0.49% |  0.00% |   0.00% |  🔵 SAME  |
|   F16   |      2^28      |       78.85% |       0.07% |       81.35% |       0.04% |  2.50% |   3.17% |  🟢 FAST  |
|   F16   |      2^32      |       81.86% |       0.02% |       83.42% |       0.04% |  1.57% |   1.91% |  🟢 FAST  |
|  BF16   |      2^16      |        0.82% |       8.11% |        0.81% |      10.14% | -0.01% |  -1.59% |  🔵 SAME  |
|  BF16   |      2^20      |       10.03% |       0.97% |       10.03% |       0.94% |  0.00% |   0.01% |  🔵 SAME  |
|  BF16   |      2^24      |       53.61% |       1.85% |       53.39% |       0.51% | -0.22% |  -0.41% |  🔵 SAME  |
|  BF16   |      2^28      |       82.67% |       0.06% |       80.60% |       0.30% | -2.06% |  -2.50% |  🔴 SLOW  |
|  BF16   |      2^32      |       86.00% |       0.02% |       82.56% |       0.04% | -3.44% |  -4.00% |  🔴 SLOW  |
|   F32   |      2^16      |        1.57% |      12.43% |        1.65% |       7.00% |  0.08% |   4.90% |  🔵 SAME  |
|   F32   |      2^20      |       16.90% |       9.26% |       18.36% |      11.14% |  1.46% |   8.65% |  🔵 SAME  |
|   F32   |      2^24      |       69.58% |       2.69% |       69.72% |       2.66% |  0.14% |   0.20% |  🔵 SAME  |
|   F32   |      2^28      |       91.59% |       0.17% |       92.02% |       0.19% |  0.44% |   0.48% |  🟢 FAST  |
|   F32   |      2^32      |       94.10% |       0.01% |       94.47% |       0.11% |  0.37% |   0.39% |  🟢 FAST  |

# le

## [0] NVIDIA B200

|  T{ct}  |  Elements{io}  |   Ref BWUtil |   Ref Noise |   Cmp BWUtil |   Cmp Noise |   Diff |   %Diff |  Status  |
|---------|----------------|--------------|-------------|--------------|-------------|--------|---------|----------|
|   F16   |      2^16      |        0.82% |       8.15% |        0.84% |       1.61% |  0.02% |   2.20% |  🟢 FAST  |
|   F16   |      2^20      |       10.03% |       0.86% |       10.03% |       1.26% |  0.00% |   0.02% |  🔵 SAME  |
|   F16   |      2^24      |       58.14% |       1.46% |       58.12% |       1.48% | -0.02% |  -0.03% |  🔵 SAME  |
|   F16   |      2^28      |       88.82% |       0.43% |       89.20% |       0.62% |  0.39% |   0.44% |  🟢 FAST  |
|   F16   |      2^32      |       92.69% |       0.02% |       92.83% |       0.09% |  0.14% |   0.15% |  🟢 FAST  |
|  BF16   |      2^16      |        0.82% |       8.07% |        0.84% |       1.89% |  0.02% |   2.22% |  🟢 FAST  |
|  BF16   |      2^20      |       10.03% |       0.76% |       10.03% |       1.08% |  0.00% |   0.03% |  🔵 SAME  |
|  BF16   |      2^24      |       58.16% |       1.34% |       58.08% |       1.65% | -0.08% |  -0.14% |  🔵 SAME  |
|  BF16   |      2^28      |       88.79% |       0.43% |       89.31% |       0.62% |  0.51% |   0.58% |  🟢 FAST  |
|  BF16   |      2^32      |       92.69% |       0.01% |       92.82% |       0.10% |  0.13% |   0.14% |  🟢 FAST  |
|   F32   |      2^16      |        1.66% |       4.45% |        1.67% |       2.22% |  0.01% |   0.56% |  🔵 SAME  |
|   F32   |      2^20      |       18.37% |      11.16% |       19.06% |       9.79% |  0.70% |   3.80% |  🔵 SAME  |
|   F32   |      2^24      |       69.86% |       2.62% |       70.69% |       1.82% |  0.83% |   1.19% |  🔵 SAME  |
|   F32   |      2^28      |       92.31% |       0.20% |       91.36% |       0.33% | -0.94% |  -1.02% |  🔴 SLOW  |
|   F32   |      2^32      |       93.29% |       0.06% |       92.96% |       0.14% | -0.33% |  -0.35% |  🔴 SLOW  |

# ge

## [0] NVIDIA B200

|  T{ct}  |  Elements{io}  |   Ref BWUtil |   Ref Noise |   Cmp BWUtil |   Cmp Noise |   Diff |   %Diff |  Status  |
|---------|----------------|--------------|-------------|--------------|-------------|--------|---------|----------|
|   F16   |      2^16      |        0.82% |       7.30% |        0.84% |       1.41% |  0.01% |   1.75% |  🟢 FAST  |
|   F16   |      2^20      |       10.03% |       0.94% |       10.03% |       1.10% | -0.00% |  -0.01% |  🔵 SAME  |
|   F16   |      2^24      |       58.12% |       1.48% |       57.85% |       2.48% | -0.27% |  -0.46% |  🔵 SAME  |
|   F16   |      2^28      |       88.79% |       0.44% |       89.32% |       0.62% |  0.53% |   0.60% |  🟢 FAST  |
|   F16   |      2^32      |       92.69% |       0.01% |       92.84% |       0.09% |  0.15% |   0.16% |  🟢 FAST  |
|  BF16   |      2^16      |        0.82% |       7.67% |        0.84% |       1.27% |  0.02% |   1.92% |  🟢 FAST  |
|  BF16   |      2^20      |       10.03% |       0.97% |       10.03% |       1.21% |  0.00% |   0.01% |  🔵 SAME  |
|  BF16   |      2^24      |       58.14% |       1.45% |       57.88% |       2.39% | -0.26% |  -0.44% |  🔵 SAME  |
|  BF16   |      2^28      |       88.81% |       0.43% |       89.31% |       0.62% |  0.51% |   0.57% |  🟢 FAST  |
|  BF16   |      2^32      |       92.69% |       0.02% |       92.84% |       0.09% |  0.14% |   0.16% |  🟢 FAST  |
|   F32   |      2^16      |        1.64% |       7.25% |        1.67% |       2.05% |  0.03% |   1.67% |  🔵 SAME  |
|   F32   |      2^20      |       18.10% |      11.32% |       19.63% |       7.12% |  1.53% |   8.46% |  🟢 FAST  |
|   F32   |      2^24      |       69.71% |       2.67% |       70.71% |       1.78% |  1.00% |   1.44% |  🔵 SAME  |
|   F32   |      2^28      |       92.30% |       0.19% |       91.36% |       0.32% | -0.94% |  -1.02% |  🔴 SLOW  |
|   F32   |      2^32      |       93.29% |       0.06% |       92.96% |       0.14% | -0.33% |  -0.35% |  🔴 SLOW  |

# fmin

## [0] NVIDIA B200

|  T{ct}  |  Elements{io}  |   Ref BWUtil |   Ref Noise |   Cmp BWUtil |   Cmp Noise |   Diff |   %Diff |  Status  |
|---------|----------------|--------------|-------------|--------------|-------------|--------|---------|----------|
|   F16   |      2^16      |        0.82% |       6.46% |        0.84% |       1.46% |  0.01% |   1.38% |  🔵 SAME  |
|   F16   |      2^20      |       10.03% |       0.92% |       10.03% |       0.92% | -0.01% |  -0.07% |  🔵 SAME  |
|   F16   |      2^24      |       57.33% |       3.48% |       58.09% |       1.63% |  0.76% |   1.33% |  🔵 SAME  |
|   F16   |      2^28      |       89.01% |       0.33% |       89.13% |       0.59% |  0.12% |   0.14% |  🔵 SAME  |
|   F16   |      2^32      |       92.78% |       0.02% |       92.76% |       0.10% | -0.02% |  -0.02% |  🔴 SLOW  |
|  BF16   |      2^16      |        0.83% |       5.88% |        0.84% |       1.84% |  0.01% |   1.01% |  🔵 SAME  |
|  BF16   |      2^20      |       10.03% |       0.81% |       10.03% |       1.08% | -0.00% |  -0.04% |  🔵 SAME  |
|  BF16   |      2^24      |       57.33% |       3.47% |       58.13% |       1.48% |  0.79% |   1.38% |  🔵 SAME  |
|  BF16   |      2^28      |       89.02% |       0.32% |       89.13% |       0.57% |  0.11% |   0.13% |  🔵 SAME  |
|  BF16   |      2^32      |       92.78% |       0.02% |       92.77% |       0.10% | -0.01% |  -0.01% |  🔵 SAME  |
|   F32   |      2^16      |        1.65% |       6.79% |        1.67% |       2.73% |  0.02% |   1.25% |  🔵 SAME  |
|   F32   |      2^20      |       18.91% |      10.20% |       19.55% |       7.64% |  0.64% |   3.38% |  🔵 SAME  |
|   F32   |      2^24      |       69.82% |       2.63% |       70.83% |       1.57% |  1.02% |   1.45% |  🔵 SAME  |
|   F32   |      2^28      |       92.32% |       0.19% |       91.29% |       0.33% | -1.03% |  -1.12% |  🔴 SLOW  |
|   F32   |      2^32      |       93.31% |       0.06% |       92.98% |       0.16% | -0.33% |  -0.35% |  🔴 SLOW  |

# fmax

## [0] NVIDIA B200

|  T{ct}  |  Elements{io}  |   Ref BWUtil |   Ref Noise |   Cmp BWUtil |   Cmp Noise |   Diff |   %Diff |  Status  |
|---------|----------------|--------------|-------------|--------------|-------------|--------|---------|----------|
|   F16   |      2^16      |        0.83% |       5.45% |        0.84% |       1.62% |  0.01% |   0.94% |  🔵 SAME  |
|   F16   |      2^20      |       10.03% |       0.91% |       10.03% |       1.02% | -0.00% |  -0.04% |  🔵 SAME  |
|   F16   |      2^24      |       58.23% |       0.86% |       57.87% |       2.39% | -0.36% |  -0.61% |  🔵 SAME  |
|   F16   |      2^28      |       89.01% |       0.33% |       89.13% |       0.57% |  0.11% |   0.13% |  🔵 SAME  |
|   F16   |      2^32      |       92.78% |       0.02% |       92.77% |       0.11% | -0.01% |  -0.01% |  🔵 SAME  |
|  BF16   |      2^16      |        0.83% |       5.07% |        0.84% |       1.67% |  0.01% |   0.80% |  🔵 SAME  |
|  BF16   |      2^20      |       10.03% |       0.87% |       10.03% |       1.10% | -0.01% |  -0.08% |  🔵 SAME  |
|  BF16   |      2^24      |       58.25% |       0.35% |       58.22% |       0.36% | -0.04% |  -0.06% |  🔵 SAME  |
|  BF16   |      2^28      |       89.02% |       0.31% |       89.15% |       0.57% |  0.12% |   0.14% |  🔵 SAME  |
|  BF16   |      2^32      |       92.78% |       0.01% |       92.78% |       0.10% | -0.01% |  -0.01% |  🔵 SAME  |
|   F32   |      2^16      |        1.66% |       5.22% |        1.67% |       3.38% |  0.01% |   0.52% |  🔵 SAME  |
|   F32   |      2^20      |       19.21% |       9.30% |       19.91% |       4.76% |  0.70% |   3.62% |  🔵 SAME  |
|   F32   |      2^24      |       69.69% |       2.68% |       70.36% |       2.27% |  0.67% |   0.97% |  🔵 SAME  |
|   F32   |      2^28      |       92.33% |       0.18% |       91.30% |       0.32% | -1.04% |  -1.12% |  🔴 SLOW  |
|   F32   |      2^32      |       93.31% |       0.06% |       92.95% |       0.14% | -0.36% |  -0.38% |  🔴 SLOW  |

@nanan-nvidia

Copy link
Copy Markdown
Contributor Author

/ok to test 02b2180

@github-actions

Copy link
Copy Markdown
Contributor

🥳 CI Workflow Results

🟩 Finished in 2h 37m: Pass: 100%/287 | Total: 12d 07h | Max: 2h 36m | Hits: 20%/985613

See results here.

@nanan-nvidia
nanan-nvidia merged commit f771627 into NVIDIA:main Jul 10, 2026
306 of 307 checks passed
@bernhardmgruber

Copy link
Copy Markdown
Contributor

please post the latest version of the babelstream benchmark as an nvbench diff. I am curious how tile compares now that we have store vectorization.

@bernhardmgruber Here it is:

Interesting to see that DeviceTransform is doing better than Tile on a lot of benchmarks!

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

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

5 participants