-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
target-cpu shouldn't default to native when cross-compiling #374
Comments
Is it working if you pass |
Can you check if |
When not cross-compiling, |
Cool. Thanks for confirming. I'll release the next version soon.
…On Sun, Feb 16, 2025, 16:50 Kornel ***@***.***> wrote:
Yes, it works now on ARM without any extra args. Works with --att too.
—
Reply to this email directly, view it on GitHub
<#374 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAQFI2QB23VP5OQIVMNF7D2QEB3XAVCNFSM6AAAAABW32R3D6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRRGYZTGOJXGM>
.
You are receiving this because you commented.Message ID:
***@***.***>
[image: kornelski]*kornelski* left a comment (pacak/cargo-show-asm#374)
<#374 (comment)>
Yes, it works now on ARM without any extra args. Works with --att too.
—
Reply to this email directly, view it on GitHub
<#374 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAQFI2QB23VP5OQIVMNF7D2QEB3XAVCNFSM6AAAAABW32R3D6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRRGYZTGOJXGM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
What about when you cross compile? It worked for me from x86 to aarch, but
I had to specify the processor because llvm-mca was defaulting to my
current one... Not sure if this is easy to fix though. It wanted a concrete
processor for all the timings stuff.
…On Sun, Feb 16, 2025, 16:51 Michael ***@***.***> wrote:
Cool. Thanks for confirming. I'll release the next version soon.
On Sun, Feb 16, 2025, 16:50 Kornel ***@***.***> wrote:
> Yes, it works now on ARM without any extra args. Works with --att too.
>
> —
> Reply to this email directly, view it on GitHub
> <#374 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAAQFI2QB23VP5OQIVMNF7D2QEB3XAVCNFSM6AAAAABW32R3D6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRRGYZTGOJXGM>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***>
> [image: kornelski]*kornelski* left a comment (pacak/cargo-show-asm#374)
> <#374 (comment)>
>
> Yes, it works now on ARM without any extra args. Works with --att too.
>
> —
> Reply to this email directly, view it on GitHub
> <#374 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAAQFI2QB23VP5OQIVMNF7D2QEB3XAVCNFSM6AAAAABW32R3D6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRRGYZTGOJXGM>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***>
>
|
However, when cross-compiling from ARM to x86-64, it still needs
|
works: but with
|
Yeah, same problem when cross compiling from x86 to ARM. While I can pick some concrete processor for cross-compilation - timings are not going to match. Maybe a better approach is to detect cross-compilation case and print some suggestions... Going to experiment a bit more before releasing then. |
--mca
option doesn't work on ARM due to assuming Intel asm syntax.I've tried working around this by adding cross compilation
--target=x86_64-apple-darwin
, but this results in no output at all, except:I needed to add
--target-cpu=skylake --mca-arg=-skip-unsupported-instructions=parse-failure
to get it working.When crosscompiling with
llvm-mca
you need to specify which CPU to use for timing information - it defaults to your current platform and error messages can be confusing.The text was updated successfully, but these errors were encountered: