Skip to content

Elementwise

66 ops, 389 workloads.

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.

AddFwd

input: [*A]other: [*B]

dtype=bf16, f32

  • hidden-state-prefillinput, other: [2048, 4096]
  • cnn-feat-broadcastinput: [16, 256, 56, 56]other: [256, 1, 1]
  • llama-7b-ffninput, other: [1024, 11008]
  • linear-biasinput: [1024, 4096]other: [1, 4096]
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
hidden-state-prefillbf161.01×0.0122torch-compile
torch
0.0123
0.0123
0.69··
f321.00×0.0227torch-compile
torch
0.0226
0.0227
0.37··
cnn-feat-broadcastbf161.00×0.0127torch-compile
torch
0.0128
0.0459
1.01··
f321.00×0.0236torch-compile
torch
0.0235
0.0481
0.545··
llama-7b-ffnbf161.00×0.0157torch-compile
torch
0.0157
0.0158
0.716··
f321.00×0.0298torch-compile
torch
0.0298
0.0299
0.378··
linear-biasbf161.07×0.00477torch-compile
torch
0.00512
0.0144
0.88··
f321.12×0.00832torch-compile
torch
0.00931
0.0148
0.504··

SubFwd

input: [*A]other: [*B]

  • hidden-state-prefillinput, other: [2048, 4096]dtype=bf16, f32
  • cnn-feat-broadcastinput: [16, 256, 56, 56]other: [256, 1, 1]dtype=bf16, f32
  • llama-7b-ffninput, other: [1024, 11008]dtype=bf16, f32
  • linear-biasinput: [1024, 4096]other: [1, 4096]dtype=bf16, f32
  • llama-7b-hiddeninput, other: [1024, 4096]dtype=f16
  • phi-2-ffninput, other: [1024, 10240]dtype=f16
  • phi-2-ffn-biasinput: [1024, 10240]other: [1, 10240]dtype=f16
  • llama-7b-ffn-biasinput: [1024, 11008]other: [1, 11008]dtype=f16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
hidden-state-prefillbf161.00×0.0122torch-compile
torch
0.0122
0.0123
0.689··
f321.00×0.0226torch
torch-compile
0.0227
0.0239
0.371··
cnn-feat-broadcastbf161.00×0.0127torch-compile
torch
0.0128
0.0459
1.01··
f320.99×0.0236torch-compile
torch
0.0235
0.0482
0.545··
llama-7b-ffnbf161.00×0.0158torch-compile
torch
0.0157
0.0158
0.715··
f321.00×0.0298torch-compile
torch
0.0298
0.0299
0.378··
linear-biasbf161.07×0.00477torch-compile
torch
0.00512
0.0144
0.88··
f321.12×0.0083torch-compile
torch
0.00931
0.0148
0.505··
llama-7b-hiddenf161.06×0.00672torch
torch-compile
0.0071
0.00874
0.624··
phi-2-ffnf161.00×0.0148torch-compile
torch
0.0148
0.0149
0.707··
phi-2-ffn-biasf161.01×0.0105torch-compile
torch
0.0106
0.0314
0.996··
llama-7b-ffn-biasf161.00×0.0114torch-compile
torch
0.0114
0.0337
0.987··

MulFwd

input: [*A]other: [*B]

  • hidden-state-prefillinput, other: [2048, 4096]dtype=bf16, f32
  • cnn-feat-broadcastinput: [16, 256, 56, 56]other: [256, 1, 1]dtype=bf16, f32
  • llama-7b-ffninput, other: [1024, 11008]dtype=bf16, f32
  • linear-biasinput: [1024, 4096]other: [1, 4096]dtype=bf16, f32
  • llama-7b-hiddeninput, other: [1024, 4096]dtype=f16
  • phi-2-ffninput, other: [1024, 10240]dtype=f16
  • phi-2-ffn-biasinput: [1024, 10240]other: [1, 10240]dtype=f16
  • llama-7b-ffn-biasinput: [1024, 11008]other: [1, 11008]dtype=f16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
hidden-state-prefillbf161.00×0.0122torch-compile
torch
0.0122
0.0123
0.69··
f321.00×0.0226torch-compile
torch
0.0226
0.0227
0.371··
cnn-feat-broadcastbf161.00×0.0127torch-compile
torch
0.0128
0.0455
1.01··
f321.00×0.0236torch-compile
torch
0.0235
0.0483
0.545··
llama-7b-ffnbf161.00×0.0158torch-compile
torch
0.0157
0.0158
0.715··
f321.00×0.0298torch
torch-compile
0.0299
0.0299
0.378··
linear-biasbf161.72×0.00477torch-compile
torch
0.00819
0.0143
0.88··
f321.12×0.00832torch-compile
torch
0.00931
0.0148
0.504··
llama-7b-hiddenf161.05×0.00672torch-compile
torch
0.00707
0.00712
0.624··
phi-2-ffnf161.00×0.0148torch-compile
torch
0.0148
0.0149
0.708··
phi-2-ffn-biasf161.01×0.0106torch-compile
torch
0.0106
0.0313
0.993··
llama-7b-ffn-biasf161.00×0.0114torch-compile
torch
0.0114
0.0335
0.992··

DivFwd

input: [*A]other: [*B]

  • hidden-state-prefillinput, other: [2048, 4096]dtype=bf16, f32
  • cnn-feat-broadcastinput: [16, 256, 56, 56]other: [256, 1, 1]dtype=bf16, f32
  • llama-7b-ffninput, other: [1024, 11008]dtype=bf16, f32
  • linear-biasinput: [1024, 4096]other: [1, 4096]dtype=bf16, f32
  • llama-7b-hiddeninput, other: [1024, 4096]dtype=f16
  • phi-2-ffninput, other: [1024, 10240]dtype=f16
  • phi-2-ffn-biasinput: [1024, 10240]other: [1, 10240]dtype=f16
  • llama-7b-ffn-biasinput: [1024, 11008]other: [1, 11008]dtype=f16
  • ragged-chan-broadcastinput: [32, 256, 35, 35]other: [256, 1, 1]dtype=f16
  • unaligned-same-shapeinput, other: [4097, 1023]dtype=f16
  • flat-prime-lengthinput, other: [1000003]dtype=f16
  • unaligned-row-biasinput: [2048, 4000]other: [1, 4000]dtype=f16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
hidden-state-prefillbf161.01×0.0122torch-compile
torch
0.0123
0.0125
0.688··
f321.00×0.0226torch-compile
torch
0.0227
0.0228
0.371··
cnn-feat-broadcastbf161.00×0.0128torch-compile
torch
0.0128
0.0507
1··
f320.99×0.0236torch-compile
torch
0.0235
0.0523
0.545··
llama-7b-ffnbf161.00×0.0157torch-compile
torch
0.0158
0.0161
0.716··
f321.00×0.0299torch-compile
torch
0.0299
0.0301
0.377··
linear-biasbf161.72×0.00522torch-compile
torch
0.00899
0.0159
0.804··
f321.00×0.00899torch-compile
torch
0.00902
0.0159
0.466··
llama-7b-hiddenf161.01×0.00701torch-compile
torch
0.00707
0.00726
0.599··
phi-2-ffnf161.00×0.0149torch-compile
torch
0.0149
0.0152
0.705··
phi-2-ffn-biasf161.00×0.0106torch-compile
torch
0.0107
0.0351
0.987··
llama-7b-ffn-biasf161.01×0.0114torch-compile
torch
0.0115
0.0376
0.989··
ragged-chan-broadcastf161.34×0.0103torch-compile
torch
0.0138
0.0396
0.971··
unaligned-same-shapef161.06×0.00723torch
torch-compile
0.00765
0.00973
0.579··
flat-prime-lengthf161.11×0.00298torch
torch-compile
0.0033
0.00461
0.336··
unaligned-row-biasf161.00×0.00877torch-compile
torch
0.0088
0.0280
0.934··

