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.

Get the Android app

Or read this on Phoronix

Read more on:

Photo of GPUs

GPUs

Photo of C++ code

C++ code

Photo of standard c

standard c

Related news:

News photo

John Carmack imagines a future where GPUs don't need PCs

News photo

Intel "Battlemage" GPUs Get Warm Reception

News photo

Amazon HyperPod Task Governance keeps GPUs running, cutting costs 40%