Repository navigation
Treat iree-llvmcpu-target-cpu as an error outside of x86, and continue past errors - #15477
Merged
Merged
Conversation
mariecwhite
approved these changes
Nov 8, 2023
Contributor
|
We have to support |
Contributor
|
Those flags were introduced in the initial RISCV commit. However, more important flags should be |
Contributor
|
It seems the flag is nop in RISCV. I will send out a PR to clean it up. |
bjacob
added a commit
that referenced
this pull request
Nov 8, 2023
Following #15477, `cpu` is treated as a x86-only thing, except for the special value `host` that gets resolved to the actual host CPU and CPU features. JitGlobals creates a host target, that gets resolved accordingly. The resolved CPU is then recorded in a `hal.devices.targets` attribute. If the CPU field is set to the actual host CPU identifier there, then that will trigger the error message about that being a x86-only thing: ``` error: Resolution of target CPU to target CPU features is not implemented on this target architecture. Pass explicit CPU features instead of a CPU on this architecture, or implement that. ``` So this needs to be left empty in that case. No functional difference, as that CPU is just ignored anyway (which is what the error message is about).
ramiro050
pushed a commit
to ramiro050/iree
that referenced
this pull request
Dec 19, 2023
…nue past errors (iree-org#15477) See the discussion thread below https://discord.com/channels/689900678990135345/1171569395697467403/1171572035336548453 . Implementing `iree-llvmcpu-target-cpu` on arm64 is hopeless because Arm CPU names are under-defined. For instance, LLVM thinks that Cortex-A710 implies SVE, but most current Cortex-A710 based devices do not support SVE.
ramiro050
pushed a commit
to ramiro050/iree
that referenced
this pull request
Dec 19, 2023
Following iree-org#15477, `cpu` is treated as a x86-only thing, except for the special value `host` that gets resolved to the actual host CPU and CPU features. JitGlobals creates a host target, that gets resolved accordingly. The resolved CPU is then recorded in a `hal.devices.targets` attribute. If the CPU field is set to the actual host CPU identifier there, then that will trigger the error message about that being a x86-only thing: ``` error: Resolution of target CPU to target CPU features is not implemented on this target architecture. Pass explicit CPU features instead of a CPU on this architecture, or implement that. ``` So this needs to be left empty in that case. No functional difference, as that CPU is just ignored anyway (which is what the error message is about).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See the discussion thread below https://discord.com/channels/689900678990135345/1171569395697467403/1171572035336548453 .
Implementing
iree-llvmcpu-target-cpuon arm64 is hopeless because Arm CPU names are under-defined. For instance, LLVM thinks that Cortex-A710 implies SVE, but most current Cortex-A710 based devices do not support SVE.