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
Segfault when creating multiple IREE SystemContexts #9277
Indeed.. The actual issue is two configs, not two contexts. If you have one global config, that will work.
(The config API has been in need of work for a long time. Historically we've held off on doing to much there until we have better low level APIs for default config/multi device -- but even barring that, as you say, a crash is not ok and should be fixed)
Note that it's easy to do this in ways that are more subtle. e.g., I think calling load_vm_flatbuffer twice in the same program has the same issue, because it creates a Config internally. That's an API footgun...
Let me take a pass through and clean this up (probably tomorrow). This part of the API has existed since day 1 as a poc and had never gotten any real attention.
Activity
stellaraccident commentedon Jun 2, 2022
Indeed.. The actual issue is two configs, not two contexts. If you have one global config, that will work.
(The config API has been in need of work for a long time. Historically we've held off on doing to much there until we have better low level APIs for default config/multi device -- but even barring that, as you say, a crash is not ok and should be fixed)
hawkinsp commentedon Jun 2, 2022
Note that it's easy to do this in ways that are more subtle. e.g., I think calling
load_vm_flatbuffertwice in the same program has the same issue, because it creates aConfiginternally. That's an API footgun...stellaraccident commentedon Jun 2, 2022
Let me take a pass through and clean this up (probably tomorrow). This part of the API has existed since day 1 as a poc and had never gotten any real attention.
Rework Python driver/device creation.
Rework Python driver/device creation.
rsuderman commentedon Jul 14, 2022
Tested at head and no longer failing.
Rework Python driver/device creation.
Rework Python driver/device creation. (#9330)