-
Notifications
You must be signed in to change notification settings - Fork 571
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
Tpetra: compilation error with Cuda 12.2 and GCC 12.3 #12237
Comments
@trilinos/tpetra |
Lovely. We currently do not test CUDA 12 or GCC 12. Any suggestion as to where we can find a machine to reproduce this? |
@csiefer2 Weaver has both of those |
@maartenarnst I finally got around to trying a build on weaver (IBM Power) w/ GCC 12.2, Cuda 12.0 and OpenMPI 4.1.4 and Tpetra compiles just fine. Can you post whatever configure you used here so I can see if it is some magic option thing or if it really is some compiler issue in 12.3 that isn't in 12.2 |
Hi @csiefer2. Thanks for following up. We're building and testing in a docker container based on the cuda:12.2.0-devel-ubuntu22.04 image. It's x86, GCC 12.3, Cuda 12.2 and openmpi 4.1.2. I'll try to run checks again tomorrow with our configuration, as well as with gcc 12.2 and cuda 12.0 that your are using. I'll keep you updated, and I'll also send more details. Also tagging @romintomasetti. |
Configure I used:
|
I know what is causing this and it is a bug in the compiler. There is a bug filed with the nvcc team. It does not (or should not) happen with nvc++ compiler. I can provide a work around
and it should go away. Like I said it is in our compiler and with decltype. (you need to update the using statement too) I will link the internal bug with this ticket. with these changes... BTW, i can't provide a patch without a lot of approval, or I would |
Reproducer
|
@maartenarnst I have a PR up which blindly tries @bathmatt's fix. Can you check? |
* Tpetra: Working around GCC 12.3 + CUDA Compiler Bug As reporte din #12237 * Tpetra: More Matt's fix * Tpetra: Maybe fixing bug? * Update Tpetra_CrsGraph_def.hpp * Update Tpetra_CrsGraph_def.hpp * Update Tpetra_CrsGraph_def.hpp * Gihub editor introduces errors * Update Tpetra_CrsMatrix_def.hpp * Why does the github editor keep doing this?!?!?1
@csiefer2 et al, I just approved the fix in the compiler that should hit in 12.5 Sorry we couldn't fix it sooner. |
@brian-kelley @csiefer2
We are compiling Trilinos with Cuda 12.2 and with GCC 12.3 as the host compiler.
We're seeing a compilation error for the file
Tpetra_CrsMatrix_def.hpp
:It's quite mysterious because
row_entries_type
seems to be aKokkos::View
, so the line should be fine.I think I tracked it down to this commit:
which ultimately results in an include of
Kokkos_Sort.hpp
inTpetra_CrsMatrix_def.hpp
. It seems to be the include ofthrust/device_ptr.h
andthrust/sort.h
fromKokkos_Sort.hpp
that ultimately causes the issue. I.e., if I compile using an older version of Trilinos and add those two thrust includes toTpetra_CrsMatrix_def.hpp
, I get the same error.This is just a bug report. I have no explanation for this compilation error. And no fix to propose.
The text was updated successfully, but these errors were encountered: