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

Vectorization Compilation Problem on x86-Cuda Builds #1581

Open
rchen20 opened this issue Dec 12, 2023 · 0 comments
Open

Vectorization Compilation Problem on x86-Cuda Builds #1581

rchen20 opened this issue Dec 12, 2023 · 0 comments
Assignees
Labels
compilation reviewed Mark with this label when issue has been discussed by team vectorization API

Comments

@rchen20
Copy link
Member

rchen20 commented Dec 12, 2023

Marbl is having an issue building with -DRAJA_ENABLE_VECTORIZATION=On on x86-Cuda with clang, using RAJA v2022.10.5. Reported by William Hawkins.

The following clang+nvcc flags fail to build:
-march=core-avx2
-march=native

With this error:
error: "RAJA::expt::Register<int64_t, RAJA::expt::avx_register> (const RAJA::expt::Register<int64_t, RAJA::expt::avx_register> &) const" contains a vector, which is not supported in device code

Clang does not recognize -march=avx2.

Note: This is being tried on RZWHIPPET, but should investigate whether clang+nvcc is working anyway (probably on Pascal).

@rchen20 rchen20 self-assigned this Dec 12, 2023
@rhornung67 rhornung67 added the reviewed Mark with this label when issue has been discussed by team label Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compilation reviewed Mark with this label when issue has been discussed by team vectorization API
Projects
None yet
Development

No branches or pull requests

2 participants