r/CUDA • • 3h ago

How to get a job?

9 Upvotes

Hey guys, I want to get a job as an Inference Engineer/ CUDA Programmer. I’m currently working as an AI and Data Engineer at a Vehicle Parts company in USA. I have been learning CUDA since the beginning of this year, I started with Metal(Apple) then shifted to CUDA, have a few good PRs and have 3 open PRs in vLLM. I would like your suggestion on what I can do differently and what I should do to get a job in Inference. My target is May-June next year as it will be 1 year at my current company.


r/CUDA • • 5h ago

Scaling from a single GPU to multi-GPU and multi-node systems | Free webinar

11 Upvotes

We're hosting a free technical webinar with Henry Wu, Henry Wu, Executive Director on ML/AI at Wells Fargo and bestselling author of Distributed AI Systems on December 5 at 11 AM ET.

The session will explore:

  • Scaling workloads across multiple GPUs and nodes
  • Inter-GPU communication and performance bottlenecks
  • Data, tensor and pipeline parallelism
  • GPU memory management and utilization
  • Experimenting with distributed workloads using affordable cloud GPUs

Thought this might be useful to those working with GPU computing and distributed systems.

Free registration: From One GPU to Thousands


r/CUDA • • 1h ago

Compiler explorer now supports Java to CUDA and cuTile with Tornadovm

Post image
3 Upvotes

r/CUDA • • 17h ago

Hand-written CUDA kernels for every op got us 32% faster LLM decode than vLLM on an H100

6 Upvotes

We just open sourced Astral Inference Server v2.5, where every operator is a hand-written CUDA kernel verified layer by layer against a reference.

Some of what's inside: CUDA graphs for every decode step and speculative round, programmatic dependent launch on Hopper, int8 tensor-core GEMVs for small batches, wgmma GEMMs for prefill, fused depth-mix + RMSNorm + quantisation, and grouped MoE kernels that read each used expert once per batch.

Result on Inkling 2 Mini, H100 PCIe, batch 1:

• Without MTP: 172.0 tok/s, 32% ahead of vLLM (130.2), 27% ahead of SGLang (135.6)
• With MTP: 233.3 tok/s, 11% ahead of vLLM (209.6), 13% ahead of SGLang (205.9)

512 tokens, greedy, 8,192 context, 32-prompt average. Draft length 7 for vLLM and SGLang, adaptive 2 to 6 for Astral.

Kernels are in the repo: https://github.com/syntheticminds-lab/Astral-Inference-Server

I'm on the team at Synthetic Minds. Kernel questions very welcome.


r/CUDA • • 16h ago

Does HIP add overhead on NVIDIA? I timed two CaRtGS builds on one RTX 4090

2 Upvotes

I expected the benchmarks to settle whether I should worry about the HIP source path on NVIDIA. What I came away with was a better question about how to measure sub-percent differences.

We replayed six captured CaRtGS rasterizer backward workloads on one RTX 4090. Both builds used CUDA 12.8, CUDA LibTorch, and CCCL 2.8.2. The HIP source path still builds with nvcc and uses the CUDA runtime on this card. CaRtGS upstream · AMD HIP compilation and platforms

Saved workloadCUDA median (ms)HIP median (ms)Median paired change
Replica room0 · step 1000.197090.19661−0.28%
Replica room0 · step 5000.329360.32893−0.11%
Replica room0 · step 1,5000.356270.35701+0.24%
TUM fr1/desk · step 1000.130100.12956−0.42%
TUM fr1/desk · step 5000.208250.20815−0.04%
TUM fr1/desk · step 1,5000.216270.21621+0.02%

The metric is synchronized host wall time around one backward API call, including host-side launch work, any allocations inside the call, and synchronization. Four interleaved pairs per workload, 30 samples per mode per pair after warm-up. The percentages are medians of the paired ratios. Negative favors HIP. One early Replica pair came out at −15.47% and stayed in the calculation.

As a sanity check, the 300-frame Replica mapping run took 12.28–12.31 s with the HIP source path and 12.33–12.35 s with the CUDA source path. Two runs per mode, 2,900 mapper updates each. That’s a small pilot, so I’m treating the sub-percent differences as descriptive.

The reason I care is maintenance. CaRtGS and RTG-SLAM both build on Graphdeco’s original differentiable rasterizer. Their implementations share the same CUB inclusive scan and radix-sort calls for binning splats by image tile and depth. That gives us a concrete place to share a HIP wrapper and test, while keeping each project’s specialized kernels. CaRtGS rasterization code · RTG-SLAM depth rasterization code · My RTG-SLAM ROCm port

If you’re writing a new custom GPU kernel for a paper or side project, try starting with HIP and adding both build targets while the kernel is still small. On NVIDIA you can still use nvcc, CUDA libraries, and your usual profiling tools. Keep vendor-specific primitives behind a small interface, and check the same saved inputs on both GPUs.

I’m sharing the project with a few GPU communities. I’m posting here specifically for feedback on how we measured the NVIDIA builds.

For those who benchmark this kind of change, would you start with CUDA events around the individual GPU stages, longer interleaved batches, or both?


r/CUDA • • 1d ago

Why the gap with Mac?

4 Upvotes

Doing generative video (like ComfyUI + MiniMax) on Mac seems to be much slower than running on a similarly-priced Nvidia GPU.

Is this just an inherent tradeoff in how Apple is architecting their chips, and what they’re optimizing for?

Or is the gap likely to be closed over time as the kernels and other software elements mature for Metal, etc?

Local AI is a very exciting space, and Mac + generative media seem like a very natural fit. But their current performance with gen video seems much more limited thank what RTX cards can do.

This isn’t intended to bash on Mac - I love the Mac. I just want to better understand how likely it is to achieve parity with Nvidia/CUDA, specifically for video. Any insights from CUDA/Metal peeps?


r/CUDA • • 1d ago

Learning CUDA @ 16 yrs w/ 8gb 50 series

Post image
23 Upvotes

I just bought my first NVIDIA card in hopes of learning cuda programming, I'm already knowledgeable in C and C++ but is this a good choice? 5060 Ti 8gb (sadly not the 16gb) and I think it'd be a decent card for basic stuff related to cuda or other things like LLM hosting.

I plan on taking some free courses to earn some certifications and do my own studies about the coding languages and CUDA as a whole, opinions on the matter, tips, or questions?

PM on Discord for more info: someoneresides
Email: r2wosolution@gmail.com
Icloud: r2wosolution@icloud.com


r/CUDA • • 2d ago

PSA: NVIDIA DGX Spark has terrible CUDA & software compatibility; and seems like a handheld gaming chip.

Thumbnail reddit.com
0 Upvotes

r/CUDA • • 4d ago

Sm_120 RTX 5070 causal conv1d and Ssm wheels

6 Upvotes

RTX 5070/5080/5090 (sm_120, compute 12.0) currently fails with "no kernel image is available" because setup.py only builds for 70;80;90.

I built working wheels for Blackwell:

\- Patch: TORCH_CUDA_ARCH_LIST=12.0 and replace sm_70/sm_80/sm_90 with sm_120 in setup.py

\- Tested on 5070 WSL2 + torch 2.11.0+cu128 + py3.10

\- Wheels here for anyone stuck: https://github.com/Rapa2026/mamba-ssm-5070-blackwell-wheels

Happy to PR the sm_120 fix if you want it.

Test: Mamba2(d_model=64).cuda() -> OK


r/CUDA • • 4d ago

Replaced most inline PTX with MLIR ops, cutting asm regions from 499 to 81 across 20 kernels.

11 Upvotes

While building a high-level language with a rich type system, a core goal is reducing the need for low-level escape hatches like inline asm.

In glm-vx(GLM-5.3 serving engine with kernels in Vx-lang, checkpoint loading, and streaming HTTP), we replaced most inline PTX with MLIR ops, cutting asm regions from 499 to 81 across 20 kernels.

When LLVM sees the surrounding code, it can simplify logic and cut spills thus generating better code.

e.g., A bf16 store. The epilogue of the GEMM converts each f32 result to bf16 and stores 16 bits. The asm converted into a 16-bit register and then widened it to 32 bits with cvt.u32.u16, only for the store to use the low 16 bits again. Now the store takes the 16-bit register, and fp8_gemm_m64 has 64 fewer instructions:

// before
{ .reg .b16 h; cvt.rn.bf16.f32 h, %r393; cvt.u32.u16 %r199, h; }
st.global.b16  [%rd65], %r199;

// after
cvt.rn.bf16.f32  %rs1, %r327;
st.global.b16    [%rd74], %rs1;

But when hoisting/reordering hurts (like %laneid or mma scheduling on H200), we have no option to keep the asm. Link to the full writeup in comments.

EDIT:

the generated SASS was also better in the topk examples from the post but in the above case it was identical.


r/CUDA • • 4d ago

Built a ternary (BitNet-style) inference engine in Rust/CUDA: 8x faster than dense f32 on one CPU core. Looking for GPU testers

Thumbnail reddit.com
1 Upvotes

r/CUDA • • 4d ago

why it's so hard to make SASS assembler?

Thumbnail redplait.blogspot.com
17 Upvotes

summary:

  • only ~80% of ELF sections currently known
  • ~50% of EIATTRs
  • instruction scheduler is highly gpu specific and can't be implemented based on llvm machine scheduler. And np-hard

r/CUDA • • 5d ago

Tencent gave Google's Guetzli a GPU. I volunteered to keep it alive. v3.0.0 is out.

Thumbnail reddit.com
3 Upvotes

r/CUDA • • 6d ago

exact-gpu-jpeg: CUDA JPEG decode/encode that’s byte-identical to libjpeg-turbo and Pillow

8 Upvotes

GPU JPEG decoders are fast, but their pixels differ from the CPU libraries'. On 102 public test images, nvJPEG matched libjpeg-turbo on none of them, by up to 110 levels at 4:2:0. That quietly breaks reproducible ML pipelines, test baselines and caches whenever decoding moves between CPU and GPU.

exact-gpu-jpeg decodes on the GPU and returns libjpeg-turbo's pixels byte for byte (accurate IDCT, fancy upsampling), and its encoder writes the same bytes as Pillow. Anything it can't reproduce exactly, progressive files for example, goes to libjpeg-turbo itself, so the output is always the reference.

On a 2016 GTX 1070: a 30 MP camera photo decodes in 11.3 ms, against 185 ms for libjpeg-turbo on one core and 164 ms for nvJPEG on the same card. Batches of small images: 7,310 images/s. Encoding: 5.5x faster than Pillow with identical files.

Where it loses is listed near the top of the README: one small image at a time, small encodes against 8 CPU threads, progressive files. Everything so far is from one machine, so results from other GPUs are very welcome: `python bench/reproduce.py --quick`, and there's a pinned issue for them.

