Skip to content

Instantly share code, notes, and snippets.

@AmosLewis
Created January 31, 2025 19:02
Show Gist options
  • Select an option

  • Save AmosLewis/59b3c54d34eff62172810d41cfcf13c5 to your computer and use it in GitHub Desktop.

Select an option

Save AmosLewis/59b3c54d34eff62172810d41cfcf13c5 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<[32,4096],bf16> {
%int26 = torch.constant.int 26
%int15 = torch.constant.int 15
return %arg0 : !torch.vtensor<[32,4096],bf16>
}
}
@AmosLewis
Copy link
Author

iree-compile faulty_inp2.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=init2.vmfb

iree-run-module --hip_use_streams=true --device=hip://0 --function=faulty --module=init2.vmfb [email protected] [email protected]
EXEC @faulty
result[0]: hal.buffer_view
32x4096xbf16=[0.0437012 -2.15625 -0.90625 -0.464844 -14.875 0.636719 0.000701904 0.0437012 0.472656 -0.322266 -1.39844 0.105957 0.234375 0.345703 -0.0629883 -0.041748 -0.0471191 -0.0164795 0.917969 0.882812 -1.41406 0.0107422 0.0196533 -5.1875 0.0493164 0.0446777 -0.244141 0.474609 -2.73438 0.511719 0.302734 -0.566406 0.169922 -0.933594 0.390625 -1.51562 -1.1875 0.722656 -0.480469 -7.40625 0.0380859 -0.000541687 -2.125 -0.435547 0.267578 -1.85938 -0.0354004 0.00860596 -0.259766 -0.558594 -3.04688 0.0141602 3.1875 -0.515625 -0.0991211 -0.144531 0.578125 -0.137695 -0.105957 -3.82812 0.000888824 -0.000442505 -1.51562 0.0144653 -2.29688 -0.189453 0.376953 0.816406 -0.0397949 -0.0344238 -0.000118732 -0.000284195 -0.00212097 2.46875 1.63281 -1.72656 -0.000383377 1.85938 -0.0017395 2.07812 0.519531 -1.16406 -3.85938 -0.151367 -0.00476074 1.17969 0.0125732 -5.375 0.24707 -0.1875 -0.546875 -6.5 0.392578 0.048584 -0.160156 1.49219 0.0537109 -0.203125 -0.0296631 -0.141602 -0.298828 0.0424805 0.300781 13.4375 -1.89844 0.026001 -0.0235596 2.375 0.00442505 -0.0274658 -0.0524902 -4.90625 0.224609 1.4375 -1.0625 -1.03906 -0.542969 -2.15625 -0.398438 -1.86719 -3.09375 -1.95312 -0.582031 0.166992 -1.17969 -0.0108643 -2.1875 -0.800781 -3.17188 0.322266 0.621094 0.0014267 1.11719 23.375 0.0126343 1.08594 -0.332031 0.699219 -0.0015564 0.239258 -0.804688 0.026123 0.3125 -0.0133667 6.53125 0.0678711 -0.863281 -0.847656 -1.41406 0.0306396 0.00848389 -0.146484 0.113281 0.0649414 0.219727 -0.15918 0.0844727 -0.285156 -0.314453 0.431641 -0.523438 0.769531 -0.349609 0.0517578 -0.765625 1.85156 1.04688 -0.115234 -0.455078 -0.00038147 -0.0106201 0.0212402 0.189453 -0.046875 2.75 -0.0230713 0.00357056 0.00030899 0.199219 0.318359 0.263672 -0.202148 -0.0732422 -1.92188 1.125 -0.363281 1.35156 0.0380859 0.597656 -0.0766602 0.285156 0.00056839 0.000873566 -1.63281 10.25 0.0319824 0.208008 -0.125 -0.0515137 10.4375 -0.0544434 0.746094 -0.00338745 0.371094 1.11719 5.8125 -0.000823975 -0.0673828 -0.318359 -0.124512 0.902344 0.0976562 8.4375 -0.380859 -0.730469 -0.347656 0.820312 -0.0756836 0.111816 -0.0163574 -2.0625 -0.204102 -0.0218506 -0.867188 -0.0270996 -4.59375 -0.207031 2.78125 2.29688 -0.421875 0.00689697 0.00805664 -0.585938 -0.00166321 -0.9375 -0.00308228 0.102051 0.757812 0.0893555 1.07031 0.00352478 0.000478745 -0.0688477 0.109863 0.0673828 0.00062561 -0.182617 0.925781 -4.125 -0.0412598 -0.00430298 0.214844 -0.152344 0.539062 -0.125977 0.102539 0.257812 -2.32812 0.029541 2.26562 2.1875 -0.84375 -0.433594 -1.47656 18.625 0.151367 -1.21094 0.0991211 1.15625 -1.02344 0.000335693 -0.230469 -0.396484 0.435547 0.235352 -0.324219 -0.175781 -0.000364304 0.871094 -0.003479 -0.0349121 1.79688 -0.578125 -7.21875 0.00576782 0.0253906 -0.0600586 -0.00262451 0.048584 -0.125 3.3125 -15.6875 -0.730469 -0.0223389 -0.188477 -0.000762939 -0.707031 -1.01562 -2.21875 -0.291016 -0.00811768 -2.10938 -0.0252686 0.765625 -0.00363159 -0.0893555 -0.408203 -0.125977 -0.034668 0.460938 2.10938 -0.308594 -0.726562 -0.124023 6.96875 1.85938 -0.0366211 0.150391 1.27344 0.090332 -1.66406 -0.136719 0.0424805 0.285156 -0.515625 -0.902344 -0.234375 0.117676 1.39844 0.208984 0.271484 -0.515625 0.0688477 0.0620117 0.0133057 0.275391 -0.0493164 0.0507812 0.0038147 -0.151367 -0.400391 -0.126953 0.000135422 -0.597656 0.000583649 -0.835938 -4.09375 -0.949219 -1.9375 -0.192383 1.14844 0.000488281 -0.201172 -0.010498 0.036377 -0.433594 -10.25 -0.0961914 -0.0402832 0.0600586 0.0708008 0.141602 -0.140625 3.04688 -1.45312 -10.9375 -0.000151634 0.585938 0.421875 0.632812 0.208008 -0.984375 0.210938 -0.241211 0.585938 -0.757812 -0.000222206 -0.443359 -0.445312 0.0952148 -0.000253677 -0.929688 0.0327148 -0.232422 0.941406 -0.000108719 0.550781 0.318359 0.388672 -2.5 1.22656 -0.00224304 -0.722656 -0.621094 0.114746 -0.332031 0.0247803 -0.527344 -0.000858307 -1.94531 -0.0228271 0.535156 -0.0771484 0.333984 -0.109375 0.5625 -0.408203 0.392578 -3.03125 0.175781 -0.351562 0.699219 0.605469 0.00105286 -0.388672 -0.00382996 1.00781 4.625 -0.0454102 -0.328125 -0.18457 -0.679688 -1.19531 -1.67188 -0.376953 0.176758 -0.441406 -0.789062 -0.679688 -1.19531 0.414062 2.23438 0.90625 -0.00738525 1.48438 0.029541 0.00756836 -0.0124512 -0.248047 0.921875 -0.0228271 -0.0177002 0.00195312 0.546875 -1.17969 -0.941406 -0.00219727 0.000473022 0.96875 0.000549316 -0.139648 2.14062 -0.478516 -0.902344 -2.67188 0.208984 1.21875 5.57899E-05 -1.14062 0.0147705 -0.00692749 -0.447266 -0.00299072 0.0180664 0.0419922 -1.69531 0.0515137 -0.0197754 -0.175781 -0.3125 1.97656 0.000839233 0.554688 -3.0625 0.726562 0.402344 -0.234375 0.988281 -0.144531 1.22656 -0.503906 -0.0292969 6.6875 0.953125 0.102051 0.339844 0.000137329 -0.0045166 0.0209961 -1.36719 1.75781 -6.84375 1.04688 -0.00262451 -0.304688 0.445312 -2.98438 0.652344 0.0177002 -0.980469 -9.6875 0.0583496 -0.617188 -0.335938 0.188477 -0.0478516 -0.0649414 -2.20312 -0.0192871 -4.78125 -0.498047 9.75 -0.466797 -0.378906 -0.0272217 -0.570312 -0.0283203 -0.105469 0.024292 -0.074707 0.0140991 0.0157471 -0.78125 0.191406 0.0568848 -0.457031 0.178711 0.166992 -0.332031 2.8125 0.0708008 0.0179443 -0.00726318 0.0400391 0.0227051 3.96875 0.00196838 -0.425781 -0.0269775 -0.605469 -0.00109863 -3.98438 -0.0324707 -0.761719 0.392578 0.574219 0.00628662 0.300781 0.0111084 -0.000227928 -0.236328 -0.675781 -0.527344 0.455078 -0.0839844 -0.265625 0.0566406 -2.53125 1.26562 8.375 -1.01562 4.15625 -0.0145874 2.01562 2.65625 -15.9375 -0.414062 -0.041748 1.36719 -0.941406 -0.00958252 0.427734 -1.45312 -0.804688 -0.451172 0.000465393 -0.527344 0.00259399 -1.10938 0.0524902 0.75 2.01562 0.106445 0.174805 0.466797 -4.9375 -1.39844 -1.35156 1.5 0.988281 7.71875 -0.259766 0.015625 -0.933594 -0.679688 0.480469 -0.289062 -0.40625 -3.375 0.625 -0.498047 -0.00124359 -0.1875 1.05469 1.08594 0.328125 -0.298828 21.5 -0.0488281 0.0786133 -0.302734 0.065918 -0.523438 0.045166 -3.5 -0.339844 -0.0751953 0.835938 -0.00233459 -0.298828 0.730469 0.198242 0.0306396 0.910156 -2.95312 0.357422 0.558594 0.0236816 0.503906 0.167969 1.46875 -0.339844 -0.118652 -0.0258789 -0.703125 -0.146484 5.65625 0.0368652 0.695312 -1.23438 0.0192871 0.00549316 0.400391 1.27344 -0.285156 0.123535 -0.882812 -2.76562 -3.96875 -0.392578 5.875 1.65625 -4.81606E-05 -0.0311279 1.65625 0.0358887 -0.00619507 -0.0839844 -0.00372314 -0.605469 -0.875 -0.000774384 -0.139648 -5.1875 1.32031 0.0466309 5.46875 0.546875 -2.71875 0.0142212 -0.00537109 -0.0175781 -0.0098877 0.796875 0.166992 -1.92969 0.211914 -0.511719 -0.00227356 -0.135742 0.120117 0.0303955 -1.13281 0.734375 0.090332 1.35938 0.523438 -0.320312 -0.000549316 4.96875 -0.00184631 -0.328125 -5.31673E-05 -0.0151367 -2.01562 -0.00267029 1.08594 0.00750732 -0.84375 -0.472656 -2.17188 0.177734 -0.328125 -0.00387573 0.00043869 -0.1875 0.0108643 -6.96875 0.273438 11.4375 -0.00320435 -0.0756836 -0.574219 -0.128906 -0.330078 -1.41406 0.789062 -0.000888824 0.0756836 -0.108398 -0.851562 -0.041748 -1.95312 0.298828 -0.351562 1.71875 1.71094 0.185547 -0.0383301 -4.625 0.0517578 0.0172119 -0.474609 -0.0703125 0.116211 -0.785156 0.121582 0.00195312 0.0219727 -0.0664062 0.00292969 -2.59375 -0.000602722 0.0683594 1.86719 0.345703 -0.00151062 0.0285645 -0.390625 -1.42969 0.4375 -0.363281 -0.953125 -0.271484 -0.000576019 0.0664062 -0.0664062 -0.00396729 0.304688 -1.07812 -0.945312 1.82031 -5.1856E-06 0.714844 -0.217773 -1.58594 2.23438 -2.10938 -0.00958252 -0.679688 0.160156 -2.03125 -0.0483398 -0.640625 -0.0332031 -0.165039 0.90625 0.198242 -0.0742188 -2.29688 -0.925781 6.75 -4.84375 0.0849609 -1.50781 -0.0118408 0.0113525 -1.61719 8.0625 0.0532227 0.165039 0.287109 0.15625 0.855469 0.314453 -1.19531 -0.0246582 -0.0893555 -0.158203 -0.511719 0.359375 -0.486328 -0.0133057 0.425781 2.39062 -0.283203 0.0025177 0.00964355 -0.285156 0.0917969 0.241211 -0.176758 -0.175781 -0.445312 -0.0142822 -0.392578 0.045166 0.640625 0.00769043 -0.245117 0.09375 0.0218506 -1.53125 -0.123535 -0.386719 -0.00122833 0.0324707 0.0583496 -0.0339355 -0.527344 -1.00781 1.375 -0.106934 -0.15332 0.00204468 -4.90625 0.416016 0.980469 -1.34375 -0.605469 -0.0280762 0.478516 -0.118652 0.208008 2.5 -0.601562 0.249023 0.000190735 0.00601196 0.337891 3.48438 1.17969 0.972656 1.00781 -0.0476074 -0.158203 -0.871094 -0.00497437 -0.482422 -0.122559 0.460938 1.20312 0.519531 0.792969 0.165039 -3.89062 11 -2.92188 0.21582 -0.171875 -1.70312 0.000276566 0.00909424 1.11719 0.172852 -0.515625 -0.283203 -0.0439453 0.00891113 -0.601562 -0.00171661 0.28125 -1.10156 -0.00939941 -0.988281 0.0197754 -1.09375 1.92188 -0.628906 0.150391 9.39369E-05 -0.439453 -0.102539 -0.00616455 -4.64916E-05 -0.0256348 0.00970459 -0.00396729 -0.253906 1.3125 0.233398 -7.5 6.34375 -0.494141 -0.135742 0.0319824 0.101562 -0.125 0.515625 0.132812 0.519531 -1.86719 -5.03125 -0.154297 0.000375748 -0.0703125 -0.203125 2.23438 -0.00190735 -0.0932617 0.00134277 -0.0373535 0.0124512 0.0198975 1.17969 0.318359 0.0649414 0.00476074 -0.984375 -0.652344 0.457031 0.0175781 0.0327148 0.730469 0.000537872 -0.800781 -0.318359 -0.013916 -1.17969 -0.365234 -4.59375 0.601562 -0.00842285 -1.60938 -1.94531 -1.14062 -0.195312 0.339844 2.4375 0.546875 0.00585938 0.0192871 -0.71875 0.496094 -0.235352 -0.558594 1.50781 0.00476074 5.125 -0.175781 0.131836 1.09375 -0.542969 -0.988281 -0.0192871 0.00610352 0.652344 -1.45312 -0.03125 0.0407715 0.400391 -0.0118408 -1.47656 -0.00173187 0.882812 -0.585938 -1.125 0.233398 0.0375977 1.57812 -2.85938 0.000324249 0.00121307 0.0446777 1 0.0461426 0.0410156 -0.0673828 1.95312 0.103027 0.0301514 -9.375 -0.00671387 0.00662231 0.00726318 -0.0240479 0.00209045 -0.910156 1.98438 -2.0625 0.036377 -2.10938 -2.625 -0.996094 -0.219727 -2.64062 -0.345703 -0.00159454 -0.0032196 -0.00680542 6.375 -0.875 0.174805 2.17188 0.167969 0.0874023 2.23438 -0.373047 0.000149727 -0.292969 -0.0415039 -0.632812 -0.289062 -0.00363159...][...][...][...][...][...][...][...][...][...][...][...][...][...][...][...][...][...][...][...][...][...][...][...][...][...][...][...][...][...][...][...]

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