Skip to content

Elementwise & Reduction

97 ops, 508 workloads — Elementwise 76 · Reduction 21.

One table per op, one row per workload. Ratio is the fastest other implementation's device time divided by ours, so green is faster than it, plain is level with it, red is slower. Times are in ms. How these numbers are taken.

Elementwise

DropoutFwd (3 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
tokens-1k-hidden-10k-bfloat161.91×0.0123torch-compile
torch
0.0236
0.0236
0.851
tokens-1k-hidden-4k-float161.83×0.00618torch-compile
torch
0.0113
0.0117
0.679
tokens-1k-hidden-4k-float321.16×0.0103torch-compile
torch
0.0120
0.0149
0.407

MishFwd (4 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
yolo-p3-bfloat161.58×0.0405torch
torch-compile
0.0642
0.0741
2.59
yolo-p3-float161.58×0.0403torch
torch-compile
0.0636
0.0733
2.6
yolo-p4-bfloat161.55×0.0216torch
torch-compile
0.0336
0.0493
2.42
yolo-p4-float161.55×0.0214torch
torch-compile
0.0333
0.0382
2.45

SoftplusFwd (4 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
mlp-hidden-bfloat161.43×0.0128torch-compile
torch
0.0183
0.0241
3.28
mlp-hidden-float161.42×0.0126torch-compile
torch
0.0179
0.0238
3.33
mlp-hidden-wide-bfloat161.46×0.0233torch-compile
torch
0.0339
0.0453
3.61
mlp-hidden-wide-float161.45×0.0228torch-compile
torch
0.0330
0.0448
3.67

EluFwd (4 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
mlp-hidden-bfloat161.39×0.0120torch-compile
torch
0.0167
0.0182
2.79
mlp-hidden-float161.31×0.0122torch-compile
torch
0.0159
0.0180
2.76
mlp-hidden-wide-bfloat161.45×0.0215torch-compile
torch
0.0312
0.0332
3.12
mlp-hidden-wide-float161.36×0.0219torch-compile
torch
0.0298
0.0328
3.06

SeluFwd (4 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
snn-fc-bfloat161.29×0.0121torch-compile
torch
0.0156
0.0182
3.47
snn-fc-float161.37×0.0117torch-compile
torch
0.0161
0.0180
3.57
snn-fc-wide-bfloat161.34×0.0218torch-compile
torch
0.0292
0.0333
3.85
snn-fc-wide-float161.42×0.0210torch-compile
torch
0.0299
0.0328
3.99

SinusoidalFwd (4 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
transformer-2k-4k-bfloat161.34×0.0424torch-compile
torch-ref
0.0567
0.1066
1.19
transformer-2k-4k-float161.34×0.0424torch-compile
torch-ref
0.0567
0.1064
1.19
transformer-4k-4k-bfloat161.36×0.0819torch-compile
torch-ref
0.1117
0.1994
1.23
transformer-4k-4k-float161.37×0.0818torch-compile
torch-ref
0.1117
0.1993
1.23

Log1pFwd (5 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
elementwise-16M-bfloat161.45×0.0181torch-compile
torch
0.0263
0.0268
1.85
elementwise-16M-float161.41×0.0181torch-compile
torch
0.0256
0.0262
1.85
elementwise-16M-float320.97×0.0352torch-compile
torch
0.0340
0.0340
0.954
elementwise-256M-bfloat161.50×0.2549torch-compile
torch
0.3818
0.3878
2.11
elementwise-256M-float161.45×0.2542torch-compile
torch
0.3695
0.3799
2.11

LogFwd (5 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
elementwise-16M-bfloat161.54×0.0181torch-compile
torch
0.0278
0.0281
0.926
elementwise-16M-float161.50×0.0181torch
torch-compile
0.0271
0.0272
0.925
elementwise-16M-float320.96×0.0357torch-compile
torch
0.0341
0.0343
0.47
elementwise-256M-bfloat161.61×0.2544torch-compile
torch
0.4103
0.4127
1.06
elementwise-256M-float161.57×0.2534torch
torch-compile
0.3974
0.4020
1.06

Expm1Fwd (5 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
elementwise-16M-bfloat161.54×0.0181torch-compile
torch
0.0279
0.0279
1.86
elementwise-16M-float161.41×0.0180torch
torch-compile
0.0252
0.0268
1.87
elementwise-16M-float321.01×0.0340torch
torch-compile
0.0342
0.0344
0.986
elementwise-256M-bfloat161.60×0.2572torch-compile
torch
0.4103
0.4111
2.09
elementwise-256M-float161.45×0.2542torch
torch-compile
0.3678
0.3937
2.11

AlibiFwd (4 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
llama-prefill-2k-bfloat161.34×0.0645torch-compile
torch-ref
0.0864
0.5918
6.24
llama-prefill-2k-float161.32×0.0651torch-compile
torch-ref
0.0862
0.5918
6.18
llama-prefill-4k-bfloat161.20×0.2847torch-compile
torch-ref
0.3406
2.6085
5.66
llama-prefill-4k-float161.20×0.2852torch-compile
torch-ref
0.3415
2.6083
5.65

sub_bcast (3 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
sub-1024x10240-1x10240-float16-SubFwdOp-sub-normal1.01×0.0122torch-compile
torch
0.0123
0.0332
0.86
sub-1024x11008-1x11008-float16-SubFwdOp-sub-normal1.00×0.0130torch-compile
torch
0.0130
0.0354
0.87
sub-1024x4096-1x4096-float16-SubFwdOp-sub-normal1.59×0.00582torch-compile
torch
0.00928
0.0149
0.72

LogicalNotFwd (4 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
elementwise-16M-bool1.19×0.0101torch-compile
torch
0.0121
0.0130
1.65
elementwise-16M-float161.02×0.0148torch-compile
torch
0.0150
0.0152
1.14
elementwise-16M-float320.99×0.0235torch-compile
torch
0.0234
0.0234
0.713
elementwise-256M-bool1.30×0.1263torch-compile
torch
0.1648
0.1819
2.12

BitwiseXorFwd (7 workloads · ✅)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
bitwise_xor-1024x4096-BitwiseXorFwdOp-bitwise_xor1.01×0.0147torch-compile
torch
0.0148
0.0148
0.286
cnn-feat-broadcast-bool1.25×0.008torch-compile
torch
0.0100
0.0452
1.61
cnn-feat-broadcast-int321.16×0.0263torch-compile
torch
0.0306
0.0494
0.488
cnn-feat-broadcast-int640.99×0.0501torch-compile
torch
0.0498
0.0582
0.256
hidden-state-prefill-bool1.08×0.00814torch-compile
torch
0.0088
0.00995
1.03
hidden-state-prefill-int320.99×0.0265torch
torch-compile
0.0263
0.0277
0.317
hidden-state-prefill-int641.00×0.0492torch-compile
torch
0.0493
0.0495
0.171

GeluTanhAndMulFwd (3 workloads · ✅)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
ffn-gelu-tanh-decode-bfloat161.01×0.00147torch-compile
torch-ref
flashinfer
0.00149
0.00304
0.00438
0.0974
ffn-gelu-tanh-prefill-bfloat161.07×0.0493torch-compile
flashinfer
torch-ref
0.0526
0.0577
0.1933
5.95
ffn-gelu-tanh-prefill-float161.08×0.0477torch-compile
flashinfer
torch-ref
0.0516
0.0567
0.1921
6.15

IsinfFwd (5 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
elementwise-16M-bfloat161.03×0.0148torch-compile
torch
0.0152
0.0314
1.14
elementwise-16M-float161.03×0.0148torch-compile
torch
0.0151
0.0313
1.14
elementwise-16M-float321.00×0.0234torch-compile
torch
0.0233
0.0571
0.716
elementwise-256M-bfloat161.08×0.1857torch-compile
torch
0.2001
0.4510
1.45
elementwise-256M-float161.07×0.1862torch-compile
torch
0.1989
0.4500
1.44

CosFwd (5 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
elementwise-16M-bfloat161.03×0.0264torch
torch-compile
0.0272
0.0284
0.635
elementwise-16M-float161.05×0.0260torch
torch-compile
0.0272
0.0280
0.646
elementwise-16M-float320.98×0.0352torch-compile
torch
0.0344
0.0344
0.477
elementwise-256M-bfloat161.03×0.3828torch
torch-compile
0.3933
0.4129
0.701
elementwise-256M-float161.04×0.3772torch
torch-compile
0.3929
0.4086
0.712

BitwiseOrFwd (7 workloads · ✅)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
bitwise_or-1024x4096-BitwiseOrFwdOp-bitwise_or0.98×0.0148torch-compile
torch
0.0146
0.0146
0.284
cnn-feat-broadcast-bool1.25×0.00811torch-compile
torch
0.0102
0.0443
1.58
cnn-feat-broadcast-int320.99×0.0266torch-compile
torch
0.0265
0.0494
0.482
cnn-feat-broadcast-int640.99×0.0502torch-compile
torch
0.0499
0.0582
0.256
hidden-state-prefill-bool1.05×0.00813torch-compile
torch
0.00854
0.0088
1.03
hidden-state-prefill-int321.00×0.0265torch-compile
torch
0.0265
0.0265
0.316
hidden-state-prefill-int641.00×0.0493torch-compile
torch
0.0493
0.0496
0.17

RemainderFwd (8 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
cnn-feat-broadcast-bfloat161.16×0.0161torch-compile
torch
0.0186
0.0642
3.19
cnn-feat-broadcast-float161.11×0.0160torch-compile
torch
0.0178
0.0623
3.2
cnn-feat-broadcast-float321.00×0.0269torch-compile
torch
0.0268
0.0643
1.91
hidden-state-prefill-bfloat161.01×0.0149torch-compile
torch
0.0151
0.0186
2.25
hidden-state-prefill-float161.01×0.0154torch-compile
torch
0.0156
0.0181
2.18
hidden-state-prefill-float321.01×0.0264torch-compile
torch
0.0267
0.0272
1.27
remainder-1024x10240-float16-float16-RemainderFwdOp-remainder-positive1.01×0.0181torch-compile
torch
0.0182
0.0217
0.58
remainder-1024x4096-float16-float16-RemainderFwdOp-remainder-positive1.00×0.00858torch-compile
torch
0.00861
0.0107
0.489

BitwiseAndFwd (8 workloads · ✅)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
bitwise_and-1024x10240-BitwiseAndFwdOp-bitwise_and0.99×0.0321torch-compile
torch
0.0320
0.0321
0.326
bitwise_and-1024x4096-BitwiseAndFwdOp-bitwise_and1.00×0.0148torch-compile
torch
0.0147
0.0148
0.284
cnn-feat-broadcast-bool1.24×0.0081torch-compile
torch
0.0100
0.0452
1.59
cnn-feat-broadcast-int321.00×0.0264torch-compile
torch
0.0265
0.0494
0.486
cnn-feat-broadcast-int640.99×0.0500torch-compile
torch
0.0498
0.0583
0.257
hidden-state-prefill-bool1.07×0.00835torch-compile
torch
0.00896
0.0101
1
hidden-state-prefill-int321.00×0.0262torch-compile
torch
0.0261
0.0263
0.32
hidden-state-prefill-int641.00×0.0491torch-compile
torch
0.0491
0.0496
0.171

IsnanFwd (5 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
elementwise-16M-bfloat161.03×0.0147torch-compile
torch
0.0151
0.0155
1.14
elementwise-16M-float161.02×0.0147torch-compile
torch
0.0151
0.0154
1.14
elementwise-16M-float321.00×0.0235torch-compile
torch
0.0234
0.0235
0.715
elementwise-256M-bfloat161.07×0.1863torch-compile
torch
0.1985
0.2040
1.44
elementwise-256M-float161.06×0.1863torch-compile
torch
0.1972
0.2016
1.44

SinFwd (5 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
elementwise-16M-bfloat161.04×0.0258torch
torch-compile
0.0268
0.0270
0.65
elementwise-16M-float161.03×0.0254torch
torch-compile
0.0263
0.0266
0.659
elementwise-16M-float320.98×0.0349torch-compile
torch
0.0343
0.0343
0.481
elementwise-256M-bfloat161.03×0.3740torch
torch-compile
0.3861
0.3905
0.718
elementwise-256M-float161.03×0.3669torch
torch-compile
0.3776
0.3850
0.732

IsfiniteFwd (5 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
elementwise-16M-bfloat161.02×0.0147torch-compile
torch
0.0150
0.0634
1.14
elementwise-16M-float161.02×0.0147torch-compile
torch
0.0150
0.0631
1.14
elementwise-16M-float321.00×0.0234torch-compile
torch
0.0234
0.0961
0.716
elementwise-256M-bfloat161.06×0.1862torch-compile
torch
0.1967
0.9154
1.44
elementwise-256M-float161.06×0.1862torch-compile
torch
0.1968
0.9124
1.44

GeluAndMulFwd (3 workloads · ✅)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
ffn-gelu-decode-bfloat160.94×0.00154torch-compile
torch-ref
flashinfer
0.00144
0.00317
0.00666
0.056
ffn-gelu-prefill-bfloat161.03×0.0595torch-compile
flashinfer
torch-ref
0.0610
0.1060
0.2047
2.96
ffn-gelu-prefill-float161.10×0.0550torch-compile
flashinfer
torch-ref
0.0603
0.1050
0.2028
3.2

ClampScalarFwd (5 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
elementwise-16M-bfloat161.01×0.0184torch-compile
torch
0.0187
0.0191
0.91
elementwise-16M-float161.00×0.0184torch-compile
torch
0.0185
0.0203
0.91
elementwise-16M-float321.01×0.0338torch-compile
torch
0.0340
0.0341
0.496
elementwise-256M-bfloat161.05×0.2521torch-compile
torch
0.2656
0.2756
1.06
elementwise-256M-float161.01×0.2524torch-compile
torch
0.2539
0.2919
1.06

ExpFwd (5 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
elementwise-16M-bfloat161.01×0.0182torch
torch-compile
0.0183
0.0184
0.923
elementwise-16M-float161.01×0.0181torch-compile
torch
0.0182
0.0182
0.928
elementwise-16M-float321.00×0.0340torch-compile
torch
0.0341
0.0341
0.494
elementwise-256M-bfloat161.01×0.2573torch
torch-compile
0.2590
0.2632
1.04
elementwise-256M-float161.01×0.2544torch
torch-compile
0.2564
0.2565
1.06

TanhFwd (5 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
elementwise-16M-bfloat161.03×0.0213torch
torch-compile
0.0219
0.0246
0.786
elementwise-16M-float161.00×0.0208torch
torch-compile
0.0207
0.0242
0.808
elementwise-16M-float321.01×0.0339torch
torch-compile
0.0341
0.0344
0.495
elementwise-256M-bfloat161.02×0.3031torch
torch-compile
0.3097
0.3500
0.886
elementwise-256M-float160.99×0.2956torch
torch-compile
0.2917
0.3444
0.908

HardtanhFwd (4 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
bounded-conv-feat-bfloat161.01×0.0146torch-compile
torch
0.0148
0.0152
0.878
bounded-conv-feat-float161.00×0.0146torch-compile
torch
0.0147
0.0162
0.88
bounded-hidden-bfloat161.01×0.0104torch-compile
torch
0.0105
0.0107
0.807
bounded-hidden-float161.00×0.0104torch-compile
torch
0.0104
0.0113
0.809

mul_bcast (3 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
mul-1024x10240-1x10240-float16-MulFwdOp-mul-normal1.00×0.0123torch-compile
torch
0.0124
0.0331
0.851
mul-1024x11008-1x11008-float16-MulFwdOp-mul-normal1.00×0.0129torch-compile
torch
0.0129
0.0353
0.874
mul-1024x4096-1x4096-float16-MulFwdOp-mul-normal1.01×0.00598torch-compile
torch
0.00605
0.0149
0.701

SqrtFwd (5 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
elementwise-16M-bfloat161.00×0.0187torch-compile
torch
0.0187
0.0189
0.898
elementwise-16M-float161.00×0.0186torch-compile
torch
0.0186
0.0189
0.901
elementwise-16M-float321.02×0.0334torch-compile
torch
0.0340
0.0340
0.503
elementwise-256M-bfloat161.00×0.2636torch-compile
torch
0.2642
0.2671
1.02
elementwise-256M-float161.00×0.2628torch-compile
torch
0.2629
0.2659
1.02

RsqrtFwd (5 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
elementwise-16M-bfloat161.00×0.0181torch-compile
torch
0.0181
0.0182
0.926
elementwise-16M-float161.00×0.0181torch-compile
torch
0.0182
0.0182
0.926
elementwise-16M-float321.02×0.0331torch-compile
torch
0.0337
0.0338
0.507
elementwise-256M-bfloat161.00×0.2530torch-compile
torch
0.2533
0.2540
1.06
elementwise-256M-float161.00×0.2537torch-compile
torch
0.2533
0.2538
1.06

LeakyReluFwd (4 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
gan-feat-bfloat161.00×0.0185torch-compile
torch
0.0184
0.0185
1.82
gan-feat-deep-bfloat161.00×0.0103torch-compile
torch
0.0104
0.0104
1.62
gan-feat-deep-float161.00×0.0104torch
torch-compile
0.0104
0.0104
1.62
gan-feat-float161.00×0.0184torch-compile
torch
0.0184
0.0185
1.82

ReluFwd (3 workloads · ✅)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
hidden-state-decode-bfloat161.00×0.00122torch-compile
torch
0.00122
0.00141
0.00337
hidden-state-prefill-bfloat161.00×0.0103torch-compile
torch
0.0104
0.0105
0.812
hidden-state-prefill-float161.00×0.0103torch-compile
torch
0.0103
0.0108
0.812

FloorDivideFwd (8 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
cnn-feat-broadcast-bfloat161.00×0.0159torch-compile
torch
0.0159
0.1192
1.62
cnn-feat-broadcast-float160.99×0.0159torch-compile
torch
0.0158
0.1093
1.61
cnn-feat-broadcast-float321.00×0.0266torch-compile
torch
0.0267
0.1014
0.965
floor_divide-1024x10240-float16-float16-FloorDivideFwdOp-floor_divide-positive1.00×0.0180torch-compile
torch
0.0180
0.0595
0.584
floor_divide-1024x4096-float16-float16-FloorDivideFwdOp-floor_divide-positive1.00×0.0087torch-compile
torch
0.00874
0.0264
0.482
hidden-state-prefill-bfloat161.00×0.0149torch-compile
torch
0.0149
0.0504
1.13
hidden-state-prefill-float161.00×0.0151torch-compile
torch
0.0151
0.0485
1.11
hidden-state-prefill-float321.01×0.0264torch-compile
torch
0.0265
0.0475
0.636

CeilFwd (5 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
elementwise-16M-bfloat161.00×0.0179torch-compile
torch
0.0180
0.0180
0.938
elementwise-16M-float161.00×0.0179torch-compile
torch
0.0180
0.0180
0.938
elementwise-16M-float321.00×0.0340torch
torch-compile
0.0339
0.0340
0.494
elementwise-256M-bfloat161.00×0.2497torch-compile
torch
0.2498
0.2504
1.07
elementwise-256M-float161.00×0.2506torch-compile
torch
0.2498
0.2503
1.07

PreluFwd (4 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
cnn-feat-per-channel-bfloat161.00×0.0144torch-compile
torch
0.0144
0.0486
1.78
cnn-feat-per-channel-deep-bfloat161.00×0.00819torch-compile
torch
0.00819
0.0257
1.57
cnn-feat-per-channel-deep-float161.00×0.00835torch-compile
torch
0.00838
0.0250
1.54
cnn-feat-per-channel-float161.00×0.0146torch-compile
torch
0.0146
0.0471
1.76

FloorFwd (5 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
elementwise-16M-bfloat161.00×0.0179torch-compile
torch
0.0179
0.0180
0.938
elementwise-16M-float161.00×0.0179torch
torch-compile
0.0180
0.0180
0.936
elementwise-16M-float321.00×0.0340torch-compile
torch
0.0340
0.0340
0.493
elementwise-256M-bfloat161.00×0.2496torch-compile
torch
0.2500
0.2504
1.08
elementwise-256M-float161.00×0.2496torch-compile
torch
0.2498
0.2503
1.08

SubFwd (9 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
cnn-feat-broadcast-bfloat161.00×0.0145torch-compile
torch
0.0145
0.0464
1.77
cnn-feat-broadcast-float161.00×0.0144torch-compile
torch
0.0144
0.0458
1.78
cnn-feat-broadcast-float321.00×0.0265torch-compile
torch
0.0265
0.0497
0.968
hidden-state-prefill-bfloat161.00×0.0148torch-compile
torch
0.0148
0.0149
1.13
hidden-state-prefill-float161.00×0.0148torch
torch-compile
0.0148
0.0148
1.13
hidden-state-prefill-float321.00×0.0265torch-compile
torch
0.0264
0.0265
0.634
sub-1024x10240-float16-float16-SubFwdOp-sub-normal1.00×0.0176torch-compile
torch
0.0176
0.0177
0.595
sub-1024x11008-float16-float16-SubFwdOp-sub-normal1.00×0.0185torch-compile
torch
0.0186
0.0186
0.608
sub-1024x4096-float16-float16-SubFwdOp-sub-normal1.01×0.00842torch-compile
torch
0.00846
0.00851
0.498

BitwiseNotFwd (3 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
elementwise-16M-int321.00×0.0340torch-compile
torch
0.0339
0.0340
0.493
elementwise-16M-int640.99×0.0652torch-compile
torch
0.0647
0.0680
0.257
elementwise-256M-int321.01×0.4986torch-compile
torch
0.5044
0.5045
0.538

AddFwd (6 workloads · ✅)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
cnn-feat-broadcast-bfloat161.00×0.0144torch-compile
torch
0.0144
0.0468
1.79
cnn-feat-broadcast-float161.00×0.0144torch-compile
torch
0.0144
0.0458
1.78
cnn-feat-broadcast-float321.00×0.0266torch-compile
torch
0.0266
0.0495
0.966
hidden-state-prefill-bfloat161.00×0.0147torch-compile
torch
0.0147
0.0149
1.14
hidden-state-prefill-float161.00×0.0147torch-compile
torch
0.0147
0.0148
1.14
hidden-state-prefill-float321.00×0.0265torch-compile
torch
0.0264
0.0265
0.634

MulFwd (9 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
cnn-feat-broadcast-bfloat161.00×0.0145torch-compile
torch
0.0145
0.0462
0.888
cnn-feat-broadcast-float161.00×0.0142torch-compile
torch
0.0142
0.0455
0.902
cnn-feat-broadcast-float321.00×0.0265torch-compile
torch
0.0266
0.0493
0.485
hidden-state-prefill-bfloat161.00×0.0147torch
torch-compile
0.0147
0.0147
0.572
hidden-state-prefill-float161.00×0.0148torch-compile
torch
0.0149
0.0149
0.565
hidden-state-prefill-float320.99×0.0265torch-compile
torch
0.0263
0.0263
0.317
mul-1024x10240-float16-float16-MulFwdOp-mul-normal1.00×0.0176torch-compile
torch
0.0176
0.0178
0.596
mul-1024x11008-float16-float16-MulFwdOp-mul-normal1.00×0.0185torch
torch-compile
0.0186
0.0186
0.608
mul-1024x4096-float16-float16-MulFwdOp-mul-normal1.00×0.00842torch-compile
torch
0.00842
0.00858
0.498

TruncFwd (5 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
elementwise-16M-bfloat161.00×0.0179torch-compile
torch
0.0179
0.0180
0.938
elementwise-16M-float161.00×0.0179torch-compile
torch
0.0179
0.0180
0.938
elementwise-16M-float321.00×0.0340torch-compile
torch
0.0339
0.0340
0.493
elementwise-256M-bfloat161.00×0.2505torch
torch-compile
0.2503
0.2504
1.07
elementwise-256M-float161.00×0.2498torch-compile
torch
0.2498
0.2502
1.07

NegFwd (5 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
elementwise-16M-bfloat161.00×0.0179torch-compile
torch
0.0179
0.0180
0.94
elementwise-16M-float161.00×0.0179torch-compile
torch
0.0179
0.0188
0.938
elementwise-16M-float321.00×0.0340torch-compile
torch
0.0340
0.0340
0.493
elementwise-256M-bfloat161.00×0.2501torch-compile
torch
0.2495
0.2497
1.07
elementwise-256M-float161.00×0.2498torch-compile
torch
0.2497
0.2685
1.07

RoundFwd (5 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
elementwise-16M-bfloat161.00×0.0179torch-compile
torch
0.0179
0.0179
0.939
elementwise-16M-float161.00×0.0179torch-compile
torch
0.0180
0.0180
0.936
elementwise-16M-float321.00×0.0340torch
torch-compile
0.0340
0.0340
0.494
elementwise-256M-bfloat161.00×0.2498torch-compile
torch
0.2499
0.2503
1.07
elementwise-256M-float161.00×0.2506torch-compile
torch
0.2499
0.2503
1.07

AbsFwd (5 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
elementwise-16M-bfloat161.00×0.0179torch-compile
torch
0.0179
0.0179
0.938
elementwise-16M-float161.00×0.0179torch-compile
torch
0.0179
0.0180
0.938
elementwise-16M-float321.00×0.0340torch-compile
torch
0.0339
0.0339
0.493
elementwise-256M-bfloat161.00×0.2499torch-compile
torch
0.2495
0.2498
1.07
elementwise-256M-float161.00×0.2498torch
torch-compile
0.2499
0.2500
1.07

LerpFwd (8 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
cnn-feat-broadcast-bfloat161.00×0.0143torch-compile
torch
0.0143
0.0483
2.69
cnn-feat-broadcast-float161.00×0.0144torch-compile
torch
0.0144
0.0477
2.67
cnn-feat-broadcast-float321.00×0.0266torch-compile
torch
0.0265
0.0511
1.45
hidden-state-prefill-bfloat161.00×0.0146torch-compile
torch
0.0146
0.0147
1.72
hidden-state-prefill-float161.00×0.0148torch-compile
torch
0.0148
0.0148
1.71
hidden-state-prefill-float320.99×0.0263torch-compile
torch
0.0262
0.0262
0.956
lerp-1024x10240-float16-float16-LerpFwdOp-<lambda>-normal1.00×0.0177torch-compile
torch
0.0177
0.0177
0.593
lerp-1024x4096-float16-float16-LerpFwdOp-<lambda>-normal1.00×0.00816torch-compile
torch
0.00816
0.00824
0.514

PowFwd (8 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
cnn-feat-broadcast-bfloat161.14×0.0542torch-compile
torch
0.0616
0.0955
0.711
cnn-feat-broadcast-float161.13×0.0542torch-compile
torch
0.0612
0.0941
0.711
cnn-feat-broadcast-float321.02×0.0573torch-compile
torch
0.0587
0.0939
0.672
hidden-state-prefill-bfloat161.01×0.0377torch
torch-compile
0.0380
0.0451
0.667
hidden-state-prefill-float161.00×0.0369torch
torch-compile
0.0370
0.0437
0.681
hidden-state-prefill-float320.96×0.0388torch
torch-compile
0.0375
0.0421
0.648
pow-1024x10240-float16-float16-PowFwdOp-pow-positive1.00×0.0452torch
torch-compile
0.0453
0.0541
0.232
pow-1024x4096-float16-float16-PowFwdOp-pow-positive1.00×0.0201torch
torch-compile
0.0202
0.0252
0.209

MaskedFillFwd (5 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
elementwise-16M-bfloat161.00×0.0226torch-compile
torch
0.0225
0.0401
0.742
elementwise-16M-float160.99×0.0227torch-compile
torch
0.0226
0.0402
0.738
elementwise-16M-float320.99×0.0380torch-compile
torch
0.0375
0.0732
0.441
elementwise-256M-bfloat161.00×0.3103torch-compile
torch
0.3100
0.5709
0.865
elementwise-256M-float161.00×0.3093torch-compile
torch
0.3098
0.5701
0.868

LerpTensorFwd (5 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
elementwise-16M-bfloat160.99×0.0350torch-compile
torch
0.0348
0.0348
1.44
elementwise-16M-float160.99×0.0350torch-compile
torch
0.0347
0.0348
1.44
elementwise-16M-float320.99×0.0655torch
torch-compile
0.0651
0.0653
0.769
elementwise-256M-bfloat161.00×0.4860torch
torch-compile
0.4860
0.4860
1.66
elementwise-256M-float161.00×0.4858torch-compile
torch
0.4858
0.4860
1.66

MaskedFillScalarFwd (5 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
elementwise-16M-bfloat161.00×0.0225torch-compile
torch
0.0225
0.0377
0.746
elementwise-16M-float160.99×0.0228torch-compile
torch
0.0226
0.0375
0.737
elementwise-16M-float320.99×0.0379torch-compile
torch
0.0373
0.0710
0.443
elementwise-256M-bfloat161.00×0.3104torch-compile
torch
0.3100
0.5679
0.865
elementwise-256M-float161.00×0.3101torch-compile
torch
0.3095
0.5673
0.866

WhereFwd (5 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
elementwise-16M-bfloat160.99×0.0311torch-compile
torch
0.0307
0.0308
0.539
elementwise-16M-float160.99×0.0309torch-compile
torch
0.0307
0.0307
0.542
elementwise-16M-float321.00×0.0533torch-compile
torch
0.0531
0.0535
0.315
elementwise-256M-bfloat161.00×0.4286torch
torch-compile
0.4282
0.4283
0.626
elementwise-256M-float161.00×0.4291torch-compile
torch
0.4282
0.4283
0.626

DivFwd (9 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
cnn-feat-broadcast-bfloat161.00×0.0144torch-compile
torch
0.0144
0.0513
0.89
cnn-feat-broadcast-float160.92×0.0160torch-compile
torch
0.0148
0.0508
0.803
cnn-feat-broadcast-float321.00×0.0265torch-compile
torch
0.0265
0.0531
0.485
div-1024x10240-float16-float16-DivFwdOp-div-positive1.00×0.0181torch-compile
torch
0.0181
0.0185
0.578
div-1024x11008-float16-float16-DivFwdOp-div-positive0.99×0.0189torch-compile
torch
0.0188
0.0193
0.596
div-1024x4096-float16-float16-DivFwdOp-div-positive1.00×0.00848torch-compile
torch
0.00845
0.00877
0.495
hidden-state-prefill-bfloat161.00×0.0147torch-compile
torch
0.0147
0.0151
0.572
hidden-state-prefill-float160.99×0.0148torch-compile
torch
0.0147
0.0151
0.567
hidden-state-prefill-float321.00×0.0263torch-compile
torch
0.0262
0.0264
0.319

ClampFwd (15 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
elementwise-16M-bfloat160.98×0.0355torch
torch-compile
0.0349
0.0351
0.473
elementwise-16M-float160.98×0.0355torch
torch-compile
0.0349
0.0351
0.473
elementwise-16M-float320.99×0.0658torch-compile
torch
0.0654
0.0656
0.255
elementwise-16M-max-only-bfloat160.98×0.0271torch-compile
torch
0.0266
0.0269
0.62
elementwise-16M-max-only-float160.99×0.0266torch-compile
torch
0.0263
0.0265
0.632
elementwise-16M-max-only-float320.98×0.0500torch-compile
torch
0.0491
0.0494
0.336
elementwise-16M-min-only-bfloat160.98×0.0269torch-compile
torch
0.0264
0.0268
0.623
elementwise-16M-min-only-float160.99×0.0267torch-compile
torch
0.0264
0.0266
0.628
elementwise-16M-min-only-float320.98×0.0500torch-compile
torch
0.0493
0.0495
0.335
elementwise-256M-bfloat161.00×0.4855torch
torch-compile
0.4851
0.4851
0.553
elementwise-256M-float161.00×0.4859torch-compile
torch
0.4849
0.4853
0.552
elementwise-256M-max-only-bfloat161.00×0.3677torch
torch-compile
0.3676
0.3688
0.73
elementwise-256M-max-only-float161.00×0.3688torch
torch-compile
0.3682
0.3688
0.728
elementwise-256M-min-only-bfloat161.00×0.3684torch
torch-compile
0.3677
0.3687
0.729
elementwise-256M-min-only-float161.00×0.3693torch
torch-compile
0.3684
0.3690
0.727

NanToNumFwd (5 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
elementwise-16M-bfloat160.98×0.0189torch-compile
torch
0.0186
0.0192
5.32
elementwise-16M-float160.98×0.0189torch-compile
torch
0.0186
0.0192
5.31
elementwise-16M-float321.00×0.0340torch-compile
torch
0.0340
0.0340
2.96
elementwise-256M-bfloat160.98×0.2639torch-compile
torch
0.2584
0.2736
6.1
elementwise-256M-float160.98×0.2650torch-compile
torch
0.2587
0.2743
6.08

SiluAndMulFwd (3 workloads · ✅)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
llama-8b-swiglu-decode-bfloat160.87×0.00173torch-compile
torch-ref
flashinfer
0.0015
0.00355
0.00429
0.0498
llama-8b-swiglu-prefill-bfloat161.06×0.0433torch-compile
flashinfer
torch-ref
0.0457
0.0540
0.1902
4.07
llama-8b-swiglu-prefill-float161.02×0.0434torch-compile
flashinfer
torch-ref
0.0442
0.0536
0.1893
4.06

ReciprocalFwd (5 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
elementwise-16M-bfloat160.96×0.0189torch-compile
torch
0.0183
0.0190
0.886
elementwise-16M-float160.96×0.0189torch-compile
torch
0.0182
0.0189
0.887
elementwise-16M-float321.01×0.0335torch-compile
torch
0.0338
0.0339
0.501
elementwise-256M-bfloat160.97×0.2673torch-compile
torch
0.2580
0.2674
1
elementwise-256M-float160.96×0.2671torch-compile
torch
0.2561
0.2672
1.01

SignFwd (5 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
elementwise-16M-bfloat160.97×0.0186torch-compile
torch
0.0180
0.0182
1.8
elementwise-16M-float160.97×0.0186torch-compile
torch
0.0180
0.0181
1.8
elementwise-16M-float321.00×0.0341torch-compile
torch
0.0340
0.0340
0.985
elementwise-256M-bfloat160.96×0.2635torch-compile
torch
0.2541
0.2586
2.04
elementwise-256M-float160.96×0.2636torch-compile
torch
0.2521
0.2560
2.04

SiluFwd (3 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
llama-8b-ffn-decode-bfloat160.96×0.0015torch-compile
torch
0.00144
0.00195
0.0477
llama-8b-ffn-prefill-bfloat160.98×0.0365torch-compile
torch
0.0358
0.0381
4.02
llama-8b-ffn-prefill-float160.97×0.0366torch-compile
torch
0.0355
0.0379
4.01

LogicalAndFwd (10 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
cnn-feat-broadcast-bfloat160.75×0.0159torch-compile
torch
0.0120
0.0480
2.42
cnn-feat-broadcast-bool1.23×0.00806torch-compile
torch
0.00995
0.0452
4.78
cnn-feat-broadcast-float160.76×0.0159torch-compile
torch
0.0121
0.0469
2.42
cnn-feat-broadcast-float320.88×0.0208torch-compile
torch
0.0183
0.0467
1.86
hidden-state-prefill-bfloat161.00×0.0130torch-compile
torch
0.0130
0.0131
1.94
hidden-state-prefill-bool1.07×0.00826torch-compile
torch
0.00883
0.0101
3.05
hidden-state-prefill-float161.01×0.0132torch-compile
torch
0.0133
0.0134
1.91
hidden-state-prefill-float321.00×0.0225torch
torch-compile
0.0225
0.0251
1.12
logical_and-1024x10240-float16-LogicalAndFwdOp-logical_and1.02×0.0157torch
torch-compile
0.0160
0.0160
0.666
logical_and-1024x4096-float16-LogicalAndFwdOp-logical_and1.03×0.00749torch-compile
torch
0.00768
0.00771
0.56

LogicalOrFwd (10 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
cnn-feat-broadcast-bfloat160.74×0.0164torch-compile
torch
0.0122
0.0488
2.36
cnn-feat-broadcast-bool1.27×0.00806torch-compile
torch
0.0102
0.0442
4.78
cnn-feat-broadcast-float160.73×0.0164torch-compile
torch
0.0120
0.0477
2.36
cnn-feat-broadcast-float320.89×0.0209torch-compile
torch
0.0185
0.0465
1.84
hidden-state-prefill-bfloat161.01×0.0129torch-compile
torch
0.0130
0.0130
1.96
hidden-state-prefill-bool1.08×0.00819torch-compile
torch
0.00886
0.00906
3.07
hidden-state-prefill-float161.01×0.0132torch-compile
torch
0.0133
0.0133
1.91
hidden-state-prefill-float321.00×0.0225torch-compile
torch
0.0224
0.0224
1.12
logical_or-1024x10240-float16-LogicalOrFwdOp-logical_or1.01×0.0158torch
torch-compile
0.0161
0.0161
0.662
logical_or-1024x4096-float16-LogicalOrFwdOp-logical_or1.02×0.00749torch
torch-compile
0.00765
0.0102
0.56

ErfFwd (5 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
elementwise-16M-bfloat160.97×0.0285torch
torch-compile
0.0277
0.0296
0.588
elementwise-16M-float160.93×0.0284torch
torch-compile
0.0265
0.0292
0.59
elementwise-16M-float320.98×0.0350torch
torch-compile
0.0343
0.0346
0.479
elementwise-256M-bfloat160.96×0.4236torch
torch-compile
0.4065
0.4372
0.634
elementwise-256M-float160.92×0.4215torch
torch-compile
0.3862
0.4315
0.637

div_bcast (3 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
div-1024x10240-1x10240-float16-DivFwdOp-div-positive0.92×0.0133torch-compile
torch
0.0123
0.0363
0.786
div-1024x11008-1x11008-float16-DivFwdOp-div-positive0.93×0.0141torch-compile
torch
0.0131
0.0388
0.797
div-1024x4096-1x4096-float16-DivFwdOp-div-positive0.96×0.00646torch-compile
torch
0.00621
0.0163
0.649

LeFwd (7 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
cnn-feat-broadcast-bfloat160.74×0.0159torch-compile
torch
0.0119
0.0505
0.806
cnn-feat-broadcast-float160.75×0.0159torch-compile
torch
0.0119
0.0496
0.806
cnn-feat-broadcast-float320.89×0.0209torch-compile
torch
0.0185
0.0492
0.615
hidden-state-prefill-bfloat161.00×0.0131torch-compile
torch
0.0131
0.0132
0.641
hidden-state-prefill-float160.99×0.0130torch-compile
torch
0.0129
0.0129
0.644
hidden-state-prefill-float321.00×0.0225torch-compile
torch
0.0224
0.0225
0.373
le-1024x4096-float16-le1.01×0.00762torch-compile
torch
0.00771
0.00771
0.551

GeluFwd (3 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
llama-8b-ffn-decode-bfloat161.02×0.00138torch-compile
torch
0.00141
0.00166
0.0521
llama-8b-ffn-prefill-bfloat160.89×0.0553torch
torch-compile
0.0490
0.0557
2.66
llama-8b-ffn-prefill-float160.90×0.0527torch
torch-compile
0.0477
0.0540
2.78

HardswishFwd (4 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
mbv3-stage2-bfloat160.87×0.0132torch-compile
torch
0.0115
0.0116
2.92
mbv3-stage2-float160.89×0.0129torch-compile
torch
0.0115
0.0116
2.99
mbv3-stage3-bfloat160.89×0.00902torch-compile
torch
0.00806
0.00816
2.67
mbv3-stage3-float160.91×0.00886torch-compile
torch
0.00806
0.00813
2.72

SigmoidFwd (5 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
elementwise-16M-bfloat160.86×0.0218torch-compile
torch
0.0187
0.0235
3.08
elementwise-16M-float160.87×0.0214torch-compile
torch
0.0186
0.0229
3.13
elementwise-16M-float320.99×0.0344torch-compile
torch
0.0340
0.0344
1.95
elementwise-256M-bfloat160.85×0.3084torch-compile
torch
0.2634
0.3310
3.48
elementwise-256M-float160.86×0.3018torch-compile
torch
0.2604
0.3216
3.56

NeFwd (7 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
cnn-feat-broadcast-bfloat160.74×0.0159torch-compile
torch
0.0118
0.0488
0.809
cnn-feat-broadcast-float160.75×0.0159torch-compile
torch
0.0119
0.0476
0.809
cnn-feat-broadcast-float320.88×0.0208torch-compile
torch
0.0184
0.0477
0.617
hidden-state-prefill-bfloat161.01×0.0132torch-compile
torch
0.0134
0.0134
0.635
hidden-state-prefill-float161.01×0.0130torch-compile
torch
0.0131
0.0132
0.645
hidden-state-prefill-float321.00×0.0223torch
torch-compile
0.0223
0.0249
0.376
ne-1024x4096-float16-ne1.02×0.00765torch
torch-compile
0.00781
0.00781
0.548

EqFwd (8 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
cnn-feat-broadcast-bfloat160.75×0.0159torch-compile
torch
0.0119
0.0488
0.806
cnn-feat-broadcast-float160.75×0.0159torch-compile
torch
0.0119
0.0476
0.809
cnn-feat-broadcast-float320.88×0.0210torch-compile
torch
0.0184
0.0480
0.613
eq-1024x10240-float16-eq1.01×0.0158torch
torch-compile
0.0160
0.0160
0.663
eq-1024x4096-float16-eq1.03×0.00758torch
torch-compile
0.00784
0.00784
0.553
hidden-state-prefill-bfloat161.00×0.0131torch
torch-compile
0.0131
0.0131
0.639
hidden-state-prefill-float161.02×0.0133torch-compile
torch
0.0135
0.0136
0.632
hidden-state-prefill-float321.00×0.0224torch-compile
torch
0.0223
0.0223
0.375

GtFwd (7 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
cnn-feat-broadcast-bfloat160.75×0.0159torch-compile
torch
0.0120
0.0490
0.808
cnn-feat-broadcast-float160.75×0.0160torch-compile
torch
0.0119
0.0483
0.804
cnn-feat-broadcast-float320.88×0.0209torch-compile
torch
0.0183
0.0482
0.615
gt-1024x4096-float16-gt1.02×0.00762torch-compile
torch
0.00778
0.00781
0.551
hidden-state-prefill-bfloat161.01×0.0130torch
torch-compile
0.0131
0.0132
0.644
hidden-state-prefill-float161.01×0.0130torch
torch-compile
0.0132
0.0132
0.646
hidden-state-prefill-float321.00×0.0223torch
torch-compile
0.0223
0.0250
0.376

LtFwd (7 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
cnn-feat-broadcast-bfloat160.77×0.0159torch-compile
torch
0.0122
0.0505
0.808
cnn-feat-broadcast-float160.74×0.0159torch-compile
torch
0.0118
0.0496
0.806
cnn-feat-broadcast-float320.88×0.0209torch-compile
torch
0.0184
0.0491
0.615
hidden-state-prefill-bfloat161.01×0.0132torch-compile
torch
0.0133
0.0133
0.636
hidden-state-prefill-float161.01×0.0130torch
torch-compile
0.0131
0.0132
0.646
hidden-state-prefill-float321.00×0.0225torch
torch-compile
0.0225
0.0247
0.372
lt-1024x4096-float16-lt1.02×0.00755torch
torch-compile
0.00771
0.00775
0.555

GeFwd (7 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
cnn-feat-broadcast-bfloat160.76×0.0159torch-compile
torch
0.0120
0.0476
0.809
cnn-feat-broadcast-float160.74×0.0159torch-compile
torch
0.0118
0.0469
0.808
cnn-feat-broadcast-float320.89×0.0207torch-compile
torch
0.0184
0.0469
0.619
ge-1024x4096-float16-ge1.03×0.00758torch
torch-compile
0.00778
0.00778
0.553
hidden-state-prefill-bfloat161.00×0.0130torch-compile
torch
0.0131
0.0131
0.644
hidden-state-prefill-float161.00×0.0132torch
torch-compile
0.0132
0.0132
0.637
hidden-state-prefill-float321.00×0.0224torch
torch-compile
0.0224
0.0249
0.374

HardsigmoidFwd (4 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
mbv3-se-gate-bfloat160.82×0.00163torch-compile
torch
0.00134
0.00173
0.0141
mbv3-se-gate-deep-bfloat160.88×0.00167torch
torch-compile
0.00147
0.0015
0.0554
mbv3-se-gate-deep-float160.88×0.00167torch
torch-compile
0.00147
0.00147
0.0554
mbv3-se-gate-float160.82×0.00163torch-compile
torch
0.00135
0.00173
0.0141

MinimumFwd (9 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
cnn-feat-broadcast-bfloat160.37×0.0392torch-compile
torch
0.0144
0.0514
0.327
cnn-feat-broadcast-float160.38×0.0374torch-compile
torch
0.0144
0.0504
0.344
cnn-feat-broadcast-float320.90×0.0294torch-compile
torch
0.0264
0.0532
0.436
hidden-state-prefill-bfloat160.99×0.0150torch-compile
torch
0.0148
0.0151
0.559
hidden-state-prefill-float160.99×0.0149torch-compile
torch
0.0148
0.0150
0.562
hidden-state-prefill-float320.99×0.0265torch-compile
torch
0.0263
0.0265
0.317
minimum-1024x10240-float16-float16-MinimumFwdOp-minimum-normal0.99×0.0181torch-compile
torch
0.0179
0.0182
0.58
minimum-1024x11008-float16-float16-MinimumFwdOp-minimum-normal0.99×0.0189torch-compile
torch
0.0188
0.0190
0.595
minimum-1024x4096-float16-float16-MinimumFwdOp-minimum-normal0.97×0.00861torch-compile
torch
0.00835
0.00874
0.487

MaximumFwd (9 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
cnn-feat-broadcast-bfloat160.36×0.0392torch-compile
torch
0.0142
0.0514
0.327
cnn-feat-broadcast-float160.38×0.0374torch-compile
torch
0.0143
0.0505
0.343
cnn-feat-broadcast-float320.90×0.0293torch-compile
torch
0.0264
0.0531
0.438
hidden-state-prefill-bfloat160.98×0.0149torch-compile
torch
0.0147
0.0150
0.561
hidden-state-prefill-float160.98×0.0147torch-compile
torch
0.0145
0.0148
0.571
hidden-state-prefill-float321.00×0.0263torch-compile
torch
0.0263
0.0265
0.319
maximum-1024x10240-float16-float16-MaximumFwdOp-maximum-normal0.99×0.0180torch-compile
torch
0.0179
0.0182
0.581
maximum-1024x11008-float16-float16-MaximumFwdOp-maximum-normal0.99×0.0189torch-compile
torch
0.0187
0.0190
0.597
maximum-1024x4096-float16-float16-MaximumFwdOp-maximum-normal0.98×0.00858torch-compile
torch
0.00838
0.00867
0.489

gelu_and_mul_strategy (2 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
gelu_and_mul-1024-4096-float16-GeluAndMulFwdKernel-direct0.49×0.0216torch-compile
torch
0.0107
0.0334
0.388
gelu_and_mul-1024-4096-float16-GeluAndMulFwdKernel-explicit_parallel1.06×0.0100torch-compile
torch
0.0107
0.0334
0.837

gelu_tanh_and_mul_strategy (2 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
gelu_tanh_and_mul-1024-4096-float16-GeluTanhAndMulFwdKernel-direct0.45×0.0216torch-compile
torch
0.00976
0.0319
0.388
gelu_tanh_and_mul-1024-4096-float16-GeluTanhAndMulFwdKernel-explicit_parallel1.11×0.00883torch-compile
torch
0.00979
0.0319
0.95

silu_and_mul_strategy (10 workloads)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
silu_and_mul-1024-11008-float16-SiluAndMulFwdKernel-direct0.34×0.0555torch-compile
torch
0.0190
0.0769
0.406
silu_and_mul-1024-11008-float16-SiluAndMulFwdKernel-explicit_parallel1.01×0.0189torch-compile
torch
0.0190
0.0769
1.19
silu_and_mul-1024-4096-bfloat16-SiluAndMulFwdKernel-direct0.39×0.0216torch-compile
torch
0.00842
0.0317
0.388
silu_and_mul-1024-4096-bfloat16-SiluAndMulFwdKernel-explicit_parallel1.00×0.00845torch-compile
torch
0.00842
0.0317
0.993
silu_and_mul-1024-4096-float16-SiluAndMulFwdKernel-direct0.39×0.0216torch-compile
torch
0.00835
0.0316
0.388
silu_and_mul-1024-4096-float16-SiluAndMulFwdKernel-explicit_parallel0.99×0.00842torch-compile
torch
0.00832
0.0316
0.997
silu_and_mul-1024-4096-float32-SiluAndMulFwdKernel-direct0.67×0.0218torch-compile
torch
0.0146
0.0347
0.384
silu_and_mul-1024-4096-float32-SiluAndMulFwdKernel-explicit_parallel0.98×0.0148torch-compile
torch
0.0146
0.0348
0.566
silu_and_mul-4096-4096-float16-SiluAndMulFwdKernel-direct0.33×0.0822torch-compile
torch
0.0269
0.1112
0.408
silu_and_mul-4096-4096-float16-SiluAndMulFwdKernel-explicit_parallel1.01×0.0266torch-compile
torch
0.0269
0.1113
1.26

Reduction

ArgminFwd (4 workloads · ✅)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
hidden-state-argmin-bfloat161.00×0.00986flaggems
torch-compile
torch
0.00986
0.0194
0.0248
0.851
hidden-state-argmin-float161.03×0.00963flaggems
torch-compile
torch
0.00992
0.0190
0.0246
0.871
lm-head-argmin-bfloat164.38×0.00664torch-compile
torch
flaggems
0.0291
0.0359
0.1027
0.0617
lm-head-argmin-float167.15×0.004torch-compile
torch
flaggems
0.0286
0.0354
0.1156
0.102

CumprodFwd (3 workloads · ✅)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
hidden-state-scan-bfloat162.23×0.0109torch-compile
torch
0.0244
0.1462
0.769
hidden-state-scan-float162.11×0.0115torch-compile
torch
0.0242
0.1458
0.73
long-seq-scan-bfloat161.73×0.00704torch-compile
torch
0.0122
0.0677
0.298

ArgmaxFwd (5 workloads · ✅)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
3d-non-last-axis-argmax-float160.98×0.0039flaggems
torch-compile
torch
0.00381
0.00458
0.0112
0.537
hidden-state-argmax-bfloat161.21×0.00963flaggems
torch-compile
torch
0.0116
0.0194
0.0249
0.871
hidden-state-argmax-float161.33×0.00915flaggems
torch-compile
torch
0.0122
0.0190
0.0246
0.916
lm-head-argmax-bfloat167.16×0.00397flaggems
torch-compile
torch
0.0284
0.0291
0.0359
0.103
lm-head-argmax-float167.41×0.00387torch-compile
flaggems
torch
0.0287
0.0300
0.0352
0.106

VarMeanFwd (4 workloads · ✅)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
3d-multidim-reduce-float160.63×0.0121torch-compile
flaggems
torch
0.00758
0.0142
0.0452
0.865
hidden-state-var-mean-bfloat161.84×0.00842flaggems
torch-compile
torch
0.0155
0.0219
0.1171
4.98
hidden-state-var-mean-float161.80×0.00838flaggems
torch-compile
torch
0.0151
0.0210
0.1166
5
long-seq-var-mean-bfloat161.47×0.00515torch-compile
flaggems
torch
0.00758
0.0111
0.0406
2.04

VarFwd (4 workloads · ✅)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
3d-multidim-reduce-float160.50×0.0120torch-compile
flaggems
torch
0.00605
0.0141
0.0268
0.874
hidden-state-var-bfloat161.84×0.00837flaggems
torch-compile
torch
0.0154
0.0188
0.0680
5.01
hidden-state-var-float161.80×0.00835flaggems
torch-compile
torch
0.0150
0.0183
0.0677
5.02
long-seq-var-bfloat161.19×0.00515torch-compile
flaggems
torch
0.00611
0.0111
0.0249
2.04

StdFwd (4 workloads · ✅)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
3d-multidim-reduce-float160.52×0.0121torch-compile
flaggems
torch
0.0063
0.0143
0.0269
0.869
hidden-state-std-bfloat161.30×0.00851flaggems
torch-compile
torch
0.0111
0.0193
0.0680
4.93
hidden-state-std-float161.25×0.00845flaggems
torch-compile
torch
0.0106
0.0188
0.0678
4.97
long-seq-std-bfloat161.19×0.00518torch-compile
flaggems
torch
0.00618
0.0132
0.0249
2.02

L2NormFwd (4 workloads · ✅)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
3d-multidim-reduce-float160.41×0.0113torch-compile
flaggems
torch
0.00464
0.0135
0.0193
0.37
hidden-state-l2-bfloat161.06×0.00742flaggems
torch-compile
torch
0.00787
0.0088
0.0498
2.26
hidden-state-l2-float161.06×0.00746flaggems
torch-compile
torch
0.00787
0.00867
0.0496
2.25
long-seq-l2-bfloat161.12×0.004torch-compile
flaggems
torch
0.00448
0.0135
0.0169
1.05

InfNormFwd (4 workloads · ✅)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
3d-multidim-reduce-float160.44×0.0112torch-compile
flaggems
torch
0.00493
0.0127
0.0192
0.373
hidden-state-inf-bfloat161.07×0.00736flaggems
torch-compile
torch
0.00784
0.0111
0.0502
2.28
hidden-state-inf-float161.04×0.00733flaggems
torch-compile
torch
0.00765
0.0106
0.0499
2.29
long-seq-inf-bfloat161.24×0.00403torch-compile
flaggems
torch
0.00499
0.0137
0.0173
1.04

AmaxFwd (4 workloads · ✅)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
3d-multidim-reduce-float160.44×0.0113torch-compile
flaggems
torch
0.00496
0.0124
0.0129
0.186
hidden-state-reduce-bfloat161.05×0.00742flaggems
torch-compile
torch
0.00782
0.0101
0.0193
1.13
hidden-state-reduce-float161.03×0.00742flaggems
torch-compile
torch
0.00768
0.0101
0.0192
1.13
long-seq-reduce-bfloat161.20×0.0041torch-compile
torch
flaggems
0.00493
0.0113
0.0135
0.512

SoftmaxFwd (7 workloads · ✅)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
attn-weights-32k-bfloat161.05×0.0615flaggems
torch
torch-compile
0.0644
0.0834
0.0943
2.73
attn-weights-4k-bfloat161.03×0.00838flaggems
torch-compile
torch
0.00867
0.0167
0.0196
2.5
attn-weights-4k-float161.02×0.00842flaggems
torch-compile
torch
0.00861
0.0161
0.0198
2.49
attn-weights-4k-float321.00×0.0110flaggems
torch-compile
torch
0.0111
0.0184
0.0202
1.9
lm-head-logits-bfloat160.31×0.0308torch-compile
flaggems
torch
0.00954
0.0297
0.0340
0.0665
lm-head-logits-float160.33×0.0284torch-compile
flaggems
torch
0.0095
0.0281
0.0332
0.0721
lm-head-logits-float320.28×0.0348torch-compile
flaggems
torch
0.00979
0.0313
0.0394
0.0589

ProdFwd (3 workloads · ✅)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
hidden-state-reduce-bfloat161.04×0.00747flaggems
torch-compile
torch
0.00781
0.00835
0.0496
1.12
hidden-state-reduce-float161.00×0.00787flaggems
torch-compile
torch
0.00784
0.00829
0.0492
1.07
long-seq-reduce-bfloat161.05×0.00429torch-compile
flaggems
torch
0.00451
0.0136
0.0168
0.489

CumsumFwd (3 workloads · ✅)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
hidden-state-scan-bfloat160.97×0.0109flaggems
torch-compile
torch
0.0106
0.0244
0.1462
0.769
hidden-state-scan-float160.92×0.0115flaggems
torch-compile
torch
0.0106
0.0242
0.1459
0.73
long-seq-scan-bfloat161.14×0.00704flaggems
torch-compile
torch
0.008
0.0122
0.0677
0.298

AminFwd (4 workloads · ✅)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
3d-multidim-reduce-float160.44×0.0113torch-compile
torch
0.00496
0.0129
0.186
hidden-state-reduce-bfloat161.36×0.00742torch-compile
torch
0.0101
0.0193
1.13
hidden-state-reduce-float161.37×0.00742torch-compile
torch
0.0101
0.0192
1.13
long-seq-reduce-bfloat161.14×0.0041torch-compile
torch
0.00467
0.0113
0.512

LogSumExpFwd (6 workloads · ✅)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
3d-multidim-reduce-float160.81×0.0125torch-compile
torch
0.0102
0.0412
0.669
attn-weights-32k-bfloat161.01×0.0411torch-compile
torch
0.0415
0.1979
3.27
attn-weights-4k-bfloat161.34×0.00746torch-compile
torch
0.0100
0.0494
2.25
attn-weights-4k-float161.36×0.00742torch-compile
torch
0.0101
0.0488
2.26
lm-head-logits-bfloat160.62×0.0165torch-compile
torch
0.0103
0.0463
0.0994
lm-head-logits-float160.75×0.0141torch-compile
torch
0.0106
0.0463
0.116

L1NormFwd (4 workloads · ✅)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
3d-multidim-reduce-float160.41×0.0113torch-compile
torch
flaggems
0.00464
0.0193
0.0246
0.372
hidden-state-l1-bfloat161.15×0.00736torch-compile
flaggems
torch
0.00845
0.0154
0.0497
2.28
hidden-state-l1-float161.13×0.00736torch-compile
flaggems
torch
0.00835
0.0150
0.0494
2.28
long-seq-l1-bfloat161.16×0.0039torch-compile
torch
flaggems
0.00451
0.0169
0.0368
1.07

SumFwd (6 workloads · ✅)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
3d-multidim-reduce-float160.41×0.0113torch-compile
flaggems
torch
0.00458
0.0135
0.0193
0.186
hidden-state-reduce-bfloat161.13×0.00742torch-compile
flaggems
torch
0.00842
0.0088
0.0498
1.13
hidden-state-reduce-dim0-bfloat160.92×0.0121torch-compile
flaggems
torch
0.0111
0.0137
0.0447
0.692
hidden-state-reduce-float161.12×0.00742torch-compile
flaggems
torch
0.00835
0.00877
0.0494
1.13
hidden-state-reduce-keepdim-bfloat161.13×0.00745torch-compile
flaggems
torch
0.00842
0.0088
0.0499
1.13
long-seq-reduce-bfloat160.94×0.00406flaggems
torch-compile
torch
0.00381
0.00442
0.0169
0.516

CountNonzeroFwd (4 workloads · ✅)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
3d-multidim-reduce-float160.41×0.0116torch-compile
torch
0.00475
0.0218
0.363
sparsity-hidden-bfloat161.12×0.0081torch-compile
torch
0.0091
0.0638
2.07
sparsity-hidden-float161.12×0.00813torch-compile
torch
0.00909
0.0638
2.06
sparsity-seq-float161.03×0.00371torch-compile
torch
0.00384
0.0152
0.565

MeanFwd (4 workloads · ✅)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
3d-multidim-reduce-float160.41×0.0113torch-compile
flaggems
torch
0.00467
0.0135
0.0191
0.186
hidden-state-reduce-bfloat161.14×0.00742torch-compile
flaggems
torch
0.00845
0.00893
0.0499
1.13
hidden-state-reduce-float161.12×0.00742torch-compile
flaggems
torch
0.00835
0.0089
0.0495
1.13
long-seq-reduce-bfloat160.94×0.00405flaggems
torch-compile
torch
0.00381
0.00442
0.0169
0.518

LogSoftmaxFwd (7 workloads · ✅)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
attn-weights-32k-bfloat161.09×0.0567torch
torch-compile
flaggems
0.0616
0.0717
0.2500
2.96
attn-weights-4k-bfloat161.75×0.00883torch-compile
torch
flaggems
0.0154
0.0172
0.0204
2.37
attn-weights-4k-float161.65×0.00902torch-compile
torch
flaggems
0.0149
0.0172
0.0199
2.32
attn-weights-4k-float321.37×0.0115torch-compile
torch
flaggems
0.0157
0.0185
0.0206
1.83
lm-head-logits-bfloat160.34×0.0262torch-compile
torch
flaggems
0.00901
0.0231
0.4227
0.0781
lm-head-logits-float160.36×0.0249torch-compile
torch
flaggems
0.00906
0.0224
0.4222
0.0824
lm-head-logits-float320.31×0.0319torch-compile
torch
flaggems
0.00982
0.0352
0.4035
0.0641

AllFwd (3 workloads · ✅)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
3d-multidim-reduce-bool0.38×0.0111torch-compile
torch
flaggems
0.00426
0.0103
0.0117
0.189
mask-validation-32k-bool0.91×0.00375torch-compile
flaggems
torch
0.00339
0.00643
0.0102
0.28
mask-validation-4k-bool0.92×0.00195torch-compile
flaggems
torch
0.00179
0.00189
0.0173
0.0671

AnyFwd (3 workloads · ✅)

Workload Ratio Device time Alternatives Throughput
alt / ours ms name ms TFLOP/s
3d-multidim-reduce-bool0.34×0.0111torch-compile
flaggems
torch
0.00371
0.0117
0.0188
0.189
mask-validation-32k-bool0.87×0.00378torch-compile
flaggems
torch
0.0033
0.00643
0.0105
0.278
mask-validation-4k-bool0.89×0.00195torch-compile
flaggems
torch
0.00173
0.00189
0.0178
0.0671