The parallel Huffman stage (Weißenberger & Schmidt's self-synchronising method) is drawn in docs/huffman-sync.md, and there's a white paper in docs/ covering the method, the evidence and the limits.

https://github.com/mrluker/exact-gpu-jpeg


r/CUDA • • 7d ago

I made an iPhone app for practicing CUDA with short puzzles, and you can run kernels on a real GPU from it

31 Upvotes

Hi,

I wanted a way to practice CUDA in short breaks, like on the bus or while an AI agent is working, so I made an iPhone app for it.

It teaches CUDA as short puzzles. You start with thread and block indexing then go on to 2D grids, warps and occupancy. Later skills are about reading PTX.

There are also labs. You fill in the missing lines of a kernel, tap Run, and it runs on a real GPU. The labs come from my main project, GPUFlight Performance Lab, a web tool for running and profiling GPU kernels. The app uses the same backend, so the report numbers come from a real profiled run.

It's free to try, iOS only for now. I'd like to know what people here think, especially whether the puzzles are too easy and which topics are missing.

https://apps.apple.com/us/app/gpu-performance-lab/id6829988955


r/CUDA • • 6d ago

My CPU won all 38 final-state tests. The RTX 5060 pulled ahead when I returned every step.

0 Upvotes

I’m working on Ohio at Primitive. I wanted to see where an RTX 5060 actually beats native C for a simple workload: update a lot of integer states and get the results back to the host.

When I only returned the final state, the CPU had the lower median in all 38 test conditions.

When I returned every step for 100,000 entities over 120 updates, the GPU pulled ahead on both seeds. On seed 97, it was 10.50 ms on the RTX 5060 with PyTorch CUDA vs 14.43 ms in native C. The outputs matched exactly. Those are warm timings with transfers included.

One thing I’d change before running it again: I returned 12 million states as int64. Every value fits in a byte, so the output could go from 96 MB to 12 MB.

If you were running that comparison, what CPU and CUDA implementations would you put side by side for the uint8 run?

[Primitive’s public GitHub](https://github.com/Primitivelabai/primitive-open). The code and timing logs for this run are still private.


r/CUDA • • 7d ago

Anyone think it would be cool to create VUDA(CUDA) using vulkan? Its a big task I know but probably will be a proof of concept thing to begin with.

Thumbnail reddit.com
1 Upvotes

r/CUDA • • 8d ago

Update: Fixed warp32 emulation and unbounded while loops. Looking for AMD hardware to test.

1 Upvotes

A few days ago I posted about UniversalGPU, my open-source CUDA-to-x86/PTX/GCN compiler. The top comment asked: "Does --warp-size=64 preserve two separate 32-lane groups for shfl.sync, or change their semantics?"

I fixed it. The --warp-size=64 path now wraps every shfl.sync in an scf.if that only executes if the source lane is in the same 32-lane half. Here is the generated MLIR:

%lane_2 = arith.remsi %tx, %c32 : index

%half_3 = arith.divsi %tx, %c32 : index

%src_half_4 = arith.divsi %iv, %c32 : index

%same_half_5 = arith.cmpi eq, %half_3, %src_half_4 : index

%1 = scf.if %same_half_5 -> (f32) {

%shfl_6 = nvvm.shfl.sync.down %c4294967295, %0, %iv : f32

scf.yield %shfl_6 : f32

} else {

scf.yield %0 : f32

}

I also fixed 5 other compiler bugs from a stress test: modulo operator, compound assignment to memory, unique loop variables, unbounded while loops (now correctly lowered to scf.while with iter_args), and switch case stores.

What I need now: someone with an AMD GPU (MI200, MI300, or RX 7000) to test the warp32 emulation on real hardware. I don't have AMD hardware, and I can't validate the emulation without it. If you have a GPU and 10 minutes, I'd love your help.

Repo: https://github.com/7636-lochan/UniversalGPU


r/CUDA • • 9d ago

Got placed, have 6 months before joining. Should I explore Linux kernel development, GPU programming or stick with AI/ML?

19 Upvotes

I'm a final-year engineering student in India from a non-CS background. I've recently secured an offer at an AI/analytics services company, and I have around 6 months before joining.

I've been exploring different areas of computer science, and I've realized that I'm increasingly interested in low-level programming and understanding how systems work internally.

MY BACKGROUND:

I've independently learned programming, ML/DL and worked on projects involving: computer vision , RAG , agentic AI

However, I dont want to spend my career primarily working with high-level AI frameworks and application development. because when i developed these projects , i didnt feel anything developing it , no satisaction at all

AREAS I'M CONSIDERING:

  1. Linux and Red Hat ecosystem:
  2. 2. GPU Programming:
  3. 3. Systems Programming
  4. 4. AI Infrastructure:

I find the idea of understanding what happens beneath the abstractions much more interesting than simply using existing libraries.

WHAT I'M CONFUSED ABOUT:

I have six months before joining my company, and I don't want to waste that time jumping between technologies.

I'd appreciate advice from people working in systems engineering, Linux, kernel development, GPU programming or related fields.

  1. Is low-level systems programming a good career direction in 2026?
  2. Between Linux kernel development, GPU programming and general systems programming, which would be a better starting point?
  3. Is CUDA/GPU programming a niche with good long-term opportunities, particularly with the growth of AI?
  4. What fundamentals should I master before attempting serious projects? C, C++, OS, computer architecture, networking, compilers?
  5. Would contributing to the Linux kernel or other open-source systems projects actually help me get shortlisted?

r/CUDA • • 9d ago

Initial VuPy release: Numpy/CuPy-like GPU array library backed by vulkan

Thumbnail github.com
3 Upvotes

r/CUDA • • 9d ago

Bringing Data-Center-Class AI Inference to Consumer NVIDIA RTX GPUs: Porting Atlas to Ada Lovelace

Thumbnail github.com
7 Upvotes

I've spent the last several days contributing to Atlas, an open-source Rust + CUDA inference engine originally targeting NVIDIA's GB10 with 120GB of unified memory.

I wanted to see how far I could push it on my RTX 4060 Ti with just 16GB of VRAM. It turned into quite a bit more than getting it to compile.

Running Qwen3.5-4B, here's where I ended up:

  1. 381 tok/s aggregate across 8 concurrent requests (roughly 48 per user) using experimental int4 + speculative decoding.
  2. 98 tok/s for a single user with the same configuration.
  3. 4.6x faster BF16 prefill, from 794 to 3,684 tok/s. This preserves BF16 precision and is enabled by default on Ada.
  4. 2.1GB less VRAM usage with the optional FP8 feed-forward path.
  5. Successfully served a 159,807-token prompt with FP8 KV cache and retrieved a needle from it.
  6. All 223 Ada kernel compilations passing after fixing architecture incompatibilities.

One interesting finding: Nsight showed the GPU was already busy 95.6% of the time at eight streams. Several CUDA Graph and fusion optimizations I expected to help ended up making practically no difference.

For comparison, BF16 reached 195 tok/s across eight users, and FP8 FFN reached 222 tok/s.

Important caveat: the 381 tok/s configuration is lossy, and I haven't established task-level quality equivalence with BF16. These are screening measurements, not fully repeated confirmation runs.

Atlas is developed by Thomas Braun and the Avarok-Cybersecurity contributors. My work focuses on the Ada port, memory management, kernel optimization, and consumer GPU benchmarking.

The goal is to get more useful local inference out of hardware people already own.

GitHub: https://github.com/Avarok-Cybersecurity/atlas

Happy to discuss the kernel work or benchmark methodology with anyone working on Rust, CUDA, or local inference.


r/CUDA • • 9d ago

day 4 of building a GPU from scratch (32 bit)

Thumbnail reddit.com
1 Upvotes