FloorDivideFwd

input: [*A]other: [*B]

  • hidden-state-prefillinput, other: [2048, 4096]dtype=bf16, f32
  • cnn-feat-broadcastinput: [16, 256, 56, 56]other: [256, 1, 1]dtype=bf16, f32
  • llama-7b-ffninput, other: [1024, 11008]dtype=bf16, f32
  • linear-biasinput: [1024, 4096]other: [1, 4096]dtype=bf16, f32
  • llama-7b-hiddeninput, other: [1024, 4096]dtype=f16
  • phi-2-ffninput, other: [1024, 10240]dtype=f16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
hidden-state-prefillbf161.26×0.0123torch-compile
torch
0.0155
0.0498
1.37··
f321.02×0.0227torch-compile
torch
0.0232
0.0464
0.738··
cnn-feat-broadcastbf161.69×0.0129torch-compile
torch
0.0218
0.1128
1.99··
f321.04×0.0237torch-compile
torch
0.0246
0.1010
1.08··
llama-7b-ffnbf161.28×0.0159torch-compile
torch
0.0204
0.0656
1.42··
f321.01×0.0300torch-compile
torch
0.0304
0.0610
0.751··
linear-biasbf161.74×0.00522torch-compile
torch
0.00906
0.0366
1.61··
f321.07×0.00902torch-compile
torch
0.00965
0.0325
0.93··
llama-7b-hiddenf161.63×0.00709torch-compile
torch
0.0115
0.0258
1.18··
phi-2-ffnf161.25×0.0149torch-compile
torch
0.0187
0.0588
1.41··

RemainderFwd

input: [*A]other: [*B]

  • hidden-state-prefillinput, other: [2048, 4096]dtype=bf16, f32
  • cnn-feat-broadcastinput: [16, 256, 56, 56]other: [256, 1, 1]dtype=bf16, f32
  • llama-7b-ffninput, other: [1024, 11008]dtype=bf16, f32
  • linear-biasinput: [1024, 4096]other: [1, 4096]dtype=bf16, f32
  • llama-7b-hiddeninput, other: [1024, 4096]dtype=f16
  • phi-2-ffninput, other: [1024, 10240]dtype=f16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
hidden-state-prefillbf161.02×0.0124torch-compile
torch
0.0126
0.0177
2.72··
f321.03×0.0228torch
torch-compile
0.0235
0.0247
1.47··
cnn-feat-broadcastbf161.40×0.0130torch-compile
torch
0.0181
0.0638
3.96··
f320.99×0.0238torch-compile
torch
0.0236
0.0639
2.16··
llama-7b-ffnbf161.04×0.0159torch-compile
torch
0.0165
0.0227
2.83··
f321.01×0.0300torch-compile
torch
0.0304
0.0307
1.5··
linear-biasbf161.34×0.00534torch-compile
torch
0.00717
0.0202
3.14··
f321.18×0.00909torch-compile
torch
0.0107
0.0197
1.85··
llama-7b-hiddenf161.40×0.0071torch
torch-compile
0.00992
0.0106
2.36··
phi-2-ffnf161.01×0.0150torch-compile
torch
0.0152
0.0205
2.8··

PowFwd

input: [*A]exponent: [*B]

  • hidden-state-prefillinput, exponent: [2048, 4096]dtype=bf16, f32
  • cnn-feat-broadcastinput: [16, 256, 56, 56]exponent: [256, 1, 1]dtype=bf16, f32
  • llama-7b-ffninput, exponent: [1024, 11008]dtype=bf16, f32
  • linear-biasinput: [1024, 4096]exponent: [1, 4096]dtype=bf16, f32
  • llama-7b-hiddeninput, exponent: [1024, 4096]dtype=f16
  • phi-2-ffninput, exponent: [1024, 10240]dtype=f16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
hidden-state-prefillbf161.63×0.0228torch
torch-compile
0.0371
0.0444
0.369··
f321.43×0.0251torch
torch-compile
0.0360
0.0408
0.334··
cnn-feat-broadcastbf161.36×0.0450torch-compile
torch
0.0613
0.0947
0.285··
f321.47×0.0470torch-compile
torch
0.0692
0.0935
0.273··
llama-7b-ffnbf161.65×0.0296torch
torch-compile
0.0488
0.0654
0.38··
f321.42×0.0334torch
torch-compile
0.0474
0.0623
0.337··
linear-biasbf161.53×0.0155torch-compile
torch
0.0236
0.0303
0.271··
f321.73×0.0127torch-compile
torch
0.0220
0.0294
0.329··
llama-7b-hiddenf161.59×0.0123torch
torch-compile
0.0196
0.0230
0.341··
phi-2-ffnf161.67×0.0268torch
torch-compile
0.0446
0.0592
0.392··

MaximumFwd

input: [*A]other: [*B]

  • hidden-state-prefillinput, other: [2048, 4096]dtype=bf16, f32
  • cnn-feat-broadcastinput: [16, 256, 56, 56]other: [256, 1, 1]dtype=bf16, f32
  • llama-7b-ffninput, other: [1024, 11008]dtype=bf16, f32
  • linear-biasinput: [1024, 4096]other: [1, 4096]dtype=bf16, f32
  • llama-7b-hiddeninput, other: [1024, 4096]dtype=f16
  • phi-2-ffninput, other: [1024, 10240]dtype=f16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
hidden-state-prefillbf161.01×0.0122torch-compile
torch
0.0122
0.0126
0.69··
f321.00×0.0226torch-compile
torch
0.0226
0.0228
0.371··
cnn-feat-broadcastbf161.00×0.0127torch-compile
torch
0.0128
0.0504
1.01··
f320.99×0.0236torch-compile
torch
0.0235
0.0516
0.545··
llama-7b-ffnbf161.00×0.0157torch-compile
torch
0.0158
0.0161
0.716··
f321.00×0.0298torch-compile
torch
0.0299
0.0301
0.378··
linear-biasbf161.71×0.00477torch-compile
torch
0.00816
0.0168
0.88··
f321.12×0.00832torch-compile
torch
0.00931
0.0165
0.504··
llama-7b-hiddenf161.05×0.00672torch-compile
torch
0.00707
0.00733
0.624··
phi-2-ffnf161.00×0.0148torch-compile
torch
0.0148
0.0152
0.708··

MinimumFwd

input: [*A]other: [*B]

  • hidden-state-prefillinput, other: [2048, 4096]dtype=bf16, f32
  • cnn-feat-broadcastinput: [16, 256, 56, 56]other: [256, 1, 1]dtype=bf16, f32
  • llama-7b-ffninput, other: [1024, 11008]dtype=bf16, f32
  • linear-biasinput: [1024, 4096]other: [1, 4096]dtype=bf16, f32
  • llama-7b-hiddeninput, other: [1024, 4096]dtype=f16
  • phi-2-ffninput, other: [1024, 10240]dtype=f16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
