-
Notifications
You must be signed in to change notification settings - Fork 198
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
Configure CUCC/CUFLAGS need to be updated for SYCL and HIP #830
Comments
Yes, we currently abuse CUCC and CUFLAGS as the device code compiler and flags for all the different GPU backends (cuda/hip/sycl). As for appending to rather than overwriting the CUFLAGS, you can use the following configure option: |
We have the same abuse happening in our code and trying figure out a path forward for CUDA/HIP/SYCP/Kokkos flags. Thanks for --with-extra vs override that. I missed that and I realize now more. A suggestion on the configure --help on environment vars. Move the --with-extra compile build flags into their own section right before the environment vars. And add to the message regarding the environment variables. The result would be (modulo formatting):
That might help, though admit I missed the message at the bottom about the override. |
I am building Hypre with SCYL and needed to modify the compile flags for when ipcx is used. After looking at the config.status file I found that the CUCC and CUFLAGS are used even though configure help says they are for CUDA
./configure --help
CUCC CUDA compiler command
CUFLAGS CUDA compiler flags
Understandable but a bit confusing. We are having to generalize similar flags/code in our project to accommodate CUDA/HIP/SYCL/KOKKOS.
I should also note that when I used CUFLAGS I was expecting the flags to be concatenated on to what configure setup. That is I wanted to add this: CUFLAGS="-fPIC"
But had to add this: CUFLAGS="-fPIC -O3 -fsycl -fsycl-unnamed-lambda"
Not sure what should have been expected.
The text was updated successfully, but these errors were encountered: