You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[IREE][RUNTIME] Failure: OUT_OF_RANGE; count 1318 of iree_hal_fence > 32; while invoking native function hal.fence.join; #11652
changed the title [-][IREE[RUNTIME] Failure: OUT_OF_RANGE; count 1318 of iree_hal_fence > 32; while invoking native function hal.fence.join;[/-][+][IREE][RUNTIME] Failure: OUT_OF_RANGE; count 1318 of iree_hal_fence > 32; while invoking native function hal.fence.join;[/+]on Dec 23, 2022
Thanks for flagging. This is one of those limits where 32 really should be more than enough, and something isn't compiling correctly. Ben and I are still on vacation, but this will need investigation... likely some invariant that hasn't been fully accounted for in the stream dialect.
IndexError: Error invoking function: c/runtime/src/iree/modules/hal/module.c:1117: OUT_OF_RANGE; count 102 of iree_hal_fence > 32; while invoking native function hal.fence.join; while calling import;
7gb is big for a repro O_O would be good to figure out how to shrink that for future ones - eliding element attrs should help and still allow this to reproduce.
Still (very slowly) compiling, but did notice that dispatch region formation is leaving empty tensors around outside of dispatches - @MaheshRavishankar is this a known issue? Lots of these:
Still (very slowly) compiling, but did notice that dispatch region formation is leaving empty tensors around outside of dispatches - @MaheshRavishankar is this a known issue? Lots of these:
Activity
[-][IREE[RUNTIME] Failure: OUT_OF_RANGE; count 1318 of iree_hal_fence > 32; while invoking native function hal.fence.join;[/-][+][IREE][RUNTIME] Failure: OUT_OF_RANGE; count 1318 of iree_hal_fence > 32; while invoking native function hal.fence.join;[/+]vivekkhandelwal1 commentedon Dec 26, 2022
I don't know how but the model ran successfully for CPU by changing this value 32 (https://github.com/iree-org/iree/blob/main/runtime/src/iree/modules/hal/module.c#L1116) to 10240. For GPU it threw the following error:
stellaraccident commentedon Dec 27, 2022
Thanks for flagging. This is one of those limits where 32 really should be more than enough, and something isn't compiling correctly. Ben and I are still on vacation, but this will need investigation... likely some invariant that hasn't been fully accounted for in the stream dialect.
jinchen62 commentedon Jan 6, 2023
I got the same issue.
IndexError: Error invoking function: c/runtime/src/iree/modules/hal/module.c:1117: OUT_OF_RANGE; count 102 of iree_hal_fence > 32; while invoking native function hal.fence.join; while calling import;[IREE-HAL-FENCE] Temporary fix for iree_hal_fence > 32
benvanik commentedon Jan 9, 2023
I'll take a look.
7gb is big for a repro O_O would be good to figure out how to shrink that for future ones - eliding element attrs should help and still allow this to reproduce.
benvanik commentedon Jan 9, 2023
Still (very slowly) compiling, but did notice that dispatch region formation is leaving empty tensors around outside of dispatches - @MaheshRavishankar is this a known issue? Lots of these:
(this prevents us from treating the result tensor as write-only)
There's quite a few of these in the model (89+ at this stage), the source looks like:
benvanik commentedon Jan 9, 2023
Looks like SimplifyGlobalAccesses may be doing something wrong with the global seed. Will have to look in to that separately.
MaheshRavishankar commentedon Jan 9, 2023
THere was a regression on that but I fixed it. Maybe regressed again.
emptytensors should be pull in.benvanik commentedon Jan 9, 2023
This fence issue seems to be caused by the FuseGlobals pass not fusing the constant timepoints. I'm not sure why yet but should be an easy fix.
11 remaining items
[IREE-HAL-FENCE] Temporary fix for iree_hal_fence > 32
[IREE-HAL-FENCE] Temporary fix for iree_hal_fence > 32
[IREE-HAL-FENCE] Temporary fix for iree_hal_fence > 32
[IREE-HAL-FENCE] Temporary fix for iree_hal_fence > 32
[IREE-HAL-FENCE] Temporary fix for iree_hal_fence > 32
[IREE-HAL-FENCE] Temporary fix for iree_hal_fence > 32
[IREE-HAL-FENCE] Temporary fix for iree_hal_fence > 32
[IREE-HAL-FENCE] Temporary fix for iree_hal_fence > 32
[IREE-HAL-FENCE] Temporary fix for iree_hal_fence > 32
[IREE-HAL-FENCE] Temporary fix for iree_hal_fence > 32
[IREE-HAL-FENCE] Temporary fix for iree_hal_fence > 32
[IREE-HAL-FENCE] Temporary fix for iree_hal_fence > 32
[IREE-HAL-FENCE] Temporary fix for iree_hal_fence > 32
[IREE-HAL-FENCE] Temporary fix for iree_hal_fence > 32
Allow partial subsets of correlated globals to fuse. (#11768)