hidden-state-prefillbf161.00×0.0122torch-compile
torch
0.0122
0.0127
0.688··
f321.00×0.0226torch-compile
torch
0.0226
0.0228
0.371··
cnn-feat-broadcastbf161.01×0.0127torch-compile
torch
0.0128
0.0504
1.01··
f320.99×0.0236torch-compile
torch
0.0235
0.0516
0.545··
llama-7b-ffnbf161.00×0.0157torch-compile
torch
0.0157
0.0162
0.717··
f321.00×0.0299torch-compile
torch
0.0298
0.0300
0.378··
linear-biasbf161.71×0.00477torch-compile
torch
0.00816
0.0168
0.88··
f321.12×0.00832torch-compile
torch
0.00931
0.0166
0.504··
llama-7b-hiddenf161.05×0.00672torch-compile
torch
0.00704
0.00733
0.624··
phi-2-ffnf161.00×0.0148torch-compile
torch
0.0148
0.0152
0.708··

LerpFwd

input: [*A]end: [*E]weight: [*W]

  • 16Minput, end, weight: [4096, 4096]dtype=bf16, f32
  • 256Minput, end, weight: [16384, 16384]dtype=bf16
  • cnn-feat-channel-weightinput, end: [16, 256, 56, 56]weight: [256, 1, 1]dtype=bf16, f32
  • 16M-scalar-weightinput, end: [4096, 4096]weight: []dtype=bf16, f32

input: [*A]end: [*E]

weight=0.5

  • hidden-state-prefillinput, end: [2048, 4096]dtype=bf16, f32
  • cnn-feat-broadcastinput: [16, 256, 56, 56]end: [256, 1, 1]dtype=bf16, f32
  • llama-7b-ffninput, end: [1024, 11008]dtype=bf16, f32
  • linear-biasinput: [1024, 4096]end: [1, 4096]dtype=bf16, f32
  • llama-7b-hiddeninput, end: [1024, 4096]dtype=f16
  • phi-2-ffninput, end: [1024, 10240]dtype=f16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
16Mbf161.00×0.0300torch-compile
torch
0.0300
0.0301
1.67··
f321.00×0.0602torch
torch-compile
0.0600
0.0602
0.836··
256Mbf161.00×0.4772torch
torch-compile
0.4773
0.4774
1.69··
cnn-feat-channel-weightbf161.01×0.0178torch-compile
torch
0.0179
0.0523
2.17··
f321.08×0.0341torch-compile
torch
0.0370
0.0551
1.13··
16M-scalar-weightbf161.00×0.0228torch-compile
torch
0.0228
0.0512
2.21··
f321.10×0.0445torch-compile
torch
0.0491
0.0621
1.13··
hidden-state-prefillbf161.01×0.0122torch-compile
torch
0.0123
0.0123
2.06··
f321.00×0.0226torch
torch-compile
0.0226
0.0226
1.11··
cnn-feat-broadcastbf161.00×0.0128torch-compile
torch
0.0127
0.0476
3.02··
f320.99×0.0236torch-compile
torch
0.0235
0.0495
1.63··
llama-7b-ffnbf161.00×0.0158torch-compile
torch
0.0158
0.0159
2.14··
f321.00×0.0299torch
torch-compile
0.0299
0.0299
1.13··
linear-biasbf161.81×0.00477torch-compile
torch
0.00861
0.0148
2.64··
f321.05×0.00832torch-compile
torch
0.00875
0.0152
1.51··
llama-7b-hiddenf161.05×0.00672torch-compile
torch
0.00707
0.00714
1.87··
phi-2-ffnf161.00×0.0149torch-compile
torch
0.0148
0.0149
2.12··

ExpFwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=bf16, f32
  • 256Minput: [16384, 16384]dtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
16Mbf161.02×0.0161torch
torch-compile
0.0164
0.0164
1.04··
f321.00×0.0309torch-compile
torch
0.0308
0.0308
0.543··
256Mbf161.01×0.2549torch
torch-compile
0.2585
0.2599
1.05··

Expm1Fwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=bf16, f32
  • 256Minput: [16384, 16384]dtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
16Mbf161.67×0.0162torch-compile
torch
0.0270
0.0272
1.04··
f321.01×0.0309torch
torch-compile
0.0311
0.0316
0.543··
256Mbf161.61×0.2551torch-compile
torch
0.4101
0.4123
1.05··

LogFwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=bf16, f32
  • 256Minput: [16384, 16384]dtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
16Mbf161.70×0.0159torch-compile
torch
0.0269
0.0271
1.06··
f321.00×0.0319torch-compile
torch
0.0318
0.0324
0.526··
256Mbf161.63×0.2517torch-compile
torch
0.4094
0.4133
1.07··

Log1pFwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=bf16, f32
  • 256Minput: [16384, 16384]dtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
16Mbf161.58×0.0159torch-compile
torch
0.0250
0.0257
1.06··
f321.00×0.0310torch-compile
torch
0.0310
0.0311
0.541··
256Mbf161.52×0.2515torch-compile
torch
0.3812
0.3888
1.07··

SqrtFwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=bf16, f32
  • 256Minput: [16384, 16384]dtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
16Mbf161.01×0.0161torch-compile
torch
0.0163
0.0165
1.04··
f321.00×0.0309torch-compile
torch
0.0308
0.0310
0.543··
256Mbf161.05×0.2515torch-compile
torch
0.2630
0.2667
1.07··

RsqrtFwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=bf16, f32
  • 256Minput: [16384, 16384]dtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
16Mbf161.00×0.0160torch-compile
torch
0.0160
0.0160
1.05··
f320.99×0.0309torch-compile
torch
0.0307
0.0308
0.543··
256Mbf161.00×0.2513torch-compile
torch
0.2502
0.2522
1.07··

ReciprocalFwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=bf16, f32
  • 256Minput: [16384, 16384]dtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
16Mbf161.01×0.0160torch-compile
torch
0.0161
0.0164
1.05··
f321.00×0.0307torch-compile
torch
0.0308
0.0310
0.546··
256Mbf161.02×0.2506torch-compile
torch
0.2555
0.2670
1.07··

AbsFwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=bf16, f32
  • 256Minput: [16384, 16384]dtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
16Mbf161.00×0.0159torch-compile
torch
0.0160
0.0161
1.05··
f321.00×0.0308torch-compile
torch
0.0308
0.0308
0.544··
256Mbf161.00×0.2496torch-compile
torch
0.2501
0.2505
1.08··

NegFwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=bf16, f32
  • 256Minput: [16384, 16384]dtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
16Mbf161.00×0.0160torch-compile
torch
0.0159
0.0161
1.05··
f321.00×0.0308torch-compile
torch
0.0307
0.0308
0.544··
256Mbf161.00×0.2504torch
torch-compile
0.2496
0.2497
1.07··

SignFwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=bf16, f32
  • 256Minput: [16384, 16384]dtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
16Mbf161.00×0.0162torch-compile
torch
0.0162
0.0164
2.07··
f321.00×0.0308torch-compile
torch
0.0308
0.0308
1.09··
256Mbf160.99×0.2555torch-compile
torch
0.2536
0.2588
2.1··

SinFwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=bf16, f32
  • 256Minput: [16384, 16384]dtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
16Mbf161.16×0.0220torch-compile
torch
0.0256
0.0257
0.761··
f321.00×0.0311torch-compile
torch
0.0312
0.0315
0.539··
256Mbf161.22×0.3162torch
torch-compile
0.3867
0.3893
0.849··

CosFwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=bf16, f32
  • 256Minput: [16384, 16384]dtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
16Mbf161.13×0.0230torch
torch-compile
0.0260
0.0270
0.73··
f321.02×0.0311torch-compile
torch
0.0317
0.0318
0.539··
256Mbf161.20×0.3291torch
torch-compile
0.3936
0.4108
0.816··

ErfFwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=bf16, f32
  • 256Minput: [16384, 16384]dtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
16Mbf161.25×0.0216torch
torch-compile
0.0270
0.0290
0.778··
f321.02×0.0311torch
torch-compile
0.0316
0.0320
0.539··
256Mbf161.32×0.3084torch
torch-compile
0.4076
0.4407
0.871··

FloorFwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=bf16, f32
  • 256Minput: [16384, 16384]dtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
16Mbf161.00×0.0160torch-compile
torch
0.0160
0.0161
1.05··
f321.00×0.0308torch-compile
torch
0.0308
0.0308
0.546··
256Mbf161.00×0.2506torch-compile
torch
0.2497
0.2508
1.07··

CeilFwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=bf16, f32
  • 256Minput: [16384, 16384]dtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
16Mbf161.00×0.0160torch
torch-compile
0.0161
0.0161
1.05··
f321.00×0.0308torch-compile
torch
0.0307
0.0308
0.545··
256Mbf161.00×0.2497torch
torch-compile
0.2500
0.2507
1.07··

RoundFwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=bf16, f32
  • 256Minput: [16384, 16384]dtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
16Mbf161.00×0.0160torch-compile
torch
0.0160
0.0161
1.05··
f321.00×0.0308torch-compile
torch
0.0308
0.0309
0.545··
256Mbf161.00×0.2497torch
torch-compile
0.2502
0.2505
1.07··

TruncFwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=bf16, f32
  • 256Minput: [16384, 16384]dtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
16Mbf161.00×0.0160torch-compile
torch
0.0160
0.0161
1.05··
f321.00×0.0308torch-compile
torch
0.0308
0.0308
0.545··
256Mbf161.00×0.2498torch-compile
torch
0.2496
0.2500
1.07··

ReLUFwd

input: [*S]

dtype=bf16

  • hidden-state-prefillinput: [2048, 4096]
  • hidden-state-decodeinput: [1, 4096]
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
hidden-state-prefillbf161.06×0.00834torch-compile
torch
0.0088
0.00912
1.01··
hidden-state-decodebf161.03×0.00125torch-compile
torch
0.00128
0.00141
0.00328··

LeakyReLUFwd

input: [*S]

dtype=bf16

  • gan-featinput: [16, 256, 64, 64]
  • gan-feat-deepinput: [16, 512, 32, 32]
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
gan-featbf161.00×0.0160torch-compile
torch
0.0161
0.0161
2.1··
gan-feat-deepbf161.00×0.00883torch-compile
torch
0.00886
0.0089
1.9··

ELUFwd

input: [*S]

dtype=bf16

  • mlp-hiddeninput: [2048, 4096]
  • mlp-hidden-wideinput: [2048, 8192]
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
mlp-hiddenbf161.43×0.0109torch-compile
torch
0.0156
0.0172
3.08··
mlp-hidden-widebf161.50×0.0199torch-compile
torch
0.0298
0.0324
3.37··

SELUFwd

input: [*S]

dtype=bf16

  • snn-fcinput: [2048, 4096]
  • snn-fc-wideinput: [2048, 8192]
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
snn-fcbf161.45×0.0110torch-compile
torch
0.0159
0.0172
3.81··
snn-fc-widebf161.50×0.0202torch-compile
torch
0.0304
0.0324
4.15··

GELUFwd

input: [*S]

dtype=bf16

  • llama-8b-ffn-prefillinput: [2048, 14336]
  • llama-8b-ffn-decodeinput: [1, 14336]
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
llama-8b-ffn-prefillbf161.53×0.0312torch
torch-compile
0.0478
0.0548
4.71··
llama-8b-ffn-decodebf161.07×0.00144torch-compile
torch
0.00154
0.00179
0.0497··

SiLUFwd

input: [*S]

dtype=bf16

  • llama-8b-ffn-prefillinput: [2048, 14336]
  • llama-8b-ffn-decodeinput: [1, 14336]
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
llama-8b-ffn-prefillbf161.22×0.0273torch-compile
torch
0.0334
0.0373
5.37··
llama-8b-ffn-decodebf161.04×0.00144torch-compile
torch
0.0015
0.00208
0.0498··

MishFwd

input: [*S]

dtype=bf16

  • yolo-p3input: [16, 256, 80, 80]
  • yolo-p4input: [16, 512, 40, 40]
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
yolo-p3bf161.82×0.0349torch
torch-compile
0.0635
0.0736
3··
yolo-p4bf161.76×0.0185torch
torch-compile
0.0326
0.0380
2.83··

SigmoidFwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=bf16, f32
  • 256Minput: [16384, 16384]dtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
16Mbf161.02×0.0160torch-compile
torch
0.0163
0.0221
4.19··
f321.00×0.0309torch-compile
torch
0.0308
0.0311
2.17··
256Mbf161.04×0.2515torch-compile
torch
0.2614
0.3287
4.27··

TanhFwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=bf16, f32
  • 256Minput: [16384, 16384]dtype=f16, bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
16Mbf161.17×0.0174torch
torch-compile
0.0204
0.0227
0.965··
f321.00×0.0308torch
torch-compile
0.0308
0.0310
0.545··
256Mf161.16×0.2511torch
torch-compile
0.2912
0.3334
1.07··
bf161.17×0.2642torch
torch-compile
0.3091
0.3397
1.02··

HardsigmoidFwd

input: [*S]

dtype=bf16

  • mbv3-se-gateinput: [32, 240, 1, 1]
  • mbv3-se-gate-deepinput: [32, 960, 1, 1]
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
mbv3-se-gatebf161.05×0.00138torch-compile
torch
0.00144
0.00176
0.0168··
mbv3-se-gate-deepbf161.07×0.00147torch
torch-compile
0.00157
0.00157
0.0626··

HardswishFwd

input: [*S]

dtype=bf16

  • mbv3-stage2input: [32, 96, 56, 56]
  • mbv3-stage3input: [32, 240, 28, 28]
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
mbv3-stage2bf161.00×0.00986torch-compile
torch
0.00986
0.00998
3.91··
mbv3-stage3bf161.01×0.00678torch-compile
torch
0.00683
0.00698
3.55··

HardtanhFwd

input: [*S]

dtype=bf16

  • bounded-hiddeninput: [2048, 4096]
  • bounded-conv-featinput: [16, 256, 56, 56]
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
bounded-hiddenbf161.00×0.00883torch-compile
torch
0.0088
0.0103
0.95··
bounded-conv-featbf161.00×0.0125torch-compile
torch
0.0125
0.0150
1.02··

SoftplusFwd

input: [*S]

dtype=bf16

  • mlp-hiddeninput: [2048, 4096]
  • mlp-hidden-wideinput: [2048, 8192]
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
mlp-hiddenbf161.42×0.0117torch-compile
torch
0.0167
0.0236
3.58··
mlp-hidden-widebf161.47×0.0215torch-compile
torch
0.0315
0.0447
3.91··

PReLUFwd

input: [*S]weight: [*W]

