Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sharktank Data-Dependent tests reporting workgroup distribution verification errors #1007

Open
Tracked by #1004
renxida opened this issue Feb 25, 2025 · 2 comments
Open
Tracked by #1004

Comments

@renxida
Copy link
Contributor

renxida commented Feb 25, 2025

No description provided.

@renxida
Copy link
Contributor Author

renxida commented Feb 25, 2025

CI run: https://github.com/nod-ai/shark-ai/actions/runs/13519729609/job/37776128410?pr=1003

Error message:

2025-02-25T11:21:31.1576148Z E               /shark-dev/tmp/tmph4kwxa_mFluxTest/model.mlir:2644:12: error: 'linalg.generic' op write affecting operations on global resources are restricted to workgroup distributed contexts.
2025-02-25T11:21:31.1576863Z E                   %923 = torch.aten.add.Tensor %922, %17, %int1_131 : !torch.vtensor<[1,18432],f32>, !torch.vtensor<[18432],f32>, !torch.int -> !torch.vtensor<[1,18432],f32>
2025-02-25T11:21:31.1577246Z E                          ^
2025-02-25T11:21:31.1577607Z E               /shark-dev/tmp/tmph4kwxa_mFluxTest/model.mlir:2642:12: error: 'func.func' op failed on workgroup distribution verification
2025-02-25T11:21:31.1578123Z E                   %922 = torch.aten.mm %920, %921 : !torch.vtensor<[1,3072],f32>, !torch.vtensor<[3072,18432],f32> -> !torch.vtensor<[1,18432],f32>
2025-02-25T11:21:31.1578444Z E                          ^
2025-02-25T11:21:31.1580897Z E               /shark-dev/tmp/tmph4kwxa_mFluxTest/model.mlir:2642:12: error: failed to run translation of source executable to target executable for backend #hal.executable.target<"rocm", "rocm-hsaco-fb", {abi = "hip", iree.gpu.target = #iree_gpu.target<arch = "gfx942", features = "", wgp = <compute =  fp64|fp32|fp16|int64|int32|int16|int8, storage =  b64|b32|b16|b8, subgroup =  shuffle|arithmetic, dot =  dp4xi8toi32, mma = [<MFMA_F32_16x16x4_F32>, <MFMA_F32_16x16x16_F16>, <MFMA_F32_32x32x8_F16>, <MFMA_F64_16x16x4_F64>, <MFMA_F32_16x16x16_BF16>, <MFMA_F32_32x32x8_BF16>, <MFMA_F32_16x16x32_F8E5M2FNUZ>, <MFMA_F32_16x16x32_F8E5M2FNUZ_F8E4M3FNUZ>, <MFMA_F32_16x16x32_F8E4M3FNUZ>, <MFMA_F32_16x16x32_F8E4M3FNUZ_F8E5M2FNUZ>, <MFMA_F32_32x32x16_F8E5M2FNUZ>, <MFMA_F32_32x32x16_F8E5M2FNUZ_F8E4M3FNUZ>, <MFMA_F32_32x32x16_F8E4M3FNUZ>, <MFMA_F32_32x32x16_F8E4M3FNUZ_F8E5M2FNUZ>, <MFMA_I32_16x16x32_I8>, <MFMA_I32_32x32x16_I8>], subgroup_size_choices = [64], max_workgroup_sizes = [1024, 1024, 1024], max_thread_count_per_workgroup = 1024, max_workgroup_memory_bytes = 65536, max_workgroup_counts = [2147483647, 2147483647, 2147483647], max_load_instruction_bits = 128, simds_per_wgp = 4, vgpr_space_bits = 16384>>, ukernels = "none", waves_per_eu = 2 : i64}>
2025-02-25T11:21:31.1583572Z E                   %922 = torch.aten.mm %920, %921 : !torch.vtensor<[1,3072],f32>, !torch.vtensor<[3072,18432],f32> -> !torch.vtensor<[1,18432],f32>
2025-02-25T11:21:31.1583906Z E                          ^

@renxida
Copy link
Contributor Author

renxida commented Feb 25, 2025

@MaheshRavishankar might be able to help. Found this iree-org/iree#20063 in the iree commit history. Do I need to specify a flag to fix this error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant