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

[alt] remove default iree-compile extra args from onnx-iree mode #356

Merged
merged 4 commits into from
Nov 1, 2024

Conversation

zjgarvey
Copy link
Contributor

Always using iree-input-demote-i64-to-i32 was causing numerics problems since it wasn't loading i64 inputs correctly. Additionally the flags for specifying the chip for hip is out of date, and should be removed. Users should specify -ica "iree-hip-target=gfx942" "other-arg" "other-arg" ... if compiling for Mi300.

alt_e2eshark/e2e_testing/backends.py Outdated Show resolved Hide resolved
alt_e2eshark/e2e_testing/backends.py Outdated Show resolved Hide resolved
@zjgarvey zjgarvey requested a review from ScottTodd October 4, 2024 16:35
@zjgarvey
Copy link
Contributor Author

zjgarvey commented Oct 4, 2024

@ScottTodd Should I revert the change to the cl config to use --iree-hal-target-backends instead of --iree-hal-target-device?

@ScottTodd
Copy link
Member

@ScottTodd Should I revert the change to the cl config to use --iree-hal-target-backends instead of --iree-hal-target-device?

That's probably safer for now. Since the new flag hasn't been fully adopted in the IREE repo and doesn't have much mileage on it, it may be buggy. That's going to be easier to reason about upstream first, and that sort of flag change can also be made independently from the rest of the cleanup here.

@zjgarvey zjgarvey force-pushed the iree-config-updates branch from dd4269e to ecab023 Compare October 25, 2024 00:14
Copy link
Contributor

@vinayakdsci vinayakdsci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks! But let's wait for an approval from @ScottTodd too.

Comment on lines 138 to 140
self.extra_args = [
"--iree-hip-target=gfx90a",
]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI, we've been pulling this from an environment variable in other tests. See nod-ai/shark-ai#373 (comment) for some discussion

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that's a good idea. It's a bit verbose to need to write out all the flags repeatedly.

@zjgarvey zjgarvey merged commit a282591 into nod-ai:main Nov 1, 2024
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.

3 participants