dtype=bf16

  • cnn-featinput: [16, 256, 56, 56]weight: [256]
  • cnn-feat-deepinput: [16, 512, 28, 28]weight: [512]
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
cnn-featbf161.00×0.0127torch-compile
torch
0.0128
0.0479
2.02··
cnn-feat-deepbf161.78×0.00698torch-compile
torch
0.0124
0.0253
1.84··

DropoutFwd

input: [*S]

  • hidden-4kinput: [1024, 4096]dtype=f16, f32
  • hidden-10kinput: [1024, 10240]dtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
hidden-4kf161.97×0.00563torch-compile
torch
0.0111
0.0112
1.49··
f321.24×0.0089torch-compile
torch
0.0110
0.0129
0.943··
hidden-10kbf161.98×0.0116torch
torch-compile
0.0230
0.0230
1.81··

SiLUAndMulFwd

input: [M, 2 * N]

dtype=bf16

  • llama-8b-ffn-prefillinput: [2048, 28672]
  • llama-8b-ffn-decodeinput: [1, 28672]
  • qwen3-8b-swiglu-b32input: [32, 24576]
  • dsv4-flash-shared-4kinput: [4096, 4096]swiglu_limit=10

input: [M, 2 * N]scale: [M], f32

swiglu_limit=10dtype=bf16

  • dsv4-flash-routed-t1input: [6, 4096]scale: [6], f32
  • dsv4-flash-routed-4kinput: [24576, 4096]scale: [24576], f32
  • dsv4-flash-routed-32kinput: [196608, 4096]scale: [196608], f32
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
llama-8b-ffn-prefillbf161.05×0.0388flashinfer
torch-compile
torch-ref
0.0409
0.0424
0.1895
4.54··
llama-8b-ffn-decodebf161.03×0.00141torch-compile
flashinfer
torch-ref
0.00146
0.00166
0.00346
0.0611··
qwen3-8b-swiglu-b32bf161.02×0.00195torch-compile
flashinfer
torch-ref
0.00198
0.00221
0.00781
1.21··
dsv4-flash-shared-4kbf161.06×0.0126torch-compile
vllm
torch-ref
0.0134
0.0178
0.0813
5.31··
dsv4-flash-routed-t1bf161.07×0.00141torch-compile
vllm
torch-ref
0.0015
0.00218
0.0163
0.0785··
dsv4-flash-routed-4kbf161.09×0.0719torch-compile
vllm
torch-ref
0.0785
0.0944
0.8736
6.3··
dsv4-flash-routed-32kbf161.09×0.5660torch-compile
vllm
torch-ref
0.6187
0.7375
6.8707
6.4··

GELUAndMulFwd

input: [M, 2 * N]

dtype=bf16

  • llama-8b-ffn-prefillinput: [2048, 28672]
  • llama-8b-ffn-decodeinput: [1, 28672]
  • llama-8b-prefill-tanhinput: [2048, 28672]approximate=tanh
  • llama-8b-decode-tanhinput: [1, 28672]approximate=tanh
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
llama-8b-ffn-prefillbf161.35×0.0444flashinfer
torch-compile
torch-ref
0.0600
0.0610
0.2046
3.96··
llama-8b-ffn-decodebf161.01×0.00146torch-compile
flashinfer
torch-ref
0.00147
0.00243
0.00317
0.0591··
llama-8b-prefill-tanhbf161.04×0.0388flashinfer
torch-compile
torch-ref
0.0405
0.0516
0.1930
7.56··
llama-8b-decode-tanhbf161.07×0.00147torch-compile
flashinfer
torch-ref
0.00157
0.0017
0.00301
0.0975··

EqFwd

input: [*A]other: [*B]

  • hidden-state-prefillinput, other: [2048, 4096]dtype=bf16, f32
  • cnn-feat-broadcastinput: [16, 256, 56, 56]other: [256, 1, 1]dtype=bf16, f32
  • llama-7b-ffninput, other: [1024, 11008]dtype=bf16, f32
  • linear-biasinput: [1024, 4096]other: [1, 4096]dtype=bf16, f32
  • llama-7b-hiddeninput, other: [1024, 4096]dtype=f16
  • phi-2-ffninput, other: [1024, 10240]dtype=f16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
hidden-state-prefillbf161.00×0.0105torch-compile
torch
0.0105
0.0106
0.797··
f321.00×0.0174torch-compile
torch
0.0175
0.0175
0.481··
cnn-feat-broadcastbf161.00×0.00973torch-compile
torch
0.00976
0.0483
1.32··
f321.00×0.0150torch-compile
torch
0.0151
0.0471
0.854··
llama-7b-ffnbf161.00×0.0135torch-compile
torch
0.0135
0.0135
0.837··
f321.00×0.0230torch-compile
torch
0.0231
0.0231
0.489··
linear-biasbf161.87×0.00429torch-compile
torch
0.00803
0.0152
0.978··
f321.36×0.00614torch-compile
torch
0.00835
0.0149
0.683··
llama-7b-hiddenf161.01×0.00621torch
torch-compile
0.00624
0.00858
0.676··
phi-2-ffnf161.00×0.0126torch-compile
torch
0.0127
0.0127
0.83··

NeFwd

input: [*A]other: [*B]

  • hidden-state-prefillinput, other: [2048, 4096]dtype=bf16, f32
  • cnn-feat-broadcastinput: [16, 256, 56, 56]other: [256, 1, 1]dtype=bf16, f32
  • llama-7b-ffninput, other: [1024, 11008]dtype=bf16, f32
  • linear-biasinput: [1024, 4096]other: [1, 4096]dtype=bf16, f32
  • llama-7b-hiddeninput, other: [1024, 4096]dtype=f16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
hidden-state-prefillbf161.00×0.0105torch
torch-compile
0.0106
0.0106
0.797··
f321.00×0.0174torch-compile
torch
0.0175
0.0175
0.481··
cnn-feat-broadcastbf161.00×0.00976torch-compile
torch
0.00979
0.0482
1.32··
f321.00×0.0150torch-compile
torch
0.0151
0.0472
0.854··
llama-7b-ffnbf161.00×0.0135torch
torch-compile
0.0135
0.0135
0.837··
f321.00×0.0230torch-compile
torch
0.0231
0.0231
0.489··
linear-biasbf161.01×0.00429torch-compile
torch
0.00432
0.0151
0.978··
f321.01×0.00618torch-compile
torch
0.00624
0.0149
0.679··
llama-7b-hiddenf161.00×0.00621torch-compile
torch
0.00621
0.00624
0.676··

GtFwd

input: [*A]other: [*B]

  • hidden-state-prefillinput, other: [2048, 4096]dtype=bf16, f32
  • cnn-feat-broadcastinput: [16, 256, 56, 56]other: [256, 1, 1]dtype=bf16, f32
  • llama-7b-ffninput, other: [1024, 11008]dtype=bf16, f32
  • linear-biasinput: [1024, 4096]other: [1, 4096]dtype=bf16, f32
  • llama-7b-hiddeninput, other: [1024, 4096]dtype=f16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
hidden-state-prefillbf161.00×0.0105torch
torch-compile
0.0106
0.0156
0.797··
f321.00×0.0174torch-compile
torch
0.0174
0.0175
0.481··
cnn-feat-broadcastbf161.00×0.00976torch-compile
torch
0.00976
0.0484
1.32··
f321.00×0.0150torch-compile
torch
0.0151
0.0473
0.854··
llama-7b-ffnbf161.00×0.0135torch
torch-compile
0.0135
0.0135
0.837··
f321.00×0.0231torch-compile
torch
0.0231
0.0232
0.489··
linear-biasbf161.87×0.00429torch-compile
torch
0.00803
0.0152
0.978··
f321.01×0.00618torch-compile
torch
0.00621
0.0150
0.679··
llama-7b-hiddenf161.00×0.00621torch
torch-compile
0.00621
0.00621
0.676··

