Skip to content

Instantly share code, notes, and snippets.

@AmosLewis
Created January 31, 2025 19:01
Show Gist options
  • Save AmosLewis/55723047fc165be8c44ae9b31e16da9b to your computer and use it in GitHub Desktop.
Save AmosLewis/55723047fc165be8c44ae9b31e16da9b to your computer and use it in GitHub Desktop.
module {
func.func @faulty(%arg0: !torch.vtensor<[32,4096],bf16>, %arg1: !torch.vtensor<[4096,4096],bf16>) -> !torch.vtensor<[4096,4096],bf16> {
%int26 = torch.constant.int 26
%int15 = torch.constant.int 15
return %arg1: !torch.vtensor<[4096,4096],bf16>
}
}
@AmosLewis
Copy link
Author

iree-compile faulty_inp1.mlir  --iree-hip-target=gfx942  --iree-hal-target-device=hip   --iree-dispatch-creation-enable-aggressive-fusion=true   --iree-global-opt-propagate-transposes=true   --iree-opt-aggressively-propagate-transposes=true   --iree-opt-data-tiling=false   --iree-preprocessing-pass-pipeline='builtin.module(util.func(iree-preprocessing-generalize-linalg-matmul-experimental))'   --iree-hal-indirect-command-buffers=true   --iree-stream-resource-memory-model=discrete   --iree-hal-memoization=true   --iree-opt-strip-assertions -o=init1.vmfb

