News: 0001511756

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

How AMD Is Taking Standard C/C++ Code To Run Directly On GPUs

([LLVM] 4 Hours Ago LLVM Cross-Compiling)


Back at the [1]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. This can work for NVIDIA GPUs as well but limitations imposed by NVIDIA's PTX intermediate format. There are also some open challenges around handling some functionality on GPUs.

In any event now that the [2]2024 LLVM Developers' Meeting videos have been published online, those wishing to learn more about this AMD effort can do so via YouTube:

There is also the [3]PDF slide deck that accompanies the video.

It's via this C/C++ toolchain for the GPU effort that they [4]ported DOOM to run entirely on the GPU and is further talked about in the presentation.



[1] https://www.phoronix.com/news/LLVM-2024-Meeting-Videos

[2] https://www.phoronix.com/news/LLVM-2024-Meeting-Videos

[3] https://llvm.org/devmtg/2024-10/slides/techtalk/Huber-A-CPlusPlus-Toolchain-for-Your-GPU.pdf

[4] https://www.phoronix.com/news/DOOM-ROCm-LLVM-Port



aerospace

Setif

NeoMorpheus

chuckula

habilain

Nille

DiamondAngle

andreano

ddriver

My friends, I am here to tell you of the wonderous continent known as
Africa. Well we left New York drunk and early on the morning of February 31.
We were 15 days on the water, and 3 on the boat when we finally arrived in
Africa. Upon our arrival we immediately set up a rigorous schedule: Up at
6:00, breakfast, and back in bed by 7:00. Pretty soon we were back in bed by
6:30. Now Africa is full of big game. The first day I shot two bucks. That
was the biggest game we had. Africa is primarily inhabited by Elks, Moose
and Knights of Pithiests.
The elks live up in the mountains and come down once a year for their
annual conventions. And you should see them gathered around the water hole,
which they leave immediately when they discover it's full of water. They
weren't looking for a water hole. They were looking for an alck hole.
One morning I shot an elephant in my pajamas, how he got in my
pajamas, I don't know. Then we tried to remove the tusks. That's a tough
word to say, tusks. As I said we tried to remove the tusks, but they were
imbedded so firmly we couldn't get them out. But in Alabama the Tuscaloosa,
but that is totally irrelephant to what I was saying.
We took some pictures of the native girls, but they weren't developed.
So we're going back in a few years...
-- Julius H. Marx [Groucho]