Skip to content

Bump IREE requirement pins to 3.11.0rc20260304#2848

Merged
pravg-amd merged 4 commits intomainfrom
integrates/iree
Mar 5, 2026
Merged

Bump IREE requirement pins to 3.11.0rc20260304#2848
pravg-amd merged 4 commits intomainfrom
integrates/iree

Conversation

@shark-pr-automator
Copy link
Contributor

Diff: iree-org/iree@iree-3.11.0rc20260224...iree-3.11.0rc20260304

IREE bump duty engineer this week: @

Auto-generated by GitHub Actions using .github/workflows/update_iree_requirement_pins.yml.

github-actions bot and others added 4 commits March 5, 2026 03:25
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…ange

This commit updates shortfin to work with IREE PR #23576 (commit eacda0d,
Feb 25, 2026), which introduced iree_hal_device_group_t to own device
topology lifecycle.

Background:
-----------
IREE PR #23576 refactored the HAL module API to fix a lifetime ownership
problem. Previously, devices received raw pointers to topology data with
no guarantees that those pointers remained valid. The new device_group
abstraction owns the device lifecycle and ensures topology pointer
validity.

API Changes:
------------
The iree_hal_module_create() signature changed from 8 to 7 parameters:

Before:
  iree_hal_module_create(instance, policy, device_count, devices[],
                        flags, debug_sink, allocator, out_module)

After:
  iree_hal_module_create(instance, policy, device_group,
                        flags, debug_sink, allocator, out_module)

Implementation:
---------------
1. Added hal_device_group_ptr smart pointer wrapper in iree_helpers.h
   using the SHORTFIN_IREE_DEF_PTR macro

2. Updated program.cc to create device groups before module creation:
   - Single device: Uses iree_hal_device_group_create_from_device()
   - Multiple devices: Uses builder pattern with
     iree_hal_device_group_builder_* APIs

Benefits:
---------
- Clear lifetime semantics (module retains group; group retains devices)
- Topology safety (pointers guaranteed valid for device lifetime)
- Simplified allocation (no flexible array members)

References:
-----------
- IREE PR: iree-org/iree#23576
- Commit: eacda0d84b0a357d5ea701fec9137346fc724f59

Co-Authored-By: Claude Opus 4.6 <[email protected]>
The --iree-llvmgpu-enable-prefetch flag has been removed in the latest
IREE version and is no longer supported by iree-compile.

This flag was causing compilation failures with error:
  "Unknown command line argument '--iree-llvmgpu-enable-prefetch=1'"

Changes:
--------
- Removed --iree-llvmgpu-enable-prefetch from vae_test.py (2 occurrences)
- Removed --iree-llvmgpu-enable-prefetch from flux/compile.py

This is part of the IREE version bump to 3.11.0rc20260304 which removed
several deprecated compiler flags.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@github-actions
Copy link
Contributor

github-actions bot commented Mar 5, 2026

Coverage report

This PR does not seem to contain any modification to coverable code.

@pravg-amd pravg-amd merged commit 6f74120 into main Mar 5, 2026
54 of 55 checks passed
@pravg-amd pravg-amd deleted the integrates/iree branch March 5, 2026 10:13
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

Successfully merging this pull request may close these issues.

1 participant