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

Serial backend portability #98

Open
plavin opened this issue Nov 10, 2022 · 2 comments
Open

Serial backend portability #98

plavin opened this issue Nov 10, 2022 · 2 comments

Comments

@plavin
Copy link
Contributor

plavin commented Nov 10, 2022

Clang doesn't support #pragma novector. Intel does, and I'm not sure about gcc. We need to support pragmas to disable auto-vectorization for these three compilers.

The file in question is src/serial/serial-kernels.c.

@avose
Copy link

avose commented Nov 10, 2022

For Clang, one might consider:
#pragma clang loop vectorize(disable)

For GCC, you could probably turn off auto vectorization for the whole file with a compile-time flag if that's acceptable:
-fno-tree-vectorize (after -O3 on the command line).

@plavin
Copy link
Contributor Author

plavin commented Nov 10, 2022

Thanks, that saves me a lot of reading. (It's nice to see you're still checking in on Spatter!)

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