-
Notifications
You must be signed in to change notification settings - Fork 8
Fix configure check when testing for CUDA support in UCC. #6
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
Conversation
|
Currently, a similar code to this is tested: This always fails with several compilers. |
|
Thank you very much for the report and the pull request. 👍 |
|
I've tried this patch with both NVHPC 25.9 & oneAPI 2025.2.0 for our upcoming software stage. Both failed before. CUDA support is reported as existing: Without the patch, configure fails like this: |
|
Yes, thanks again, also for this detailed explanation. I think this bug as not been detected before because it seems as if gcc allows for nested functions as an gcc-specific extension. 😲 (...which reminds me how important it is to check things with all common compilers. 😉) |
The first argument for AC_LANG_PROGRAM is missing an additional layer of braces, while the second argument defines a main which is automatically added by AC_LANG_PROGRAM. This fails the test with NVHPC and other Clang-based compilers, and might produce unexpected results with other compilers. To fix this, apply proper syntax to the ucc subconfigure. Signed-off-by: Jan André Reuter <j.reuter@fz-juelich.de>
a746bca to
304c9d4
Compare
|
Thanks again for your contribution. Are you ok with us incorporating your fix under ParaStation MPI's license, i.e. QPL? |
The first argument for AC_LANG_PROGRAM is missing an additional layer of braces, while the second argument defines a main which is automatically added by AC_LANG_PROGRAM.
This fails the test with NVHPC and other Clang-based compilers, and might produce unexpected results with other compilers.
To fix this, apply proper syntax to the ucc subconfigure.