Re:GCC Rust Approved by GCC Steering Committee
by pjmlp on Monday July 11, 2022 @06:13PM
(#32062727)
Actually it was the other way around, CUDA was fixed to follow C++11 memory model.
There are a couple of CppCon talks on the subject.
Re:GCC Rust Approved by GCC Steering Committee
by trimir2022 on Monday July 11, 2022 @07:37PM
(#32063627)
Partially correct, even now, SG1 in C++ fixes a lot of things in C++ specification to allow for CUDA like approaches.
It also allows people to design new backends (looking at CUDA LLVM backends)by finding out the right abstraction to support performance. For example, implementing a C or C++ compatible CUDA backend required the C++ committee to make changes to the memory model / consistency guarantees of C++ atomics. If C or C++ had only depended on compiler implementation for it, then there would have just been different implementations with different guarantees with no consistencies between them, and no single way to even define why they were different.