Get the latest tech news
How AMD Is Taking Standard C/C++ Code To Run Directly On GPUs
Back at the 2024 LLVM Developers' Meeting was an interesting presentation by AMD engineer Joseph Huber for how they have been exploring running common, standard C/C++ code directly on GPUs without having to be adapted for any GPU language / programming dialects or other adaptations.
Back at the 2024 LLVM Developers' Meeting was an interesting presentation by AMD engineer Joseph Huber for how they have been exploring running common, standard C/C++ code directly on GPUs without having to be adapted for any GPU language / programming dialects or other adaptations. Joseph Huber of AMD talked about how the GPU can be treated as a standard hosted target by porting the LLVM C library, compiler run-time, and C++ run-time to run on modern GPUs so in turn regular C/C++ code can be compiled to target the GPU without having to go the route of OpenMP, OpenACC, or any other vendor-specific languages. In effect they are porting LLVM C/C++ run-times to work on GPUs via cross-compiling.
Or read this on Phoronix