GeFwd

input: [*A]other: [*B]

  • hidden-state-prefillinput, other: [2048, 4096]dtype=bf16, f32
  • cnn-feat-broadcastinput: [16, 256, 56, 56]other: [256, 1, 1]dtype=bf16, f32
  • llama-7b-ffninput, other: [1024, 11008]dtype=bf16, f32
  • linear-biasinput: [1024, 4096]other: [1, 4096]dtype=bf16, f32
  • llama-7b-hiddeninput, other: [1024, 4096]dtype=f16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
hidden-state-prefillbf161.00×0.0105torch-compile
torch
0.0105
0.0106
0.797··
f321.00×0.0174torch-compile
torch
0.0174
0.0174
0.482··
cnn-feat-broadcastbf161.00×0.00976torch-compile
torch
0.00974
0.0471
1.32··
f321.00×0.0150torch-compile
torch
0.0151
0.0461
0.854··
llama-7b-ffnbf161.00×0.0134torch-compile
torch
0.0135
0.0135
0.839··
f321.00×0.0230torch-compile
torch
0.0230
0.0231
0.49··
linear-biasbf161.01×0.00429torch-compile
torch
0.00432
0.0148
0.978··
f321.01×0.00618torch-compile
torch
0.00621
0.0147
0.679··
llama-7b-hiddenf161.00×0.00621torch-compile
torch
0.00621
0.00624
0.676··

LtFwd

input: [*A]other: [*B]

  • hidden-state-prefillinput, other: [2048, 4096]dtype=bf16, f32
  • cnn-feat-broadcastinput: [16, 256, 56, 56]other: [256, 1, 1]dtype=bf16, f32
  • llama-7b-ffninput, other: [1024, 11008]dtype=bf16, f32
  • linear-biasinput: [1024, 4096]other: [1, 4096]dtype=bf16, f32
  • llama-7b-hiddeninput, other: [1024, 4096]dtype=f16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
hidden-state-prefillbf161.00×0.0105torch-compile
torch
0.0105
0.0106
0.797··
f321.00×0.0175torch-compile
torch
0.0174
0.0175
0.48··
cnn-feat-broadcastbf161.00×0.00973torch-compile
torch
0.00976
0.0500
1.32··
f321.00×0.0150torch-compile
torch
0.0151
0.0486
0.854··
llama-7b-ffnbf161.00×0.0135torch-compile
torch
0.0135
0.0135
0.837··
f321.00×0.0231torch-compile
torch
0.0231
0.0231
0.489··
linear-biasbf161.01×0.00426torch-compile
torch
0.00432
0.0157
0.985··
f321.01×0.00618torch-compile
torch
0.00621
0.0154
0.679··
llama-7b-hiddenf161.00×0.00621torch
torch-compile
0.00621
0.00621
0.676··

LeFwd

input: [*A]other: [*B]

  • hidden-state-prefillinput, other: [2048, 4096]dtype=bf16, f32
  • cnn-feat-broadcastinput: [16, 256, 56, 56]other: [256, 1, 1]dtype=bf16, f32
  • llama-7b-ffninput, other: [1024, 11008]dtype=bf16, f32
  • linear-biasinput: [1024, 4096]other: [1, 4096]dtype=bf16, f32
  • llama-7b-hiddeninput, other: [1024, 4096]dtype=f16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
hidden-state-prefillbf161.00×0.0105torch-compile
torch
0.0105
0.0106
0.797··
f321.00×0.0174torch-compile
torch
0.0174
0.0174
0.482··
cnn-feat-broadcastbf161.00×0.00973torch-compile
torch
0.00976
0.0499
1.32··
f321.00×0.0150torch-compile
torch
0.0151
0.0486
0.854··
llama-7b-ffnbf161.00×0.0134torch-compile
torch
0.0135
0.0135
0.839··
f321.00×0.0230torch-compile
torch
0.0230
0.0231
0.49··
linear-biasbf161.01×0.00429torch-compile
torch
0.00432
0.0157
0.978··
f321.01×0.00618torch-compile
torch
0.00621
0.0154
0.679··
llama-7b-hiddenf161.00×0.00621torch
torch-compile
0.00621
0.00622
0.676··

IsnanFwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=bf16, f32
  • 256Minput: [16384, 16384]dtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
16Mbf161.00×0.0122torch-compile
torch
0.0122
0.0127
1.37··
f321.00×0.0192torch-compile
torch
0.0192
0.0193
0.874··
256Mbf161.08×0.1811torch-compile
torch
0.1961
0.2017
1.48··

IsinfFwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=bf16, f32
  • 256Minput: [16384, 16384]dtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
16Mbf161.02×0.0120torch-compile
torch
0.0123
0.0299
1.39··
f321.00×0.0192torch-compile
torch
0.0192
0.0533
0.872··
256Mbf161.09×0.1809torch-compile
torch
0.1979
0.4533
1.48··

IsfiniteFwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=bf16, f32
  • 256Minput: [16384, 16384]dtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
16Mbf160.99×0.0122torch-compile
torch
0.0121
0.0625
1.38··
f321.00×0.0192torch-compile
torch
0.0192
0.0933
0.874··
256Mbf161.07×0.1811torch-compile
torch
0.1943
0.9216
1.48··

LogicalAndFwd

input: [*A]other: [*B]

  • hidden-state-prefillinput, other: [2048, 4096]dtype=bool, bf16, f32
  • cnn-feat-broadcastinput: [16, 256, 56, 56]other: [256, 1, 1]dtype=bool, bf16, f32
  • llama-7b-ffninput, other: [1024, 11008]dtype=bool, bf16, f32
  • linear-biasinput: [1024, 4096]other: [1, 4096]dtype=bool, bf16, f32
  • llama-7b-hiddeninput, other: [1024, 4096]dtype=f16
  • phi-2-ffninput, other: [1024, 10240]dtype=f16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
hidden-state-prefillbool1.17×0.00691torch-compile
torch
0.0081
0.0096
1.21··
bf161.00×0.0106torch-compile
torch
0.0106
0.0107
2.38··
f321.00×0.0174torch
torch-compile
0.0175
0.0175
1.44··
cnn-feat-broadcastbool1.36×0.00704torch-compile
torch
0.00957
0.0449
1.82··
bf161.01×0.00973torch-compile
torch
0.00982
0.0475
3.96··
f321.00×0.0150torch-compile
torch
0.0151
0.0456
2.57··
llama-7b-ffnbool1.17×0.00874torch-compile
torch
0.0102
0.0124
1.29··
bf161.00×0.0134torch-compile
torch
0.0135
0.0136
2.52··
f321.00×0.0230torch-compile
torch
0.0231
0.0231
1.47··
linear-biasbool2.67×0.0031torch-compile
torch
0.00829
0.0141
1.35··
bf161.87×0.00438torch-compile
torch
0.00819
0.0148
2.87··
f321.01×0.00618torch-compile
torch
0.00621
0.0145
2.04··
llama-7b-hiddenf161.00×0.00621torch-compile
torch
0.00621
0.00624
2.03··
phi-2-ffnf161.00×0.0126torch-compile
torch
0.0126
0.0127
2.49··

