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

Request: adding checked arguments with fallbacks #51

Open
david-cortes opened this issue Mar 13, 2023 · 0 comments
Open

Request: adding checked arguments with fallbacks #51

david-cortes opened this issue Mar 13, 2023 · 0 comments

Comments

@david-cortes
Copy link

Would be nice if this package offered some functionality to pass arbitrary compilation/linkage/include arguments to an extension, but to have those arguments checked beforehand for whether they are valid for the current compiler or not; and to be able to provide fallbacks in case they don't work.

For example, one might want to pass compilation argument -march=native if the compiler supports it, or fall back to -mcpu=native if it doesn't (e.g. GCC in platforms like aarch64 and ppc64), or leave it blank if neither is supported.

Same for example for something like -lmkl_rt, with a fallback to -lblas as another example.

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

1 participant