2024-12-14 23:35:00
www.phoronix.com
An open-source developer at AMD has carried out a DOOM port that runs almost entirely atop AMD GPUs for rendering and the game logic. This DOOM GPU port relies on the AMD ROCm library with the LLVM libc C library for offloading the classic DOOM to the AMD GPU.
Joseph Huber who works for AMD decided to experiment with porting DOOM to run atop AMD GPUs using ROCm and the LLVM C library for GPUs. Huber explains in his GitHub repository for this intriguing DOOM port:
“The clang compiler can target GPUs directly. We emit a single kernel that calls the ‘main’ function. Functions that require the operating system are handled through the RPC interface. See my LLVM talk for more information.
This implementation defines the amdgpu-loader utility, which handles launching the main kernel, setting up the SDL2 window interface, and provides functions to get the input keys and write the output framebuffer. Okay, it’s not entirely on the GPU, but all the logic and rendering runs on the GPU.”
And here is Huber showing off this DOOM GPU port with LLVM libc + ROCm:
Fascinating port and great for showing off the possibilities of the LLVM C library for GPUs. Those curious about the code or to learn more on the project, visit this GitHub repository.
Keep your files stored safely and securely with the SanDisk 2TB Extreme Portable SSD. With over 69,505 ratings and an impressive 4.6 out of 5 stars, this product has been purchased over 8K+ times in the past month. At only $129.99, this Amazon’s Choice product is a must-have for secure file storage.
Help keep private content private with the included password protection featuring 256-bit AES hardware encryption. Order now for just $129.99 on Amazon!
Support Techcratic
If you find value in Techcratic’s insights and articles, consider supporting us with Bitcoin. Your support helps me, as a solo operator, continue delivering high-quality content while managing all the technical aspects, from server maintenance to blog writing, future updates, and improvements. Support Innovation! Thank you.
Bitcoin Address:
bc1qlszw7elx2qahjwvaryh0tkgg8y68enw30gpvge
Please verify this address before sending funds.
Bitcoin QR Code
Simply scan the QR code below to support Techcratic.
Please read the Privacy and Security Disclaimer on how Techcratic handles your support.
Disclaimer: As an Amazon Associate, Techcratic may earn from qualifying purchases.