[Bug target/122783] gcc 15,16 refuses to compile correctly with nvptx target blackwell cards (sm_120) CUDA_ERROR_INVALID_CONTEXT (error 201), CUDA_ERROR_NOT_FOUND (error 500)
schulz.benjamin at googlemail dot com
gcc-bugzilla@gcc.gnu.org
Tue Dec 23 03:51:17 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122783
Benjamin Schulz <schulz.benjamin at googlemail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |MOVED
--- Comment #5 from Benjamin Schulz <schulz.benjamin at googlemail dot com> ---
Hi, the cuda sanitizer errors seem to be just gcc probing for cuda runtimes
available
I now have tried out the miscompilation in the matrix multiplication with an
old gtx 1660 ti super from 2018. The miscompilation appears there too, so it
does have nothing to do with my new blackwell rtx 5060 card.
I also made a better reproducer where one can see what goes wrong in that
matrix multiplication. It is connected to my struct using templates.
It does not happen if the type of the data is written directly in the class,
without templates... and it does not happen with -O1.
So I am closing this bug and move this to a new bug where the problem is
described more clearly
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123272
with a more fitting reproducer, which should be assessable for people with
knowledge in assembler.
More information about the Gcc-bugs
mailing list