iree-run-module --hip_use_streams=true --device=hip://0 --function=faulty --module=init1.vmfb [email protected] [email protected]
EXEC @faulty
result[0]: hal.buffer_view
4096x4096xbf16=[1.5 -9 -2 -5.5 -1 8 -0.21875 -0.6875 -7.5 3.5 -3.75 0.4375 -1 -5 2.75 1.75 -5.5 -0.46875 -4.5 3.75 -2.25 1.875 -3.5 9 0.9375 -0.8125 -0.75 8 6 8 0.34375 -3.25 7 1.25 -6 4 3.75 1.75 9 -3.5 0.171875 0.5 3.5 -6.5 -2.75 7.5 -2.5 -1 -4 -14 -1.375 0.9375 11 0.9375 0.75 3.5 -0.00488281 -0.25 -1 5.5 -0.875 -0.6875 0.875 1.75 2.75 -0.34375 4 -4.5 -0.625 -0.5625 0.234375 -0.375 -0.0546875 14 -2 -4 0.5625 -1.25 1.25 0.46875 0.28125 6 5.5 -1.125 -0.34375 9 -0.625 -2.5 -0.5625 0.140625 5 3.25 1.25 -1.25 -0.34375 0.9375 12 -3.5 5 1.375 1 -1.375 -7 7 -0.40625 -0.3125 -1 0.15625 -0.21875 -4.5 -0.40625 -7 5.5 -1.875 5 -0.5 -3.75 1.125 -1.5 -0.5625 -1 8 0.21875 -1.25 3 0.625 -6 -5.5 -1.25 11 -0.101562 0.015625 -2.75 5 -0.25 2.25 -10 7.5 0.8125 -12 0.28125 1.125 1.5 -1 -1.875 -7 -0.46875 -2.75 -1 -0.25 -0.0351562 5.5 0.34375 -3 -3.25 -0.6875 -1.25 5.5 2.75 -3.75 -5.5 -8 -7 -4.5 -0.1875 -3.25 0.101562 1.5 -1.75 0.234375 10 -0.5625 -0.75 -0.5 -3.25 1.625 -0.625 -0.0292969 -0.1875 -2.75 -1.375 -0.6875 6 -4 0.0585938 -6.5 2.5 -0.21875 3.75 -1 -3.25 -0.46875 0.203125 -1.5 10 0.078125 -13 -0.6875 9 5 1.375 5 -0.75 9 -4 -0.109375 0.46875 7 -2.25 -10 1.25 -14 -2.5 6 -4 -8 -5.5 -1.5 0.4375 2.25 4 -1.375 -0.109375 0.15625 -0.34375 1.875 -6.5 6 -1.625 2.25 -0.375 -0.5625 9 1.25 8 0.34375 -0.8125 2 3.25 0.15625 0.28125 -0.6875 -3.5 -2.25 2 -0.5625 -3 0.5625 7 -0.046875 -3.5 -4 1.5 9 -7 -8 -5 5 -0.5625 -4 3.5 0.6875 3.25 2.75 9 -0.375 7.5 -0.6875 12 0.46875 -0.625 0.1875 12 0.203125 -0.21875 0.0703125 -12 0.5625 -5.5 -0.234375 -1.875 5.5 1.375 5.5 -1.375 -0.0703125 0.078125 -0.140625 0.5 0.15625 0.5625 3.5 0.375 -5 -0.625 -0.6875 5 -3.5 2.5 7.5 0.5625 -2.25 0.875 5.5 0.171875 -4.5 5 -0.0546875 0.75 6.5 -3.5 -3 -7.5 1.125 -11 -11 -0.25 0.9375 -4.5 1.25 -8 -3.75 2 0.3125 -2.5 -4 -2.5 -2 2 7.5 9 2 -0.9375 0.5 -11 -8 0.5625 0.6875 0.125 2.5 9 -0.8125 0.5625 -9 -0.28125 -2 -2 6 4 -7 2.5 0.40625 2.75 1 0.117188 1.625 0.0859375 3 -0.875 -0.6875 -0.234375 -0.9375 -2 2.25 3.75 -0.40625 -1.375 -7 0.3125 1.25 1.875 -0.625 -0.1875 0.203125 0.9375 -4.5 -0.5625 12 -2 -0.234375 1 3.25 -0.3125 -5 -3.75 0.9375 2.25 -0.875 0.75 1.5 -3.25 0.6875 6.5 -1.75 -1.375 2 0.28125 3.25 -0.0234375 3.75 1.25 8 -0.5 1.625 -0.8125 -0.8125 0.101562 0.375 1.875 9 0.75 -7 -7.5 -0.00878906 -8 -0.15625 -4.5 0.9375 0.40625 2 0.0078125 8 5 2.75 3 -9 0.125 -0.203125 0.625 6 -3.75 1.875 8 -0.375 -3 0.109375 -0.75 -4 -0.4375 5 0.0625 -0.015625 -0.4375 0.75 0.8125 -1 -0.101562 -0.171875 1.75 0.109375 -12 -5 9 0.109375 1.75 5.5 3.75 0.5625 -0.625 -0.078125 -0.0625 -3 -0.375 0.101562 1.25 7 -0.0703125 0.625 0.6875 -0.75 -9 0.5 2.75 3 -5.5 -2.5 -1 7.5 5.5 -2.5 2 0.4375 -4.5 7 9 15 0.34375 -0.625 0.875 5.5 6 3.25 2.25 -0.25 -0.40625 -0.6875 3.25 3.75 0.6875 8 1.5 0.5625 4 -1.625 -0.0214844 -3.25 -12 -3.75 0.00683594 7 3.5 -0.125 6 -3.5 -0.5625 -7 1 -0.00390625 -0.875 -0.203125 -0.101562 3.5 -0.6875 0.375 -0.6875 -6 2.5 2 0.3125 -6 -6 0.0703125 2.25 6.5 -2 -5.5 -0.0195312 0.625 2.25 5.5 0.171875 5.5 -0.3125 0.75 -5.5 -7.5 -0.5 4.5 1.375 -0.203125 -9 2 -1 -0.625 -0.4375 0.75 0.09375 -0.75 0.625 -5.5 -8 2.75 0.6875 -7 -3.75 -16 9 -1 -7 -0.140625 -1.5 -3.5 -3.25 -2 7 -0.078125 2.25 -0.3125 1.625 -0.1875 -3 -2.25 5.5 2.75 -0.117188 -2.75 0.21875 -1.75 -4.5 0.28125 0.6875 -6.5 -0.03125 2 -3.5 7 1.75 8 0.140625 -4 4.5 -0.46875 7 -3.25 3.25 -7 -6.5 -11 -6 -1.125 -0.03125 2.25 -7.5 -0.8125 2 -8 -1 -5.5 -0.0351562 3.5 -6 0.203125 2.75 -3.25 -1 7 -8 0.34375 0.5 1 0.0703125 -7.5 3 0.25 9 1 -0.46875 -4.5 -3.75 -4 -1 0.125 5.5 0.9375 -0.5625 -0.9375 -1.25 -5.5 -0.75 -0.203125 1.375 2.25 0.4375 -1.625 0.8125 2.75 0.101562 10 -2.25 -7.5 10 0.75 4.5 -5 1.5 -0.0703125 -3.25 -3.75 10 1.5 -0.5 -1 0.875 8 2.25 -5.5 0.15625 -10 -0.375 -8 -1.5 -0.8125 3.5 -2.25 2.5 1.25 -1.75 0.875 0.203125 0.75 0.171875 -1.25 1 -2 3.25 -1.25 0.28125 -1.125 -6 0.5 2.25 -0.9375 11 0.875 0.28125 -0.8125 -1.25 -5.5 -1.625 -5 0.5625 -1.375 -7.5 -0.5 4.5 -8 5 1.375 -0.75 -1.5 -11 -4.5 0.171875 -2.5 0.5625 9 -4 3 1.375 0.171875 -0.75 -0.375 0.15625 -6 2 1.875 -1.375 -0.28125 -7 -0.5625 -0.8125 -3.25 -0.3125 1.25 -1.625 -4 0.6875 1 2.25 12 -1.125 3.75 -6.5 0.40625 1 0.5625 2 -0.5 -7.5 7 -2.25 2.5 -0.4375 11 -3.75 -1.75 -2.75 -5.5 0.5 0.75 -5.5 -7.5 0.09375 -7.5 -0.0253906 -7.5 4.5 -4 0.375 -0.125 -0.15625 0.75 -3 0.25 -6 0.375 -1 5 0.171875 5.5 5 -0.875 1.375 0.1875 -2 2 0.0292969 0.9375 -2 1.375 5 4 -0.0078125 11 0.5625 0.5 3.75 0.75 -3.75 -2.25 -1.25 -1 1.625 6.5 2.75 -0.875 -0.5625 -2.25 0.5625 5 -1.5 0.875 0.0136719 2.25 6.5 0.625 0.3125 -1.75 -0.078125 -0.34375 2 -2.25 -0.5 2.5 0.28125 4.5 4 -3 2 1.5 -0.3125 -6 2 -0.4375 5 7.5 -0.4375 0.5625 -1.5 1.25 -0.15625 -0.46875 1 6 -1.625 -10 2 -0.101562 1.5 -0.125 -3.75 -2 5 -6 -2.75 -1.375 7 -6.5 6.5 5 4.5 -0.8125 -0.125 1.125 -4 -0.28125 -3.75 -0.0117188 8 -5 15 -5 6 -1.875 2.75 -1.5 2 -8 -9 3.5 0.117188 10 -8 -4.5 0.3125 -0.203125 -0.34375 -0.09375 0.0126953 -9 -0.625 -5.5 -2.75 -0.6875 0.21875 0.0214844 -2.5 -0.875 -4 0.4375 6 3.5 -3.25 2.25 -0.625 -2 -0.5 10 -0.140625 -1.375 0.171875 -0.25 0.3125 0.5 -4.5 -3.25 0.75 0.75 1.75 -7 0.9375 1.5 -0.28125 0.5625 -0.625 -2.75 -0.40625 -7.5 -4.5 5.5 -0.625 -0.875 0.46875 3.75 -1.875 1.5 0.000976562 0.6875 -7 -9 -0.25 -5 4 -0.0351562 1.625 -0.6875 0.28125 -0.46875 1.375 3.5 -2 0.4375 5 -1.25 0.0507812 1.375 3 4.5 -7 -1.375 -1.125 0.0625 -11 -0.4375 -0.46875 -5 9 2 -1.875 -8 7.5 0.25 -0.9375 -0.0859375 -3.5 0.4375 -1.75 -0.0195312 -0.5625 -4.5 -0.09375 0.375 -0.75 -0.3125 -4 0.15625 -1 2 -2.25 4.5 1.25 2 -0.3125 1.375 -8 -1.25 -4 1 -0.5625 1.25 3.25 3.5 3.75 -2.75 2.5 6.5 -1.25 0.875 -0.25 -0.25 -2 1.125 -1.625 -1.625...][...][...][...][...][...][...][...][...][...][...][...][...][...][...][...][...][...][...][...][...][......][...][...][...][...][...][...][...][...][...][...][...][...][...][...][...][...][...][...][...][...][...][...][...][...][...][...][...][...][...]

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