Programming Lemmy instance focused on GPUs. CUDA, OpenCL, ROCm, DirectX, Vulkan are all on subject here.
🌉 bridged from !gpu_programming@lemmy.world by Tidepool
Programming Lemmy instance focused on GPUs. CUDA, OpenCL, ROCm, DirectX, Vulkan are all on subject here.
🌉 bridged from !gpu_programming@lemmy.world by Tidepool
How I learned Vulkan and wrote a small game engine with it
Currently getting Hacker News hug of death right now, but hopefully in a few days the traffic subsides. From what I could load, it looks like a good article. https://web.archive.org/web/20240606103630/https://edw.is/learning-vulkan/ Archive.org does have a mirror.
Implementing a GPU's Programming Model on a CPU
Seems like a personal project that is basically a personal-version of the Intel "ispc" tool. Still, 2nd or 3rd programming languages of this nature isn't a bad thing, if anything, we need more ideas and more implementations to figure out how best to map GPU-like programming to AVX512 or other CPU SIMD languages.
The Book of Shaders
Found this reference online, figured I'd save it here. Looks like an excellent introduction to fragment/pixel shaders.
Learning DirectX 12
Sorry for the spam, just did a bit of a research / search and decided I needed to save at least these DirectX12 links and read up on them later.
Efficient Stream Compaction on Wide SIMD Many-Core Architectures
Stream Compaction is one of the most important applications of GPU prefix sums IMO. Of course, prefer a library over writing your own. DirectX11 (and 12) has AppendStructuredBuffers (https://learn.microsoft.com/en-us/windows/win32/direct3dhlsl/sm5-object-appendstructuredbuffer) for instance that performs this automatically. AVX512 even has "compress" and "expand" instructions that effectively perform this stream-compaction task. IMO, this is one of the "new era" methods of creating SIMD-datastructures. Its not often talked about, but its all over the place, the wizards / experts obviously know about this but somehow don't know how to tell us normal people how it works.
GCC Lands AVX-512 Fully-Masked Vectorization
Somewhat tangential to GPU_programming, but I think its still on subject as AVX512 is very similar to GPU-code fundamentally.
GCC makes a big advancement to its AVX512 code generation, for fully masked vectorization to handle less-than-full vectors.
Shader Printf in HLSL and DX12
Someone wanted a more portable printf implementation, so they created one for themselves.
I'll be giving this article a good look over for sure.
MLC | Making AMD GPUs competitive for LLM inference
I'm not so much into the deep learning stuff myself, but any GPU article is worthy of a spot here!
Solving MaxSAT with Matrix Multiplication
The abstract stuck out to me, and I like dabbling in the 3SAT stuff on a hobby level.
The gist is that these researchers have utilized the TensorCores / FP16 Matrix Multiplication routines found in neural-network chips/instructions to start searching for MaxSAT (which seems to be related to 3SAT somehow, I'll be reading more about this...)