Skip to content

Elementwise

70 ops, 527 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=f16, 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-prefillf161.00×0.0147torch-compile
torch
0.0148
0.0149
0.5776%mem
bf161.00×0.0147torch-compile
torch
0.0148
0.0149
0.5776%mem
f321.00×0.0263torch-compile
torch
0.0264
0.0265
0.31985%mem
cnn-feat-broadcastf161.00×0.0146torch-compile
torch
0.0146
0.0462
0.8878%mem
bf161.00×0.0146torch-compile
torch
0.0146
0.0467
0.88278%mem
f321.00×0.0265torch-compile
torch
0.0265
0.0500
0.48586%mem
llama-7b-ffnf161.00×0.0191torch-compile
torch
0.0191
0.0192
0.59179%mem
bf161.00×0.0191torch-compile
torch
0.0191
0.0193
0.5979%mem
f321.00×0.0341torch-compile
torch
0.0340
0.0341
0.3388%mem
linear-biasf161.01×0.00592torch-compile
torch
0.00598
0.0151
0.70963%mem
bf161.02×0.00589torch-compile
torch
0.00598
0.0153
0.71263%mem
f321.11×0.0102torch-compile
torch
0.0113
0.0166
0.41173%mem

SubFwd

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

  • hidden-state-prefillinput, other: [2048, 4096]dtype=f16, bf16, f32
  • cnn-feat-broadcastinput: [16, 256, 56, 56]other: [256, 1, 1]dtype=f16, bf16, f32
  • llama-7b-ffninput, other: [1024, 11008]dtype=f16, bf16, f32
  • linear-biasinput: [1024, 4096]other: [1, 4096]dtype=f16, 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-prefillf161.00×0.0147torch-compile
torch
0.0148
0.0149
0.5776%mem
bf161.00×0.0147torch-compile
torch
0.0147
0.0149
0.5776%mem
f321.00×0.0263torch-compile
torch
0.0263
0.0264
0.31985%mem
cnn-feat-broadcastf161.00×0.0146torch-compile
torch
0.0146
0.0463
0.88178%mem
bf161.00×0.0146torch-compile
torch
0.0146
0.0468
0.88278%mem
f321.00×0.0264torch-compile
torch
0.0265
0.0499
0.48686%mem
llama-7b-ffnf161.00×0.0191torch-compile
torch
0.0191
0.0192
0.59179%mem
bf161.00×0.0191torch-compile
torch
0.0191
0.0192
0.59179%mem
f321.00×0.0341torch-compile
torch
0.0341
0.0341
0.33188%mem
linear-biasf161.02×0.00589torch-compile
torch
0.00598
0.0151
0.71263%mem
bf161.02×0.00589torch-compile
torch
0.00602
0.0153
0.71263%mem
f321.01×0.0102torch-compile
torch
0.0103
0.0166
0.41173%mem
llama-7b-hiddenf161.00×0.00853torch
torch-compile
0.00854
0.00858
0.49266%mem
phi-2-ffnf161.00×0.0179torch-compile
torch
0.0179
0.0181
0.58778%mem
phi-2-ffn-biasf161.01×0.0123torch-compile
torch
0.0124
0.0336
0.85376%mem
llama-7b-ffn-biasf161.00×0.0132torch-compile
torch
0.0132
0.0359
0.85776%mem

MulFwd

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

  • hidden-state-prefillinput, other: [2048, 4096]dtype=f16, bf16, f32
  • cnn-feat-broadcastinput: [16, 256, 56, 56]other: [256, 1, 1]dtype=f16, bf16, f32
  • llama-7b-ffninput, other: [1024, 11008]dtype=f16, bf16, f32
  • linear-biasinput: [1024, 4096]other: [1, 4096]dtype=f16, 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-prefillf161.00×0.0148torch-compile
torch
0.0148
0.0149
0.56976%mem
bf161.00×0.0147torch-compile
torch
0.0148
0.0149
0.5776%mem
f321.00×0.0264torch
torch-compile
0.0264
0.0264
0.31885%mem
cnn-feat-broadcastf161.00×0.0146torch-compile
torch
0.0146
0.0459
0.88278%mem
bf161.00×0.0146torch-compile
torch
0.0146
0.0463
0.88278%mem
f321.00×0.0264torch-compile
torch
0.0264
0.0502
0.48786%mem
llama-7b-ffnf161.00×0.0191torch-compile
torch
0.0191
0.0193
0.5979%mem
bf161.00×0.0191torch-compile
torch
0.0191
0.0192
0.59179%mem
f321.00×0.0340torch
torch-compile
0.0341
0.0341
0.33188%mem
linear-biasf161.02×0.00589torch-compile
torch
0.00598
0.0151
0.71263%mem
bf161.02×0.00589torch-compile
torch
0.00598
0.0152
0.71263%mem
f321.01×0.0102torch-compile
torch
0.0103
0.0166
0.4173%mem
llama-7b-hiddenf161.00×0.00851torch
torch-compile
0.00854
0.00858
0.49366%mem
phi-2-ffnf161.00×0.0179torch-compile
torch
0.0178
0.0181
0.58778%mem
phi-2-ffn-biasf161.01×0.0123torch-compile
torch
0.0124
0.0336
0.85376%mem
llama-7b-ffn-biasf161.00×0.0132torch-compile
torch
0.0132
0.0357
0.85776%mem

DivFwd

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

  • hidden-state-prefillinput, other: [2048, 4096]dtype=f16, bf16, f32
  • cnn-feat-broadcastinput: [16, 256, 56, 56]other: [256, 1, 1]dtype=f16, bf16, f32
  • llama-7b-ffninput, other: [1024, 11008]dtype=f16, bf16, f32
  • linear-biasinput: [1024, 4096]other: [1, 4096]dtype=f16, 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-prefillf161.00×0.0150torch-compile
torch
0.0150
0.0156
0.5675%mem
bf161.00×0.0150torch-compile
torch
0.0150
0.0156
0.55874%mem
f321.00×0.0265torch-compile
torch
0.0264
0.0266
0.31784%mem
cnn-feat-broadcastf161.00×0.0147torch-compile
torch
0.0147
0.0512
0.87678%mem
bf161.00×0.0148torch-compile
torch
0.0147
0.0517
0.87177%mem
f321.00×0.0266torch-compile
torch
0.0266
0.0534
0.48386%mem
llama-7b-ffnf161.00×0.0187torch-compile
torch
0.0187
0.0192
0.60380%mem
bf161.00×0.0187torch-compile
torch
0.0188
0.0193
0.60280%mem
f321.00×0.0346torch-compile
torch
0.0345
0.0347
0.32687%mem
linear-biasf161.00×0.00621torch-compile
torch
0.00621
0.0165
0.67660%mem
bf160.98×0.00627torch-compile
torch
0.00618
0.0166
0.66959%mem
f321.00×0.0103torch-compile
torch
0.0102
0.0175
0.40873%mem
llama-7b-hiddenf161.01×0.00874torch-compile
torch
0.0088
0.00902
0.4864%mem
phi-2-ffnf161.00×0.0177torch-compile
torch
0.0178
0.0183
0.59179%mem
phi-2-ffn-biasf161.00×0.0125torch-compile
torch
0.0125
0.0366
0.8475%mem
llama-7b-ffn-biasf161.01×0.0132torch-compile
torch
0.0133
0.0391
0.85276%mem

FloorDivideFwd

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

  • hidden-state-prefillinput, other: [2048, 4096]dtype=f16, bf16, f32
  • cnn-feat-broadcastinput: [16, 256, 56, 56]other: [256, 1, 1]dtype=f16, bf16, f32
  • llama-7b-ffninput, other: [1024, 11008]dtype=f16, bf16, f32
  • linear-biasinput: [1024, 4096]other: [1, 4096]dtype=f16, 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-prefillf161.01×0.0150torch-compile
torch
0.0152
0.0485
1.1275%mem
bf161.01×0.0150torch-compile
torch
0.0152
0.0504
1.1275%mem
f321.00×0.0267torch-compile
torch
0.0266
0.0475
0.62984%mem
cnn-feat-broadcastf161.06×0.0149torch-compile
torch
0.0158
0.1115
1.7277%mem
bf161.06×0.0150torch-compile
torch
0.0160
0.1140
1.7176%mem
f320.98×0.0271torch-compile
torch
0.0266
0.1016
0.94884%mem
llama-7b-ffnf161.01×0.0187torch-compile
torch
0.0188
0.0637
1.2180%mem
bf161.00×0.0187torch-compile
torch
0.0188
0.0663
1.2180%mem
f321.00×0.0348torch-compile
torch
0.0346
0.0620
0.64886%mem
linear-biasf161.07×0.00613torch-compile
torch
0.00653
0.0364
1.3761%mem
bf161.07×0.00618torch-compile
torch
0.00659
0.0372
1.3660%mem
f320.99×0.0104torch-compile
torch
0.0103
0.0329
0.80972%mem
llama-7b-hiddenf161.01×0.0087torch-compile
torch
0.00883
0.0264
0.96464%mem
phi-2-ffnf161.01×0.0177torch-compile
torch
0.0179
0.0595
1.1979%mem

RemainderFwd

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

  • hidden-state-prefillinput, other: [2048, 4096]dtype=f16, bf16, f32
  • cnn-feat-broadcastinput: [16, 256, 56, 56]other: [256, 1, 1]dtype=f16, bf16, f32
  • llama-7b-ffninput, other: [1024, 11008]dtype=f16, bf16, f32
  • linear-biasinput: [1024, 4096]other: [1, 4096]dtype=f16, 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-prefillf161.01×0.0150torch-compile
torch
0.0153
0.0180
2.2374%mem
bf161.02×0.0151torch-compile
torch
0.0154
0.0185
2.2374%mem
f321.00×0.0268torch-compile
torch
0.0269
0.0272
1.2583%mem
cnn-feat-broadcastf161.15×0.0156torch-compile
torch
0.0180
0.0623
3.373%mem
bf161.18×0.0158torch-compile
torch
0.0187
0.0645
3.2472%mem
f320.97×0.0275torch-compile
torch
0.0267
0.0644
1.8783%mem
llama-7b-ffnf161.00×0.0188torch-compile
torch
0.0188
0.0231
2.480%mem
bf161.01×0.0188torch-compile
torch
0.0189
0.0238
2.480%mem
f321.00×0.0349torch-compile
torch
0.0349
0.0355
1.2986%mem
linear-biasf161.18×0.0063torch-compile
torch
0.00746
0.0202
2.6659%mem
bf161.20×0.0064torch-compile
torch
0.00768
0.0208
2.6258%mem
f321.18×0.0106torch-compile
torch
0.0125
0.0206
1.5971%mem
llama-7b-hiddenf161.03×0.0088torch-compile
torch
0.00902
0.0106
1.9164%mem
phi-2-ffnf161.01×0.0178torch-compile
torch
0.0180
0.0217
2.3679%mem

PowFwd

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

  • hidden-state-prefillinput, exponent: [2048, 4096]dtype=f16, bf16, f32
  • cnn-feat-broadcastinput: [16, 256, 56, 56]exponent: [256, 1, 1]dtype=f16, bf16, f32
  • llama-7b-ffninput, exponent: [1024, 11008]dtype=f16, bf16, f32
  • linear-biasinput: [1024, 4096]exponent: [1, 4096]dtype=f16, 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-prefillf161.59×0.0232torch
torch-compile
0.0370
0.0437
0.36248%mem
bf161.59×0.0237torch
torch-compile
0.0376
0.0449
0.35447%mem
f321.33×0.0279torch
torch-compile
0.0372
0.0420
0.380%mem
cnn-feat-broadcastf161.30×0.0470torch-compile
torch
0.0613
0.0943
0.27324%mem
bf161.30×0.0474torch-compile
torch
0.0614
0.0954
0.27124%mem
f321.19×0.0493torch-compile
torch
0.0588
0.0939
0.2646%mem
llama-7b-ffnf161.63×0.0298torch
torch-compile
0.0485
0.0579
0.37850%mem
bf161.62×0.0307torch
torch-compile
0.0496
0.0594
0.36849%mem
f321.34×0.0365torch
torch-compile
0.0487
0.0550
0.30982%mem
linear-biasf161.33×0.0177torch-compile
torch
0.0234
0.0304
0.23721%mem
bf161.34×0.0178torch-compile
torch
0.0238
0.0308
0.23621%mem
f321.27×0.0179torch-compile
torch
0.0227
0.0297
0.23442%mem
llama-7b-hiddenf161.54×0.0131torch
torch-compile
0.0202
0.0253
0.3243%mem
phi-2-ffnf161.61×0.0283torch
torch-compile
0.0456
0.0541
0.37149%mem

MaximumFwd

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

  • hidden-state-prefillinput, other: [2048, 4096]dtype=f16, bf16, f32
  • cnn-feat-broadcastinput: [16, 256, 56, 56]other: [256, 1, 1]dtype=f16, bf16, f32
  • llama-7b-ffninput, other: [1024, 11008]dtype=f16, bf16, f32
  • linear-biasinput: [1024, 4096]other: [1, 4096]dtype=f16, 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-prefillf161.00×0.0146torch-compile
torch
0.0146
0.0150
0.57577%mem
bf161.00×0.0146torch-compile
torch
0.0146
0.0150
0.57577%mem
f321.00×0.0262torch-compile
torch
0.0262
0.0265
0.3285%mem
cnn-feat-broadcastf161.01×0.0144torch-compile
torch
0.0145
0.0508
0.89279%mem
bf161.00×0.0144torch-compile
torch
0.0145
0.0517
0.8979%mem
f321.00×0.0263torch-compile
torch
0.0262
0.0537
0.48987%mem
llama-7b-ffnf160.99×0.0190torch-compile
torch
0.0189
0.0194
0.59579%mem
bf161.00×0.0189torch-compile
torch
0.0189
0.0194
0.59579%mem
f321.00×0.0340torch-compile
torch
0.0340
0.0342
0.33288%mem
linear-biasf161.03×0.00563torch-compile
torch
0.00579
0.0176
0.74566%mem
bf161.02×0.00563torch-compile
torch
0.00576
0.0178
0.74566%mem
f321.00×0.0101torch-compile
torch
0.0101
0.0183
0.41774%mem
llama-7b-hiddenf160.98×0.00835torch-compile
torch
0.00822
0.00886
0.50267%mem
phi-2-ffnf161.00×0.0177torch-compile
torch
0.0177
0.0181
0.59479%mem

MinimumFwd

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

  • hidden-state-prefillinput, other: [2048, 4096]dtype=f16, bf16, f32
  • cnn-feat-broadcastinput: [16, 256, 56, 56]other: [256, 1, 1]dtype=f16, bf16, f32
  • llama-7b-ffninput, other: [1024, 11008]dtype=f16, bf16, f32
  • linear-biasinput: [1024, 4096]other: [1, 4096]dtype=f16, 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-prefillf161.00×0.0145torch-compile
torch
0.0145
0.0150
0.57777%mem
bf161.00×0.0145torch-compile
torch
0.0145
0.0150
0.57777%mem
f321.00×0.0262torch-compile
torch
0.0262
0.0265
0.3285%mem
cnn-feat-broadcastf161.00×0.0144torch-compile
torch
0.0144
0.0511
0.8979%mem
bf161.01×0.0144torch-compile
torch
0.0145
0.0516
0.89279%mem
f321.00×0.0263torch-compile
torch
0.0263
0.0538
0.48887%mem
llama-7b-ffnf161.00×0.0189torch-compile
torch
0.0190
0.0194
0.59679%mem
bf161.00×0.0189torch-compile
torch
0.0190
0.0194
0.59679%mem
f321.00×0.0340torch-compile
torch
0.0340
0.0342
0.33188%mem
linear-biasf161.01×0.0057torch-compile
torch
0.00576
0.0176
0.73665%mem
bf161.01×0.00574torch-compile
torch
0.00579
0.0178
0.7365%mem
f321.00×0.0102torch-compile
torch
0.0101
0.0183
0.41273%mem
llama-7b-hiddenf160.96×0.00842torch-compile
torch
0.00811
0.00883
0.49866%mem
phi-2-ffnf161.00×0.0177torch-compile
torch
0.0177
0.0182
0.59379%mem

