https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100102
--- Comment #22 from Patrick Palka <ppalka at gcc dot gnu.org> --- (In reply to Eduard Rozenberg from comment #21) > @ppalka Huge thanks for this fix - it's working well for me. Very happy to > see the patch applied with no problems to gcc 10.3.0, because it could take > several years until the OS and Nvidia support gcc 11 or 12. Otherwise I > would have had to move back to gcc 10.2.0 and build custom kernels for quite > some time. > > Tested as follows: > * Rebuilt Slackware gcc 10.3.0 packages with the patch for `pt.c` > * Built Nvidia nccl-tests - build succeeded (was failing before the patch) > * Built latest pytorch git with Nvidia support - build succeeded (was > failing before the patch) Thanks a lot for testing the fix. It'll get backported to the 11 and 10 release branches later today.