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

Specify instruction set #12

Open
jtilly opened this issue Nov 17, 2021 · 2 comments
Open

Specify instruction set #12

jtilly opened this issue Nov 17, 2021 · 2 comments

Comments

@jtilly
Copy link

jtilly commented Nov 17, 2021

It would be great if we could specify the instruction set when compiling and not necessarily compile for march=native.

@siboehm
Copy link
Owner

siboehm commented Nov 29, 2021

I think an march parameter added to Model.compile() would make sense:

  • march=native: use host cpu architecture + all host cpu features.
  • march=<something else>: Use the specified architecture + all features available on this architecture (and newer). I'm not quite sure how to lookup the common CPU features for non-native architectures, but I will investigate.

Default would still be march=native.

@siboehm
Copy link
Owner

siboehm commented Jul 30, 2022

Note to self: I seems like the llvmlite pip packages only ship the backends required for the local arch, hence there's no way to set-up lleaves as a proper cross-compiler.

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

No branches or pull requests

2 participants