LerpScalarFwd

input: [*A]end: [*B]

  • hidden-state-prefillinput, end: [2048, 4096]dtype=f16, bf16, f32
  • cnn-feat-broadcastinput: [16, 256, 56, 56]end: [256, 1, 1]dtype=f16, bf16, f32
  • llama-7b-ffninput, end: [1024, 11008]dtype=f16, bf16, f32
  • linear-biasinput: [1024, 4096]end: [1, 4096]dtype=f16, 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
hidden-state-prefillf161.00×0.0147torch-compile
torch
0.0146
0.0148
1.7276%mem
bf161.00×0.0146torch-compile
torch
0.0146
0.0147
1.7277%mem
f321.00×0.0263torch-compile
torch
0.0263
0.0264
0.95785%mem
cnn-feat-broadcastf161.00×0.0145torch-compile
torch
0.0145
0.0480
2.6679%mem
bf161.00×0.0145torch-compile
torch
0.0145
0.0487
2.6679%mem
f321.00×0.0263torch-compile
torch
0.0263
0.0515
1.4687%mem
llama-7b-ffnf161.00×0.0190torch-compile
torch
0.0190
0.0192
1.7879%mem
bf161.00×0.0190torch-compile
torch
0.0189
0.0192
1.7879%mem
f321.00×0.0340torch-compile
torch
0.0340
0.0340
0.99388%mem
linear-biasf161.00×0.00587torch-compile
torch
0.00586
0.0156
2.1463%mem
bf161.01×0.00582torch-compile
torch
0.00589
0.0157
2.1664%mem
f321.01×0.0100torch-compile
torch
0.0101
0.0169
1.2674%mem
llama-7b-hiddenf161.01×0.00829torch-compile
torch
0.00837
0.00854
1.5267%mem
phi-2-ffnf161.00×0.0177torch-compile
torch
0.0177
0.0179
1.7879%mem

LerpTensorFwd

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

  • 16Minput, end, weight: [4096, 4096]dtype=f16, bf16, f32
  • 256Minput, end, weight: [16384, 16384]dtype=f16, bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
16Mf161.00×0.0344torch-compile
torch
0.0343
0.0345
1.4687%mem
bf161.00×0.0345torch-compile
torch
0.0344
0.0345
1.4686%mem
f321.00×0.0650torch
torch-compile
0.0648
0.0652
0.77592%mem
256Mf161.00×0.4830torch-compile
torch
0.4829
0.4829
1.6799%mem
bf161.00×0.4829torch-compile
torch
0.4829
0.4830
1.6799%mem

ExpFwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=f16, 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
16Mf161.00×0.0179torch-compile
torch
0.0180
0.0181
0.93883%mem
bf161.01×0.0180torch
torch-compile
0.0181
0.0182
0.93583%mem
f321.01×0.0332torch
torch-compile
0.0336
0.0336
0.50590%mem
256Mf161.01×0.2567torch-compile
torch
0.2586
0.2599
1.0593%mem
bf161.01×0.2591torch
torch-compile
0.2622
0.2658
1.0492%mem

Expm1Fwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=f16, 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
16Mf161.42×0.0179torch
torch-compile
0.0255
0.0270
0.93883%mem
bf161.56×0.0180torch-compile
torch
0.0280
0.0282
0.93583%mem
f321.02×0.0332torch
torch-compile
0.0338
0.0339
0.50590%mem
256Mf161.45×0.2568torch
torch-compile
0.3717
0.3955
1.0593%mem
bf161.59×0.2595torch-compile
torch
0.4120
0.4151
1.0392%mem

LogFwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=f16, 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
16Mf161.54×0.0178torch
torch-compile
0.0273
0.0274
0.94584%mem
bf161.57×0.0178torch-compile
torch
0.0279
0.0282
0.94384%mem
f321.00×0.0339torch-compile
torch
0.0339
0.0340
0.49688%mem
256Mf161.57×0.2549torch
torch-compile
0.4011
0.4029
1.0594%mem
bf161.62×0.2549torch-compile
torch
0.4119
0.4158
1.0594%mem

Log1pFwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=f16, 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
16Mf161.43×0.0178torch-compile
torch
0.0255
0.0263
0.94384%mem
bf161.47×0.0178torch-compile
torch
0.0262
0.0269
0.94384%mem
f321.00×0.0337torch-compile
torch
0.0337
0.0339
0.49788%mem
256Mf161.46×0.2549torch-compile
torch
0.3711
0.3840
1.0594%mem
bf161.51×0.2550torch-compile
torch
0.3838
0.3911
1.0594%mem

SqrtFwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=f16, 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
16Mf161.01×0.0181torch-compile
torch
0.0184
0.0187
0.92582%mem
bf161.02×0.0181torch-compile
torch
0.0185
0.0188
0.92682%mem
f321.00×0.0336torch-compile
torch
0.0337
0.0338
0.49989%mem
256Mf161.04×0.2550torch-compile
torch
0.2652
0.2691
1.0594%mem
bf161.04×0.2549torch-compile
torch
0.2664
0.2702
1.0594%mem

RsqrtFwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=f16, 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
16Mf161.00×0.0178torch-compile
torch
0.0178
0.0178
0.94584%mem
bf161.00×0.0177torch-compile
torch
0.0177
0.0178
0.94884%mem
f321.01×0.0332torch-compile
torch
0.0336
0.0336
0.50590%mem
256Mf161.00×0.2544torch-compile
torch
0.2542
0.2548
1.0694%mem
bf161.00×0.2543torch-compile
torch
0.2538
0.2551
1.0694%mem

ReciprocalFwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=f16, 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
16Mf161.00×0.0178torch-compile
torch
0.0179
0.0188
0.94184%mem
bf160.99×0.0182torch-compile
torch
0.0180
0.0188
0.9282%mem
f321.00×0.0337torch-compile
torch
0.0336
0.0339
0.49888%mem
256Mf161.01×0.2549torch-compile
torch
0.2572
0.2702
1.0594%mem
bf161.00×0.2584torch-compile
torch
0.2588
0.2706
1.0492%mem

AbsFwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=f16, 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
16Mf161.00×0.0178torch-compile
torch
0.0178
0.0179
0.94584%mem
bf161.00×0.0178torch-compile
torch
0.0178
0.0179
0.94584%mem
f321.01×0.0332torch-compile
torch
0.0335
0.0335
0.50690%mem
256Mf161.00×0.2525torch-compile
torch
0.2523
0.2526
1.0694%mem
bf161.00×0.2523torch-compile
torch
0.2521
0.2529
1.0695%mem

NegFwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=f16, 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
16Mf161.01×0.0178torch-compile
torch
0.0180
0.0188
0.94384%mem
bf161.00×0.0178torch-compile
torch
0.0178
0.0179
0.94184%mem
f321.01×0.0332torch
torch-compile
0.0336
0.0336
0.50690%mem
256Mf161.00×0.2521torch-compile
torch
0.2521
0.2723
1.0695%mem
bf161.00×0.2525torch
torch-compile
0.2521
0.2524
1.0694%mem

SignFwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=f16, 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
16Mf161.00×0.0178torch-compile
torch
0.0179
0.0180
1.8884%mem
bf161.00×0.0180torch-compile
torch
0.0180
0.0181
1.8783%mem
f321.01×0.0332torch-compile
torch
0.0336
0.0337
1.0190%mem
256Mf161.00×0.2526torch-compile
torch
0.2534
0.2583
2.1394%mem
bf160.99×0.2580torch-compile
torch
0.2562
0.2614
2.0892%mem

SinFwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=f16, 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
16Mf161.14×0.0231torch
torch-compile
0.0264
0.0266
0.72765%mem
bf161.16×0.0232torch
torch-compile
0.0269
0.0271
0.72464%mem
f321.01×0.0338torch-compile
torch
0.0340
0.0340
0.49788%mem
256Mf161.18×0.3228torch
torch-compile
0.3819
0.3866
0.83274%mem
bf161.20×0.3265torch
torch-compile
0.3903
0.3929
0.82273%mem

CosFwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=f16, 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
16Mf161.16×0.0236torch
torch-compile
0.0274
0.0281
0.71263%mem
bf161.15×0.0239torch
torch-compile
0.0274
0.0285
0.70262%mem
f321.00×0.0338torch-compile
torch
0.0339
0.0340
0.49688%mem
256Mf161.19×0.3323torch
torch-compile
0.3969
0.4089
0.80872%mem
bf161.17×0.3389torch
torch-compile
0.3971
0.4141
0.79270%mem

ErfFwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=f16, 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
16Mf161.19×0.0224torch
torch-compile
0.0267
0.0294
0.74866%mem
bf161.21×0.0232torch
torch-compile
0.0280
0.0297
0.72364%mem
f321.01×0.0336torch
torch-compile
0.0338
0.0340
0.589%mem
256Mf161.28×0.3059torch
torch-compile
0.3902
0.4336
0.87878%mem
bf161.31×0.3138torch
torch-compile
0.4104
0.4387
0.85576%mem

FloorFwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=f16, 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
16Mf161.00×0.0178torch-compile
torch
0.0179
0.0180
0.94184%mem
bf161.00×0.0179torch-compile
torch
0.0179
0.0180
0.9483%mem
f321.01×0.0332torch-compile
torch
0.0335
0.0336
0.50690%mem
256Mf161.00×0.2521torch-compile
torch
0.2521
0.2530
1.0695%mem
bf161.00×0.2530torch-compile
torch
0.2525
0.2531
1.0694%mem

CeilFwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=f16, 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
16Mf161.00×0.0179torch-compile
torch
0.0179
0.0180
0.9483%mem
bf161.00×0.0179torch-compile
torch
0.0179
0.0180
0.9483%mem
f321.01×0.0332torch
torch-compile
0.0336
0.0336
0.50590%mem
256Mf161.00×0.2522torch-compile
torch
0.2525
0.2527
1.0695%mem
bf161.00×0.2525torch-compile
torch
0.2525
0.2527
1.0694%mem

RoundFwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=f16, 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
16Mf161.00×0.0178torch-compile
torch
0.0179
0.0180
0.94184%mem
bf161.00×0.0178torch-compile
torch
0.0179
0.0179
0.94484%mem
f321.01×0.0332torch-compile
torch
0.0334
0.0335
0.50690%mem
256Mf161.00×0.2527torch
torch-compile
0.2525
0.2528
1.0694%mem
bf161.00×0.2523torch
torch-compile
0.2526
0.2529
1.0695%mem

TruncFwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=f16, 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
16Mf161.00×0.0179torch-compile
torch
0.0179
0.0180
0.9483%mem
bf161.00×0.0178torch-compile
torch
0.0179
0.0179
0.94184%mem
f321.01×0.0332torch-compile
torch
0.0334
0.0335
0.50690%mem
256Mf161.00×0.2528torch-compile
torch
0.2524
0.2526
1.0694%mem
bf161.00×0.2530torch-compile
torch
0.2526
0.2527
1.0694%mem

ReluFwd

input: [*S]

  • hidden-state-prefillinput: [2048, 4096]dtype=f16, bf16
  • hidden-state-decodeinput: [1, 4096]dtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
hidden-state-prefillf161.00×0.00976torch-compile
torch
0.00976
0.0105
0.85976%mem
bf161.01×0.00973torch-compile
torch
0.00979
0.00995
0.86277%mem
hidden-state-decodebf161.00×0.00125torch-compile
torch
0.00125
0.00144
0.003280%lat

LeakyReluFwd

input: [*S]

dtype=f16, 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-featf161.00×0.0179torch-compile
torch
0.0179
0.0180
1.8883%mem
bf161.00×0.0179torch-compile
torch
0.0179
0.0180
1.8783%mem
gan-feat-deepf161.00×0.00982torch-compile
torch
0.00979
0.00986
1.7176%mem
bf161.00×0.00981torch-compile
torch
0.00981
0.00986
1.7176%mem

EluFwd

input: [*S]

dtype=f16, 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-hiddenf161.33×0.0120torch-compile
torch
0.0159
0.0179
2.862%mem
bf161.42×0.0118torch-compile
torch
0.0168
0.0181
2.8363%mem
mlp-hidden-widef161.36×0.0219torch-compile
torch
0.0299
0.0328
3.0768%mem
bf161.46×0.0216torch-compile
torch
0.0314
0.0333
3.1169%mem

SeluFwd

input: [*S]

dtype=f16, 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-fcf161.39×0.0116torch-compile
torch
0.0161
0.0179
3.6264%mem
bf161.31×0.0119torch-compile
torch
0.0157
0.0181
3.5162%mem
snn-fc-widef161.43×0.0211torch-compile
torch
0.0301
0.0329
3.9871%mem
bf161.35×0.0217torch-compile
torch
0.0293
0.0332
3.8769%mem

GeluFwd

input: [*S]

  • llama-8b-ffn-prefillinput: [2048, 14336]dtype=f16, bf16
  • llama-8b-ffn-decodeinput: [1, 14336]dtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
llama-8b-ffn-prefillf161.37×0.0353torch
torch-compile
0.0482
0.0541
4.1674%mem
bf161.38×0.0357torch
torch-compile
0.0492
0.0561
4.1173%mem
llama-8b-ffn-decodebf161.02×0.00138torch-compile
torch
0.00141
0.00166
0.05211%lat

SiluFwd

input: [*S]

  • llama-8b-ffn-prefillinput: [2048, 14336]dtype=f16, bf16
  • llama-8b-ffn-decodeinput: [1, 14336]dtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
llama-8b-ffn-prefillf161.03×0.0347torch-compile
torch
0.0356
0.0379
4.2475%mem
bf161.01×0.0354torch-compile
torch
0.0358
0.0381
4.1474%mem
llama-8b-ffn-decodebf161.02×0.00144torch-compile
torch
0.00147
0.00198
0.04981%lat

MishFwd

input: [*S]

dtype=f16, 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-p3f161.79×0.0357torch
torch-compile
0.0639
0.0734
2.9465%mem
bf161.78×0.0364torch
torch-compile
0.0645
0.0741
2.8864%mem
yolo-p4f161.76×0.0190torch
torch-compile
0.0334
0.0383
2.7661%mem
bf161.75×0.0192torch
torch-compile
0.0337
0.0386
2.7361%mem

SigmoidFwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=f16, 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
16Mf161.07×0.0170torch-compile
torch
0.0182
0.0230
3.9488%mem
bf161.03×0.0178torch-compile
torch
0.0183
0.0235
3.7884%mem
f321.02×0.0329torch-compile
torch
0.0335
0.0339
2.0491%mem
256Mf161.05×0.2492torch-compile
torch
0.2627
0.3247
4.3196%mem
bf161.04×0.2546torch-compile
torch
0.2658
0.3334
4.2294%mem

TanhFwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=f16, 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
16Mf161.06×0.0196torch
torch-compile
0.0206
0.0240
0.85876%mem
bf161.01×0.0216torch
torch-compile
0.0218
0.0245
0.77869%mem
f321.00×0.0335torch
torch-compile
0.0336
0.0340
0.50189%mem
256Mf161.07×0.2767torch
torch-compile
0.2961
0.3442
0.9786%mem
bf161.05×0.2996torch
torch-compile
0.3137
0.3513
0.89680%mem

HardsigmoidFwd

input: [*S]

dtype=f16, 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-gatef161.07×0.00128torch-compile
torch
0.00138
0.00173
0.0181%lat
bf161.05×0.00131torch-compile
torch
0.00138
0.00173
0.01761%lat
mbv3-se-gate-deepf161.05×0.00141torch
torch-compile
0.00147
0.0015
0.06552%lat
bf161.05×0.00141torch
torch-compile
0.00147
0.00147
0.06552%lat

HardswishFwd

input: [*S]

dtype=f16, 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-stage2f161.01×0.0111torch-compile
torch
0.0112
0.0113
3.4877%mem
bf161.01×0.0111torch-compile
torch
0.0112
0.0113
3.4777%mem
mbv3-stage3f161.02×0.00739torch-compile
torch
0.00752
0.00758
3.2672%mem
bf161.01×0.00739torch-compile
torch
0.00749
0.00758
3.2672%mem

HardtanhFwd

input: [*S]

dtype=f16, 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-hiddenf161.01×0.00982torch-compile
torch
0.00989
0.0110
0.85476%mem
bf161.01×0.00986torch-compile
torch
0.00998
0.0104
0.85176%mem
bounded-conv-featf161.00×0.0142torch-compile
torch
0.0142
0.0160
0.90280%mem
bf161.01×0.0142torch-compile
torch
0.0144
0.0150
0.90280%mem

SoftplusFwd

input: [*S]

dtype=f16, 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-hiddenf161.45×0.0123torch-compile
torch
0.0178
0.0237
3.4261%mem
bf161.44×0.0126torch-compile
torch
0.0182
0.0240
3.3359%mem
mlp-hidden-widef161.49×0.0222torch-compile
torch
0.0331
0.0448
3.7867%mem
bf161.48×0.0229torch-compile
torch
0.0340
0.0453
3.6665%mem

PreluFwd

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

dtype=f16, 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-featf161.00×0.0146torch-compile
torch
0.0146
0.0476
1.7678%mem
bf161.00×0.0146torch-compile
torch
0.0146
0.0489
1.7678%mem
cnn-feat-deepf161.00×0.00819torch-compile
torch
0.00819
0.0252
1.5770%mem
bf161.00×0.00819torch-compile
torch
0.00822
0.0259
1.5770%mem

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.00576torch-compile
torch
0.0113
0.0117
1.4665%mem
f321.18×0.0100torch-compile
torch
0.0119
0.0148
0.83574%mem
hidden-10kbf161.94×0.0122torch-compile
torch
0.0236
0.0239
1.7276%mem

SiluAndMulFwd

x: [M, 2 * N]

  • llama-8b-ffn-prefillx: [2048, 28672]dtype=f16, bf16
  • llama-8b-ffn-decodex: [1, 28672]dtype=bf16
  • qwen3-8b-swiglu-b32x: [32, 24576]dtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
llama-8b-ffn-prefillf161.06×0.0416torch-compile
flashinfer
torch-ref
0.0442
0.0540
0.4232
4.2394%mem
bf160.98×0.0469torch-compile
flashinfer
torch-ref
0.0460
0.0543
0.4256
3.7683%mem
llama-8b-ffn-decodebf161.00×0.0015torch-compile
flashinfer
torch-ref
0.0015
0.00426
0.0116
0.05721%lat
qwen3-8b-swiglu-b32bf161.01×0.00237torch-compile
flashinfer
torch-ref
0.0024
0.00438
0.0156
0.99622%lat

GeluAndMulFwd

x: [M, 2 * N]

  • llama-8b-ffn-prefillx: [2048, 28672]dtype=f16, bf16
  • llama-8b-ffn-decodex: [1, 28672]dtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
llama-8b-ffn-prefillf161.26×0.0484torch-compile
flashinfer
torch-ref
0.0610
0.1056
0.4231
3.6481%mem
bf161.27×0.0484torch-compile
flashinfer
torch-ref
0.0617
0.1068
0.4256
3.6481%mem
llama-8b-ffn-decodebf160.97×0.00155torch-compile
flashinfer
torch-ref
0.00151
0.00666
0.0115
0.05541%lat

GeluTanhAndMulFwd

x: [M, 2 * N]

  • llama-8b-ffn-prefillx: [2048, 28672]dtype=f16, bf16
  • llama-8b-ffn-decodex: [1, 28672]dtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
llama-8b-ffn-prefillf161.09×0.0480torch-compile
flashinfer
torch-ref
0.0523
0.0569
0.4231
6.1181%mem
bf161.07×0.0496torch-compile
flashinfer
torch-ref
0.0529
0.0580
0.4255
5.9279%mem
llama-8b-ffn-decodebf161.02×0.0015torch-compile
flashinfer
torch-ref
0.00154
0.00438
0.0114
0.09531%lat

EqFwd

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

  • hidden-state-prefillinput, other: [2048, 4096]dtype=f16, bf16, f32
  • cnn-feat-broadcastinput: [16, 256, 56, 56]other: [256, 1, 1]dtype=f16, bf16, f32
  • llama-7b-ffninput, other: [1024, 11008]dtype=f16, bf16, f32
  • linear-biasinput: [1024, 4096]other: [1, 4096]dtype=f16, 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-prefillf161.00×0.0129torch-compile
torch
0.0130
0.0133
0.64972%mem
bf161.02×0.0130torch-compile
torch
0.0132
0.0132
0.64772%mem
f321.00×0.0223torch-compile
torch
0.0223
0.0224
0.37775%mem
cnn-feat-broadcastf160.99×0.0119torch-compile
torch
0.0118
0.0482
1.0872%mem
bf161.02×0.0118torch-compile
torch
0.0120
0.0490
1.0973%mem
f321.00×0.0185torch-compile
torch
0.0185
0.0483
0.69477%mem
llama-7b-ffnf161.01×0.0167torch-compile
torch
0.0168
0.0169
0.67675%mem
bf161.00×0.0167torch-compile
torch
0.0167
0.0169
0.67675%mem
f321.00×0.0286torch-compile
torch
0.0286
0.0287
0.39479%mem
linear-biasf160.98×0.00483torch-compile
torch
0.00472
0.0154
0.86858%lat
bf161.00×0.00461torch-compile
torch
0.00462
0.0157
0.9161%lat
f320.94×0.00768torch-compile
torch
0.00722
0.0158
0.54661%mem
llama-7b-hiddenf161.03×0.00733torch-compile
torch
0.00758
0.00765
0.57264%mem
phi-2-ffnf161.01×0.0156torch
torch-compile
0.0158
0.0158
0.67375%mem

NeFwd

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

  • hidden-state-prefillinput, other: [2048, 4096]dtype=f16, bf16, f32
  • cnn-feat-broadcastinput: [16, 256, 56, 56]other: [256, 1, 1]dtype=f16, bf16, f32
  • llama-7b-ffninput, other: [1024, 11008]dtype=f16, bf16, f32
  • linear-biasinput: [1024, 4096]other: [1, 4096]dtype=f16, 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-prefillf161.02×0.0130torch-compile
torch
0.0132
0.0132
0.64772%mem
bf161.00×0.0129torch-compile
torch
0.0129
0.0132
0.64972%mem
f321.00×0.0223torch-compile
torch
0.0223
0.0224
0.37675%mem
cnn-feat-broadcastf161.01×0.0118torch-compile
torch
0.0120
0.0478
1.0972%mem
bf161.02×0.0118torch-compile
torch
0.0120
0.0493
1.0972%mem
f320.99×0.0185torch-compile
torch
0.0184
0.0481
0.69377%mem
llama-7b-ffnf161.01×0.0167torch-compile
torch
0.0168
0.0168
0.67675%mem
bf161.00×0.0167torch-compile
torch
0.0167
0.0168
0.67675%mem
f321.00×0.0286torch-compile
torch
0.0286
0.0287
0.39479%mem
linear-biasf161.03×0.00483torch-compile
torch
0.00496
0.0154
0.86858%lat
bf160.95×0.00483torch-compile
torch
0.00458
0.0157
0.86858%lat
f320.95×0.00765torch-compile
torch
0.00726
0.0158
0.54861%mem
llama-7b-hiddenf160.95×0.00752torch
torch-compile
0.00717
0.00722
0.55862%mem

GtFwd

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

  • hidden-state-prefillinput, other: [2048, 4096]dtype=f16, bf16, f32
  • cnn-feat-broadcastinput: [16, 256, 56, 56]other: [256, 1, 1]dtype=f16, bf16, f32
  • llama-7b-ffninput, other: [1024, 11008]dtype=f16, bf16, f32
  • linear-biasinput: [1024, 4096]other: [1, 4096]dtype=f16, 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-prefillf161.02×0.0129torch-compile
torch
0.0132
0.0132
0.6572%mem
bf161.01×0.0130torch-compile
torch
0.0132
0.0132
0.64772%mem
f320.99×0.0223torch-compile
torch
0.0222
0.0222
0.37675%mem
cnn-feat-broadcastf161.02×0.0118torch-compile
torch
0.0120
0.0486
1.0972%mem
bf161.00×0.0118torch-compile
torch
0.0119
0.0493
1.0872%mem
f321.00×0.0185torch-compile
torch
0.0186
0.0483
0.69377%mem
llama-7b-ffnf161.00×0.0166torch-compile
torch
0.0167
0.0168
0.67775%mem
bf161.00×0.0166torch
torch-compile
0.0167
0.0167
0.67775%mem
f321.00×0.0286torch-compile
torch
0.0286
0.0287
0.39479%mem
linear-biasf160.99×0.00464torch-compile
torch
0.00461
0.0157
0.90460%lat
bf160.95×0.0048torch-compile
torch
0.00456
0.0159
0.87458%lat
f320.98×0.00762torch-compile
torch
0.00746
0.0158
0.55161%mem
llama-7b-hiddenf160.96×0.00752torch-compile
torch
0.00725
0.00733
0.55862%mem

GeFwd

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

  • hidden-state-prefillinput, other: [2048, 4096]dtype=f16, bf16, f32
  • cnn-feat-broadcastinput: [16, 256, 56, 56]other: [256, 1, 1]dtype=f16, bf16, f32
  • llama-7b-ffninput, other: [1024, 11008]dtype=f16, bf16, f32
  • linear-biasinput: [1024, 4096]other: [1, 4096]dtype=f16, 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-prefillf160.99×0.0130torch-compile
torch
0.0129
0.0130
0.64672%mem
bf161.00×0.0129torch-compile
torch
0.0130
0.0131
0.64872%mem
f321.00×0.0223torch-compile
torch
0.0222
0.0224
0.37775%mem
cnn-feat-broadcastf161.02×0.0118torch-compile
torch
0.0120
0.0472
1.0872%mem
bf161.02×0.0118torch-compile
torch
0.0121
0.0479
1.0872%mem
f321.00×0.0186torch-compile
torch
0.0185
0.0473
0.69277%mem
llama-7b-ffnf161.01×0.0166torch-compile
torch
0.0168
0.0168
0.6876%mem
bf161.01×0.0166torch-compile
torch
0.0168
0.0168
0.67775%mem
f321.00×0.0286torch-compile
torch
0.0286
0.0287
0.39479%mem
linear-biasf161.02×0.00483torch-compile
torch
0.00494
0.0153
0.86858%lat
bf161.89×0.00477torch-compile
torch
0.00899
0.0155
0.8859%lat
f320.97×0.00768torch-compile
torch
0.00749
0.0156
0.54661%mem
llama-7b-hiddenf160.95×0.00749torch
torch-compile
0.00714
0.00726
0.5662%mem

LtFwd

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

  • hidden-state-prefillinput, other: [2048, 4096]dtype=f16, bf16, f32
  • cnn-feat-broadcastinput: [16, 256, 56, 56]other: [256, 1, 1]dtype=f16, bf16, f32
  • llama-7b-ffninput, other: [1024, 11008]dtype=f16, bf16, f32
  • linear-biasinput: [1024, 4096]other: [1, 4096]dtype=f16, 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-prefillf161.01×0.0130torch-compile
torch
0.0131
0.0132
0.64772%mem
bf161.01×0.0130torch-compile
torch
0.0131
0.0132
0.64672%mem
f321.00×0.0223torch-compile
torch
0.0223
0.0224
0.37775%mem
cnn-feat-broadcastf161.01×0.0119torch-compile
torch
0.0120
0.0501
1.0872%mem
bf161.02×0.0118torch-compile
torch
0.0120
0.0507
1.0872%mem
f321.00×0.0185torch-compile
torch
0.0185
0.0496
0.69377%mem
llama-7b-ffnf161.01×0.0166torch-compile
torch
0.0168
0.0168
0.67875%mem
bf161.00×0.0167torch-compile
torch
0.0167
0.0168
0.67675%mem
f321.00×0.0286torch-compile
torch
0.0287
0.0287
0.39479%mem
linear-biasf161.00×0.00483torch-compile
torch
0.00483
0.0161
0.86858%lat
bf161.00×0.00483torch-compile
torch
0.00482
0.0163
0.86858%lat
f320.95×0.00765torch-compile
torch
0.00726
0.0161
0.54861%mem
llama-7b-hiddenf160.98×0.00752torch
torch-compile
0.00736
0.00758
0.55862%mem

LeFwd

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

  • hidden-state-prefillinput, other: [2048, 4096]dtype=f16, bf16, f32
  • cnn-feat-broadcastinput: [16, 256, 56, 56]other: [256, 1, 1]dtype=f16, bf16, f32
  • llama-7b-ffninput, other: [1024, 11008]dtype=f16, bf16, f32
  • linear-biasinput: [1024, 4096]other: [1, 4096]dtype=f16, 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-prefillf161.00×0.0130torch
torch-compile
0.0130
0.0132
0.64772%mem
bf161.00×0.0129torch
torch-compile
0.0129
0.0132
0.64972%mem
f321.00×0.0223torch-compile
torch
0.0223
0.0223
0.37675%mem
cnn-feat-broadcastf161.00×0.0119torch-compile
torch
0.0119
0.0501
1.0872%mem
bf161.02×0.0119torch-compile
torch
0.0121
0.0507
1.0872%mem
f321.00×0.0185torch-compile
torch
0.0185
0.0497
0.69477%mem
llama-7b-ffnf160.99×0.0167torch
torch-compile
0.0165
0.0168
0.67575%mem
bf160.99×0.0167torch-compile
torch
0.0165
0.0167
0.67675%mem
f321.00×0.0286torch-compile
torch
0.0286
0.0286
0.39479%mem
linear-biasf160.97×0.00483torch-compile
torch
0.0047
0.0161
0.86858%lat
bf160.96×0.00483torch-compile
torch
0.00464
0.0163
0.86858%lat
f320.99×0.00768torch-compile
torch
0.00762
0.0161
0.54661%mem
llama-7b-hiddenf160.95×0.00752torch
torch-compile
0.00717
0.00725
0.55862%mem

IsnanFwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=f16, 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
16Mf161.05×0.0140torch-compile
torch
0.0147
0.0151
1.280%mem
bf161.06×0.0140torch-compile
torch
0.0148
0.0152
1.280%mem
f321.01×0.0228torch-compile
torch
0.0229
0.0229
0.73782%mem
256Mf161.07×0.1854torch-compile
torch
0.1986
0.2037
1.4596%mem
bf161.08×0.1855torch-compile
torch
0.2000
0.2057
1.4596%mem

IsinfFwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=f16, 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
16Mf161.06×0.0140torch-compile
torch
0.0148
0.0314
1.280%mem
bf161.06×0.0141torch-compile
torch
0.0149
0.0315
1.1979%mem
f321.00×0.0228torch-compile
torch
0.0228
0.0563
0.73782%mem
256Mf161.08×0.1855torch-compile
torch
0.2004
0.4550
1.4596%mem
bf161.09×0.1851torch-compile
torch
0.2018
0.4559
1.4597%mem

IsfiniteFwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=f16, 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
16Mf161.05×0.0140torch-compile
torch
0.0147
0.0634
1.280%mem
bf161.05×0.0140torch-compile
torch
0.0147
0.0636
1.280%mem
f321.01×0.0228torch-compile
torch
0.0229
0.0952
0.73782%mem
256Mf161.07×0.1854torch-compile
torch
0.1982
0.9197
1.4596%mem
bf161.07×0.1856torch-compile
torch
0.1982
0.9231
1.4596%mem

LogicalAndFwd

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

  • hidden-state-prefillinput, other: [2048, 4096]dtype=bool, f16, bf16, f32
  • cnn-feat-broadcastinput: [16, 256, 56, 56]other: [256, 1, 1]dtype=bool, f16, bf16, f32
  • llama-7b-ffninput, other: [1024, 11008]dtype=bool, f16, bf16, f32
  • linear-biasinput: [1024, 4096]other: [1, 4096]dtype=bool, f16, 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.07×0.00819torch-compile
torch
0.00875
0.00998
1.0268%mem
f160.99×0.0130torch
torch-compile
0.0129
0.0132
1.9372%mem
bf161.00×0.0130torch
torch-compile
0.0130
0.0132
1.9472%mem
f320.99×0.0221torch
torch-compile
0.0220
0.0221
1.1476%mem
cnn-feat-broadcastbool1.21×0.00829torch-compile
torch
0.0100
0.0453
1.5569%mem
f161.05×0.0116torch-compile
torch
0.0122
0.0472
3.3173%mem
bf161.04×0.0117torch-compile
torch
0.0122
0.0482
3.373%mem
f321.00×0.0186torch-compile
torch
0.0185
0.0469
2.0877%mem
llama-7b-ffnbool1.10×0.0103torch-compile
torch
0.0114
0.0131
1.0973%mem
f160.98×0.0166torch
torch-compile
0.0163
0.0167
2.0475%mem
bf160.99×0.0166torch
torch-compile
0.0165
0.0166
2.0375%mem
f321.00×0.0287torch
torch-compile
0.0286
0.0288
1.1878%mem
linear-biasbool1.36×0.0036torch-compile
torch
0.0049
0.0146
1.1752%lat
f160.97×0.00483torch-compile
torch
0.00467
0.0153
2.658%lat
bf160.97×0.0048torch-compile
torch
0.00466
0.0155
2.6258%lat
f320.94×0.00746torch-compile
torch
0.00702
0.0154
1.6963%mem
llama-7b-hiddenf160.95×0.00738torch-compile
torch
0.00698
0.0071
1.7163%mem
phi-2-ffnf161.01×0.0156torch-compile
torch
0.0158
0.0158
2.0275%mem

LogicalOrFwd

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

  • hidden-state-prefillinput, other: [2048, 4096]dtype=bool, f16, bf16, f32
  • cnn-feat-broadcastinput: [16, 256, 56, 56]other: [256, 1, 1]dtype=bool, f16, bf16, f32
  • llama-7b-ffninput, other: [1024, 11008]dtype=bool, f16, bf16, f32
  • linear-biasinput: [1024, 4096]other: [1, 4096]dtype=bool, f16, 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.00837torch-compile
torch
0.00874
0.00901
167%mem
f161.01×0.0129torch-compile
torch
0.0130
0.0131
1.9572%mem
bf161.01×0.0129torch
torch-compile
0.0130
0.0130
1.9572%mem
f321.00×0.0222torch-compile
torch
0.0222
0.0223
1.1375%mem
cnn-feat-broadcastbool1.26×0.0081torch-compile
torch
0.0102
0.0445
1.5970%mem
f161.04×0.0116torch-compile
torch
0.0120
0.0479
3.3474%mem
bf161.04×0.0116torch-compile
torch
0.0120
0.0491
3.3474%mem
f321.00×0.0183torch-compile
torch
0.0183
0.0471
2.1178%mem
llama-7b-ffnbool1.04×0.0104torch-compile
torch
0.0108
0.0113
1.0872%mem
f161.00×0.0164torch
torch-compile
0.0164
0.0164
2.0676%mem
bf160.99×0.0165torch-compile
torch
0.0164
0.0165
2.0576%mem
f321.00×0.0289torch-compile
torch
0.0289
0.0290
1.1778%mem
linear-biasbool1.28×0.00354torch-compile
torch
0.00451
0.0144
1.1953%lat
f161.03×0.00467torch-compile
torch
0.0048
0.0154
2.6960%lat
bf161.01×0.00474torch-compile
torch
0.00477
0.0157
2.6659%lat
f320.98×0.00736torch-compile
torch
0.00718
0.0154
1.7163%mem
llama-7b-hiddenf161.02×0.00723torch-compile
torch
0.00736
0.00746
1.7464%mem
phi-2-ffnf161.00×0.0156torch-compile
torch
0.0155
0.0157
2.0275%mem

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.26×0.00954torch-compile
torch
0.0120
0.0131
1.7678%mem
f161.03×0.0142torch-compile
torch
0.0146
0.0149
1.1879%mem
f321.00×0.0226torch-compile
torch
0.0226
0.0228
0.74382%mem
256Mbool1.30×0.1277torch-compile
torch
0.1658
0.1832
2.193%mem

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.08×0.0081torch-compile
torch
0.00877
0.0100
1.0469%mem
i321.00×0.0261torch
torch-compile
0.0260
0.0261
0.32286%mem
i641.01×0.0489torch
torch-compile
0.0496
0.0497
0.17292%mem
cnn-feat-broadcastbool1.27×0.00797torch-compile
torch
0.0101
0.0455
1.6172%mem
i320.99×0.0268torch-compile
torch
0.0266
0.0499
0.4885%mem
i641.00×0.0505torch-compile
torch
0.0504
0.0588
0.25490%mem
llama-7b-ffnbool1.11×0.0103torch-compile
torch
0.0114
0.0132
1.0973%mem
i321.00×0.0342torch
torch-compile
0.0342
0.0342
0.32988%mem
i641.00×0.0649torch-compile
torch
0.0649
0.0652
0.17493%mem
linear-biasbool1.35×0.00349torch-compile
torch
0.0047
0.0146
1.253%lat
i321.15×0.00976torch-compile
torch
0.0113
0.0165
0.4376%mem
i641.03×0.0179torch-compile
torch
0.0185
0.0209
0.23483%mem
llama-7b-hiddeni321.00×0.0143torch-compile
torch
0.0143
0.0143
0.29378%mem
phi-2-ffni321.01×0.0316torch-compile
torch
0.0318
0.0319
0.33188%mem

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.00794torch-compile
torch
0.00829
0.00864
1.0670%mem
i321.00×0.0260torch
torch-compile
0.0261
0.0261
0.32286%mem
i641.01×0.0490torch
torch-compile
0.0494
0.0496
0.17191%mem
cnn-feat-broadcastbool1.30×0.0079torch-compile
torch
0.0102
0.0445
1.6372%mem
i320.99×0.0267torch-compile
torch
0.0266
0.0498
0.48185%mem
i641.00×0.0509torch-compile
torch
0.0507
0.0593
0.25290%mem
llama-7b-ffnbool1.06×0.0103torch-compile
torch
0.0109
0.0113
1.173%mem
i321.00×0.0341torch-compile
torch
0.0342
0.0342
0.3388%mem
i641.00×0.0650torch-compile
torch
0.0650
0.0654
0.17492%mem
linear-biasbool1.27×0.00344torch-compile
torch
0.00438
0.0143
1.2254%lat
i321.15×0.00976torch-compile
torch
0.0112
0.0165
0.4376%mem
i641.03×0.0179torch-compile
torch
0.0184
0.0208
0.23584%mem
llama-7b-hiddeni321.00×0.0142torch-compile
torch
0.0142
0.0143
0.29579%mem

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.10×0.00784torch-compile
torch
0.00864
0.0100
1.0771%mem
i321.00×0.0259torch-compile
torch
0.0260
0.0260
0.32486%mem
i641.01×0.0489torch-compile
torch
0.0493
0.0495
0.17291%mem
cnn-feat-broadcastbool1.29×0.00784torch-compile
torch
0.0101
0.0454
1.6473%mem
i320.99×0.0267torch-compile
torch
0.0266
0.0500
0.48185%mem
i641.00×0.0507torch-compile
torch
0.0508
0.0593
0.25390%mem
llama-7b-ffnbool1.11×0.0102torch-compile
torch
0.0114
0.0132
1.174%mem
i320.99×0.0341torch-compile
torch
0.0339
0.0342
0.3388%mem
i641.00×0.0648torch-compile
torch
0.0650
0.0653
0.17493%mem
linear-biasbool2.59×0.00342torch-compile
torch
0.00886
0.0145
1.2254%lat
i321.15×0.00974torch-compile
torch
0.0112
0.0165
0.4377%mem
i641.03×0.0179torch-compile
torch
0.0183
0.0208
0.23584%mem
llama-7b-hiddeni321.00×0.0141torch
torch-compile
0.0142
0.0142
0.29779%mem

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.01×0.0331torch-compile
torch
0.0334
0.0335
0.50790%mem
i640.99×0.0654torch-compile
torch
0.0650
0.0680
0.25691%mem
256Mi321.01×0.5018torch-compile
torch
0.5070
0.5071
0.53595%mem

WhereFwd

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

  • 16Mcondition: [4096, 4096], boolinput, other: [4096, 4096]dtype=f16, bf16, f32
  • 256Mcondition: [16384, 16384], boolinput, other: [16384, 16384]dtype=f16, bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
16Mf161.00×0.0301torch
torch-compile
0.0302
0.0304
0.55787%mem
bf160.99×0.0303torch-compile
torch
0.0301
0.0301
0.55486%mem
f320.99×0.0532torch-compile
torch
0.0528
0.0534
0.31691%mem
256Mf161.00×0.4249torch-compile
torch
0.4248
0.4251
0.63298%mem
bf161.00×0.4248torch
torch-compile
0.4249
0.4249
0.63298%mem

ClampTensorFwd

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

  • 16Minput, min, max: [4096, 4096]dtype=f16, bf16, f32
  • 256Minput, min, max: [16384, 16384]dtype=f16, bf16

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

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

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

  • 16M-max-onlyinput, max: [4096, 4096]dtype=f16, bf16, f32
  • 256M-max-onlyinput, max: [16384, 16384]dtype=f16, bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
16Mf161.00×0.0342torch
torch-compile
0.0344
0.0345
0.4987%mem
bf161.00×0.0343torch
torch-compile
0.0344
0.0348
0.48987%mem
f321.00×0.0647torch
torch-compile
0.0648
0.0648
0.25992%mem
256Mf161.00×0.4829torch-compile
torch
0.4822
0.4823
0.55699%mem
bf161.00×0.4829torch-compile
torch
0.4821
0.4822
0.55699%mem
16M-min-onlyf161.00×0.0260torch-compile
torch
0.0260
0.0264
0.64586%mem
bf161.00×0.0260torch-compile
torch
0.0260
0.0264
0.64486%mem
f320.99×0.0493torch-compile
torch
0.0488
0.0489
0.3491%mem
256M-min-onlyf161.00×0.3673torch
torch-compile
0.3666
0.3673
0.73197%mem
bf161.00×0.3670torch
torch-compile
0.3660
0.3672
0.73197%mem
16M-max-onlyf161.00×0.0259torch-compile
torch
0.0260
0.0263
0.64786%mem
bf161.00×0.0260torch-compile
torch
0.0260
0.0264
0.64686%mem
f320.99×0.0492torch-compile
torch
0.0488
0.0490
0.34191%mem
256M-max-onlyf161.00×0.3671torch
torch-compile
0.3668
0.3672
0.73197%mem
bf161.00×0.3673torch
torch-compile
0.3661
0.3672
0.73197%mem

ClampScalarFwd

input: [*S]

min=-0.5max=0.5

  • 16Minput: [4096, 4096]dtype=f16, 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
16Mf161.00×0.0180torch-compile
torch
0.0179
0.0202
0.93583%mem
bf161.02×0.0180torch-compile
torch
0.0183
0.0189
0.93383%mem
f321.01×0.0334torch-compile
torch
0.0336
0.0336
0.50389%mem
256Mf160.99×0.2576torch-compile
torch
0.2560
0.2953
1.0493%mem
bf161.03×0.2597torch-compile
torch
0.2674
0.2788
1.0392%mem

MaskedFillTensorFwd

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

  • 16Minput: [4096, 4096]mask: [4096, 4096], boolvalue: []dtype=f16, bf16, f32
  • 256Minput: [16384, 16384]mask: [16384, 16384], boolvalue: []dtype=f16, bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
16Mf161.00×0.0225torch-compile
torch
0.0225
0.0409
0.74683%mem
bf161.00×0.0225torch-compile
torch
0.0225
0.0407
0.74683%mem
f321.00×0.0378torch-compile
torch
0.0376
0.0741
0.44489%mem
256Mf161.00×0.3099torch-compile
torch
0.3100
0.5731
0.86696%mem
bf161.00×0.3100torch-compile
torch
0.3100
0.5730
0.86696%mem

MaskedFillScalarFwd

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

  • 16Minput: [4096, 4096]mask: [4096, 4096], booldtype=f16, bf16, f32
  • 256Minput: [16384, 16384]mask: [16384, 16384], booldtype=f16, bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
16Mf161.00×0.0224torch-compile
torch
0.0225
0.0380
0.74883%mem
bf161.00×0.0225torch-compile
torch
0.0225
0.0381
0.74683%mem
f320.99×0.0377torch-compile
torch
0.0375
0.0715
0.44589%mem
256Mf161.00×0.3099torch-compile
torch
0.3101
0.5706
0.86696%mem
bf161.00×0.3099torch-compile
torch
0.3100
0.5707
0.86696%mem

NanToNumFwd

input: [*S]

  • 16Minput: [4096, 4096]dtype=f16, 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
16Mf161.00×0.0180torch-compile
torch
0.0180
0.0191
1.8683%mem
bf161.00×0.0181torch-compile
torch
0.0180
0.0191
1.8582%mem
f321.01×0.0333torch-compile
torch
0.0335
0.0336
1.0190%mem
256Mf161.00×0.2613torch-compile
torch
0.2608
0.2781
2.0591%mem
bf160.99×0.2635torch-compile
torch
0.2604
0.2772
2.0491%mem

AlibiFwd

num_heads=32dtype=f16, 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-2kf161.33×0.0649torch-compile
torch-ref
0.0864
0.5930
6.292%mem
bf161.33×0.0648torch-compile
torch-ref
0.0862
0.5931
6.2192%mem
mpt-7b-4kf161.19×0.2861torch-compile
torch-ref
0.3405
2.6323
5.6383%mem
bf161.20×0.2849torch-compile
torch-ref
0.3404
2.6320
5.6584%mem

SinusoidalFwd

d_model=4096dtype=f16, 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-4kf164.16×0.0136torch-compile
torch-ref
0.0568
0.1053
0.92327%mem
bf164.16×0.0136torch-compile
torch-ref
0.0567
0.1043
0.92327%mem
transformer-4k-4kf164.45×0.0251torch-compile
torch-ref
0.1118
0.1977
130%mem
bf164.45×0.0251torch-compile
torch-ref
0.1118
0.1973
130%mem