LogicalOrFwd

input: [*A]other: [*B]

  • hidden-state-prefillinput, other: [2048, 4096]dtype=bool, bf16, f32
  • cnn-feat-broadcastinput: [16, 256, 56, 56]other: [256, 1, 1]dtype=bool, bf16, f32
  • llama-7b-ffninput, other: [1024, 11008]dtype=bool, bf16, f32
  • linear-biasinput: [1024, 4096]other: [1, 4096]dtype=bool, bf16, f32
  • llama-7b-hiddeninput, other: [1024, 4096]dtype=f16
  • phi-2-ffninput, other: [1024, 10240]dtype=f16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
hidden-state-prefillbool1.04×0.00691torch-compile
torch
0.0072
0.00784
1.21··
bf161.00×0.0106torch-compile
torch
0.0106
0.0106
2.38··
f321.00×0.0174torch-compile
torch
0.0174
0.0175
1.44··
cnn-feat-broadcastbool1.38×0.00704torch-compile
torch
0.00973
0.0440
1.82··
bf161.00×0.00976torch-compile
torch
0.00979
0.0483
3.95··
f321.00×0.0150torch-compile
torch
0.0151
0.0459
2.57··
llama-7b-ffnbool1.02×0.00872torch-compile
torch
0.00893
0.00986
1.29··
bf161.00×0.0134torch-compile
torch
0.0135
0.0135
2.52··
f321.00×0.0230torch-compile
torch
0.0231
0.0231
1.47··
linear-biasbool1.36×0.0031torch-compile
torch
0.00422
0.0138
1.35··
bf161.02×0.00426torch-compile
torch
0.00435
0.0151
2.96··
f321.36×0.00614torch-compile
torch
0.00835
0.0145
2.05··
llama-7b-hiddenf161.01×0.00618torch-compile
torch
0.00621
0.00624
2.04··
phi-2-ffnf161.00×0.0126torch-compile
torch
0.0127
0.0127
2.49··

LogicalNotFwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=bool, f16, f32
  • 256Minput: [16384, 16384]dtype=bool
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
16Mbool1.43×0.00826torch-compile
torch
0.0118
0.0125
2.03··
f161.00×0.0122torch-compile
torch
0.0121
0.0123
1.38··
f321.00×0.0193torch-compile
torch
0.0193
0.0194
0.871··
256Mbool1.33×0.1247torch-compile
torch
0.1654
0.1825
2.15··

BitwiseAndFwd

input: [*A]other: [*B]

  • hidden-state-prefillinput, other: [2048, 4096]dtype=bool, i32, i64
  • cnn-feat-broadcastinput: [16, 256, 56, 56]other: [256, 1, 1]dtype=bool, i32, i64
  • llama-7b-ffninput, other: [1024, 11008]dtype=bool, i32, i64
  • linear-biasinput: [1024, 4096]other: [1, 4096]dtype=bool, i32, i64
  • llama-7b-hiddeninput, other: [1024, 4096]dtype=i32
  • phi-2-ffninput, other: [1024, 10240]dtype=i32
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
hidden-state-prefillbool1.16×0.00694torch-compile
torch
0.00806
0.00963
1.21··
i321.00×0.0225torch-compile
torch
0.0225
0.0225
0.373··
i641.01×0.0443torch
torch-compile
0.0445
0.0448
0.189··
cnn-feat-broadcastbool1.34×0.00714torch-compile
torch
0.00957
0.0449
1.8··
i321.00×0.0235torch-compile
torch
0.0235
0.0480
0.547··
i641.03×0.0471torch-compile
torch
0.0484
0.0564
0.273··
llama-7b-ffnbool1.17×0.00874torch-compile
torch
0.0102
0.0124
1.29··
i321.00×0.0298torch
torch-compile
0.0298
0.0298
0.379··
i641.00×0.0604torch-compile
torch
0.0604
0.0609
0.186··
linear-biasbool1.47×0.0031torch-compile
torch
0.00458
0.0141
1.35··
i321.12×0.00835torch-compile
torch
0.00931
0.0148
0.502··
i641.02×0.0158torch-compile
torch
0.0161
0.0178
0.265··
llama-7b-hiddeni321.00×0.0121torch-compile
torch
0.0121
0.0122
0.346··
phi-2-ffni321.00×0.0278torch-compile
torch
0.0279
0.0279
0.377··

BitwiseOrFwd

input: [*A]other: [*B]

  • hidden-state-prefillinput, other: [2048, 4096]dtype=bool, i32, i64
  • cnn-feat-broadcastinput: [16, 256, 56, 56]other: [256, 1, 1]dtype=bool, i32, i64
  • llama-7b-ffninput, other: [1024, 11008]dtype=bool, i32, i64
  • linear-biasinput: [1024, 4096]other: [1, 4096]dtype=bool, i32, i64
  • llama-7b-hiddeninput, other: [1024, 4096]dtype=i32
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
hidden-state-prefillbool1.04×0.00694torch-compile
torch
0.00723
0.00784
1.21··
i321.00×0.0225torch-compile
torch
0.0225
0.0225
0.373··
i641.00×0.0442torch-compile
torch
0.0442
0.0446
0.19··
cnn-feat-broadcastbool1.37×0.00711torch-compile
torch
0.00976
0.0439
1.81··
i321.00×0.0235torch-compile
torch
0.0235
0.0488
0.546··
i641.01×0.0475torch-compile
torch
0.0479
0.0564
0.27··
llama-7b-ffnbool1.03×0.00872torch-compile
torch
0.00896
0.00986
1.29··
i321.00×0.0298torch-compile
torch
0.0298
0.0299
0.379··
i641.00×0.0604torch-compile
torch
0.0603
0.0606
0.187··
linear-biasbool1.36×0.0031torch-compile
torch
0.00422
0.0138
1.35··
i321.12×0.00832torch-compile
torch
0.00931
0.0148
0.504··
i641.01×0.0159torch-compile
torch
0.0160
0.0178
0.264··
llama-7b-hiddeni321.00×0.0121torch-compile
torch
0.0121
0.0122
0.347··

BitwiseXorFwd

input: [*A]other: [*B]

  • hidden-state-prefillinput, other: [2048, 4096]dtype=bool, i32, i64
  • cnn-feat-broadcastinput: [16, 256, 56, 56]other: [256, 1, 1]dtype=bool, i32, i64
  • llama-7b-ffninput, other: [1024, 11008]dtype=bool, i32, i64
  • linear-biasinput: [1024, 4096]other: [1, 4096]dtype=bool, i32, i64
  • llama-7b-hiddeninput, other: [1024, 4096]dtype=i32
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
hidden-state-prefillbool1.16×0.00694torch-compile
torch
0.00806
0.00966
1.21··
i321.00×0.0225torch-compile
torch
0.0225
0.0225
0.372··
i641.00×0.0440torch-compile
torch
0.0442
0.0446
0.19··
cnn-feat-broadcastbool1.35×0.0071torch-compile
torch
0.00957
0.0448
1.81··
i321.00×0.0235torch-compile
torch
0.0235
0.0487
0.546··
i641.01×0.0471torch-compile
torch
0.0478
0.0559
0.273··
llama-7b-ffnbool1.17×0.00874torch-compile
torch
0.0102
0.0124
1.29··
i321.00×0.0298torch-compile
torch
0.0298
0.0298
0.378··
i641.00×0.0604torch-compile
torch
0.0604
0.0609
0.187··
linear-biasbool2.67×0.0031torch-compile
torch
0.00829
0.0141
1.35··
i321.12×0.00832torch-compile
torch
0.00931
0.0148
0.504··
i641.01×0.0158torch-compile
torch
0.0160
0.0178
0.265··
llama-7b-hiddeni321.00×0.0121torch-compile
torch
0.0121
0.0122
0.346··

BitwiseNotFwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=i32, i64
  • 256Minput: [16384, 16384]dtype=i32
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
16Mi321.00×0.0308torch-compile
torch
0.0308
0.0308
0.545··
i641.01×0.0623torch-compile
torch
0.0629
0.0648
0.269··
256Mi321.01×0.4998torch-compile
torch
0.5041
0.5042
0.537··

WhereFwd

condition: [*C], boolinput: [*A]other: [*B]

  • 16Mcondition: [4096, 4096], boolinput, other: [4096, 4096]dtype=bf16, f32
  • 256Mcondition: [16384, 16384], boolinput, other: [16384, 16384]dtype=bf16
  • attn-causal-maskcondition: [512, 512], boolinput: [8, 16, 512, 512]other: []dtype=bf16, f32
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
16Mbf161.00×0.0263torch-compile
torch
0.0263
0.0263
0.638··
f320.99×0.0482torch
torch-compile
0.0478
0.0478
0.348··
256Mbf161.00×0.4201torch-compile
torch
0.4201
0.4201
0.639··
attn-causal-maskbf161.00×0.0311torch-compile
torch
0.0311
0.1141
1.08··
f320.99×0.0627torch-compile
torch
0.0622
0.1303
0.535··

ClampFwd

input: [*A]min: [*L]max: [*U]

  • 16Minput, min, max: [4096, 4096]dtype=bf16, f32
  • 256Minput, min, max: [16384, 16384]dtype=bf16
  • cnn-feat-channel-boundsinput: [16, 256, 56, 56]min, max: [256, 1, 1]dtype=bf16, f32

input: [*A]min: [*L]

  • 16M-min-onlyinput, min: [4096, 4096]dtype=bf16, f32
  • 256M-min-onlyinput, min: [16384, 16384]dtype=bf16

input: [*A]max: [*U]

  • 16M-max-onlyinput, max: [4096, 4096]dtype=bf16, f32
  • 256M-max-onlyinput, max: [16384, 16384]dtype=bf16

input: [*A]

  • 16M-numberinput: [4096, 4096]min=-0.5max=0.5dtype=bf16, f32
  • 256M-numberinput: [16384, 16384]min=-0.5max=0.5dtype=bf16
  • 16M-number-min-onlyinput: [4096, 4096]min=-0.5dtype=f16
  • 16M-number-max-onlyinput: [4096, 4096]max=0.5dtype=f16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
16Mbf161.00×0.0299torch-compile
torch
0.0299
0.0304
0.561··
f321.00×0.0602torch-compile
torch
0.0602
0.0602
0.279··
256Mbf161.00×0.4777torch
torch-compile
0.4771
0.4777
0.562··
cnn-feat-channel-boundsbf161.00×0.0125torch-compile
torch
0.0125
0.0567
1.02··
f321.00×0.0236torch-compile
torch
0.0235
0.0563
0.545··
16M-min-onlybf161.00×0.0227torch-compile
torch
0.0227
0.0231
0.741··
f321.00×0.0444torch-compile
torch
0.0442
0.0446
0.378··
256M-min-onlybf161.00×0.3630torch
torch-compile
0.3618
0.3632
0.739··
16M-max-onlybf161.00×0.0227torch-compile
torch
0.0227
0.0231
0.741··
f321.00×0.0443torch
torch-compile
0.0444
0.0475
0.379··
256M-max-onlybf161.00×0.3631torch
torch-compile
0.3618
0.3629
0.739··
16M-numberbf161.00×0.0160torch-compile
torch
0.0160
0.0192
1.05··
f321.00×0.0308torch-compile
torch
0.0307
0.0310
0.544··
256M-numberbf161.00×0.2506torch-compile
torch
0.2500
0.2937
1.07··
16M-number-min-onlyf161.00×0.0160torch-compile
torch
0.0160
0.0163
1.05··
16M-number-max-onlyf161.00×0.0159torch-compile
torch
0.0160
0.0163
1.05··

MaskedFillFwd

input: [*A]mask: [*M], boolvalue: []

  • 16Minput: [4096, 4096]mask: [4096, 4096], boolvalue: []dtype=bf16, f32
  • 256Minput: [16384, 16384]mask: [16384, 16384], boolvalue: []dtype=bf16
  • attn-padding-maskinput: [8, 16, 512, 512]mask: [8, 1, 1, 512], boolvalue: []dtype=bf16, f32

input: [*A]mask: [*M], bool

value=0

  • 16M-numberinput: [4096, 4096]mask: [4096, 4096], booldtype=bf16, f32
  • 256M-numberinput: [16384, 16384]mask: [16384, 16384], booldtype=bf16
  • attn-padding-numberinput: [8, 16, 512, 512]mask: [8, 1, 1, 512], booldtype=bf16, f32

input: [*A]mask: [*M]

  • attn-padding-boolinput: [8, 16, 512, 512]mask: [8, 1, 1, 512]value=truedtype=bool
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
16Mbf161.00×0.0192torch-compile
torch
0.0192
0.0380
0.875··
f321.00×0.0338torch-compile
torch
0.0337
0.0709
0.496··
256Mbf161.00×0.3057torch-compile
torch
0.3058
0.5699
0.878··
attn-padding-maskbf161.00×0.0311torch-compile
torch
0.0312
0.1503
1.08··
f321.00×0.0622torch-compile
torch
0.0625
0.1930
0.539··
16M-numberbf161.00×0.0191torch-compile
torch
0.0192
0.0356
0.877··
f321.16×0.0339torch-compile
torch
0.0394
0.0685
0.496··
256M-numberbf161.00×0.3057torch-compile
torch
0.3058
0.5681
0.878··
attn-padding-numberbf161.00×0.0311torch-compile
torch
0.0312
0.1490
1.08··
f321.00×0.0623torch-compile
torch
0.0624
0.1903
0.539··
attn-padding-boolbool1.39×0.0166torch-compile
torch
0.0230
0.1305
2.02··

NanToNumFwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=bf16, f32
  • 256Minput: [16384, 16384]dtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
16Mbf161.02×0.0161torch-compile
torch
0.0164
0.0172
2.09··
f321.00×0.0308torch-compile
torch
0.0308
0.0308
1.09··
256Mbf161.03×0.2513torch-compile
torch
0.2576
0.2734
2.14··

AlibiFwd

num_heads=32dtype=bf16

  • mpt-7b-2kseq_len=2048
  • mpt-7b-4kseq_len=4096
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
mpt-7b-2kbf161.35×0.0640torch-compile
torch-ref
0.0865
0.5919
6.29··
mpt-7b-4kbf161.22×0.2805torch-compile
torch-ref
0.3423
2.6317
5.74··

SinusoidalFwd

d_model=4096dtype=bf16

  • transformer-2k-4kseq_len=2048
  • transformer-4k-4kseq_len=4096
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
transformer-2k-4kbf164.12×0.0135torch-compile
torch-ref
0.0557
0.1050
0.932··
transformer-4k-4kbf164.46×0.0250torch-compile
torch-ref
0.1115
0.1988
1.01··