r/CUDA • • 18h ago

Remote Async CUDA/GPU Kernel, Open-Source GitHub Maintainer & Algorithmic Coding Contracts ($50-$200/hr USD)

6 Upvotes

For GPU/CUDA kernel engineers, active GitHub open-source maintainers, and competitive programmers (Codeforces/Kaggle)

I started a side project that tracks remote work on 15+ platforms, and there's currently roles offering $50-$120/hr USD for CUDA/GPU kernel engineering, and $45-$120/hr USD for algorithmic problem setters and Kaggle medalists.

Basically if you send me a brief blurb with your country, degree, years of experience, tGitHub/CUDA/CP (i.e. technologies) background (no personal information please), I'll send you a custom Google doc with a list of referrals to roles that match your information. I also provide guides for each of the platforms to help with onboarding.


r/CUDA • • 4h ago

Libxc 7.1.2's GPU build keeps functional data in managed memory, so GPU DFT segfaults or runs at half speed when concurrentManagedAccess = 0 (WSL2, Windows)

1 Upvotes

This came up while building the GPU engine for an open-source quantum chemistry app, and it may save someone a debugging session.

Libxc is the exchange-correlation functional library that most DFT codes use, and GPU4PySCF ships a CUDA build of Libxc 7.1.2 (gpu4pyscf-libxc-cuda12x 0.9.0). That build keeps functional parameter data in CUDA managed memory, and the host reads it between kernel launches. On a GPU where concurrentManagedAccess is 0, which includes GPUs under WSL2 and on native Windows, the host can't touch managed memory while kernels are in flight. GPU DFT then segfaults, and it only runs with CUDA_LAUNCH_BLOCKING=1, at about half speed.

The patch keeps that data in host memory and allocates the device buffers with cudaMalloc. The engine tests check that the patched libxc.so never calls cudaMallocManaged.

Measured on an RTX 3070 under WSL2 (driver 610.88), B3LYP-D3(BJ)/def2-SVP optimisation plus frequencies, median of three runs:

  • Unpatched with synchronous launches: water 46.1 s, ethanol 101.3 s
  • Patched with normal launches: water 22.9 s, ethanol 46.1 s
  • Energies match the CPU to within 1e-10 Eh

The cause and fix are reported to Libxc (https://gitlab.com/libxc/libxc/-/issues/647) and GPU4PySCF (https://github.com/pyscf/gpu4pyscf/issues/1067). Libxc's maintainer replied that Libxc 8 rewrites GPU support as templated C++, so a 7.x fix is unlikely, and the engine carries the patch until a Libxc 8 build passes its tests.

The patch, the build stage and the measurements are in the repo: https://github.com/quachem/quachem-workbench/tree/main/docs/evidence/2026-11-26-libxc-engine-patch

This was debugged and written up with a lot of help from Claude.


r/CUDA • • 35m ago

ink4060ti: Native CUDA C++20 engine for Inkling-2-Mini (26.4B MoE + Vision) on 16 GB RTX 4060 Ti — lossless NVFP4 Loop-Core, 1,956 tok/s prefill, 156K VRAM ctx + compiled Blackwell sm_120a NVFP4 MMA (seeking 5060 Ti testers!)

2 Upvotes

I built ink4060ti (Apache-2.0), a zero-config C++20/CUDA inference engine specifically engineered to deliver a major jump in BOTH speed and reasoning quality for Inkling-2-Mini-Unbound (26.4B MoE + native vision + DSpark Block-8 speculative decoding) on a single 16 GB RTX 4060 Ti on Windows.

Why both quality AND speed jump on 16 GB 4060 Ti

On a 16 GB card, Strata SQ-15 spills 189 experts over PCIe and OOMs past ~16K context, while Strata SQ-10 takes a noticeable quality hit (KLD 0.0720 / Top-1 92.35%) and doesn't persist prefix KV across requests/restarts.

Because Inkling-2-Mini executes its inner Loop-Core MoE layers (L6..17) 3× per token, ink4060ti uses asymmetric per-role quantization:

  • Loop-Core MoE (L6..17, 3×/token): kept 100% lossless native NVFP4 (SQNR = ∞ dB, cos = 1.000000)
  • Outer MoE (L0..5, L18..23, 1×/token): NF3_G32_E4M3 (3.25 bpw)
  • Dense Attention + Unembed: Q6_G32 (cos = 0.9997) · DSpark Drafter: Q8_G32 (cos = 0.99999)
  • Embed + Vision: 100% lossless BF16 (Vision loads lazily on demand = 0 MiB permanent VRAM, ~200 ms warm encode)

Measured on physical RTX 4060 Ti 16 GB (Windows 11 WDDM)

Metricink4060ti (12g-tight + k4v4)Strata SQ-10 (0.1.67)Strata SQ-15 (0.1.67)
GPU Weights + Drafter12,553 MiB (0 spill)13,322 MiBSpills 189 experts (942 MB PCIe)
Max Full-VRAM Context156,576 tok (auto, 0 spill)100K (manual)16K (OOM beyond)
Quality vs Lossless (sq15-lossless)KLD 0.0216 / Top-1 96.90% (k8v4: 0.0138 / 97.38%)KLD 0.0720 / Top-1 92.35%KLD 0.0107 / Top-1 96.68%
Prefill (2K / 16K / 64K / 100K / 150K)1,956 / 1,810 / 1,497 / 1,316 / 1,136 tok/s1,563 / 1,378 / 970 / 790 / —962 / OOM
Decode (DSpark ON)53–62 short · 46–55 (16K–64K) · 28.6 (150K)79–95 short · 56.8 (64K)39.5–42.0 tok/s
Prefix Reuse & SSD Restart99%+ reuse · 4.9s (64K) / 9.2s (150K)Unsupported (reused=0)Unsupported
Vision (Screenshots / 4K)0 MiB permanent VRAM (~200 ms warm)Permanent VRAMSupported
  • Huge dual gain: 3.3× lower KLD than Strata SQ-10 (0.0216 vs 0.0720, 150K needle recall EXACT PASS) + +25% to +67% faster prefill (2× faster than SQ-15) + 156K zero-spill context + 200 GiB SSD 3-tier cache (VRAM ↔ 25% RAM ↔ SSD). (Honest trade-off: raw short-prompt decode still trails SQ-10's 79–95 tok/s.)
  • Zero-config portable Windows ZIP (5.6 MiB): No CUDA Toolkit, Python, or VC++ redist needed — extract and double-click start.bat (auto-picks HuggingFace vs hf-mirror.com + SHA-256 verify, opens Web UI at 127.0.0.1:18088).
  • Coding Agent Ready: Native Anthropic /v1/messages + count_tokens + thinking + tools + vision (drop-in for Claude Code) & OpenAI /v1/chat/completions (Cursor / Cline / Roo Code).

Looking for RTX 5060 Ti 16 GB (sm_120a) testers!

The portable binary includes a compiled Blackwell sm_120a native NVFP4 MMA path verified against NVIDIA CUTLASS SM120_16x8x64_TN_VS specs and full model scale bounds, but I don't own a physical 5060 Ti — so 5060 Ti support is theoretical/untested (Experimental). If you have a 5060 Ti 16 GB on Windows and want to test it (INK4060_DISABLE_SM120_FP4=1 falls back to BF16 Tensor Core), feedback and benchmark issues are very welcome!


r/CUDA • • 3h ago

[Open Source] Virtualizing a 16 TB FP16 cuFFT into 450 MB VRAM (71.1x speedup, 1.03 ms/batch) + Tensor-Core Beam-CVP on a 4 GB RTX 3050 Laptop

2 Upvotes

I built an open-source CUDA benchmark suite (MIT License) exploring extreme memory virtualization and mixed-precision GPU computing on a **4 GB VRAM RTX 3050 Laptop** (`sm_86`, 15 GB RAM), applied to the 256-bit ECDSA Hidden Number Problem (Bleichenbacher Fourier + Albrecht–Heninger lattice CVP, synthetic test vectors only).

**GitHub Repo:** https://github.com/jcube2024/secp256k1-gpu-audit

### Key CUDA / Systems Optimizations

  1. **`v4 FP16 cuFFT` (`71.1×` speedup over v1 FP32, `1.03–1.16 ms` per `2^22` batch):**

    - Virtualizes a **`2^40`-point (`16 TB`)** DFT into **`~450 MB` VRAM** via CSR binning (`4 B/pair`: 18-bit high index + 14-bit quantized phase).

    - `K = 8` register-level complex phase recurrence (eliminates redundant `__sincosf` calls).

    - Mixed-precision accumulation in FP32 registers + `1/32` pre-scaling into `CUDA_C_16F` (`__half2`) avoids FP16 overflow while preserving exact FP32 SNR (`8.99`).

  2. **GPU `CUB DeviceRadixSort` + Merge Wagner (`30.0×` vs 16-core CPU):**

    - `32M`-element Wagner merge round drops from `1.354 s` (`__gnu_parallel::sort`) to **`0.045 s`** on RTX 3050 (100% bit-exact).

  3. **5-Bucket NVMe Streaming Merge (`< 5 GB` RAM):**

    - Processes `600M` virtual pairs on a 15 GB RAM laptop with monotonically shrinking SSD footprint (`19.2 GB → 9.6 GB → 0 GB`).

  4. **cuBLAS TF32 Tensor-Core `Beam-Sieve-CVP` + GPU 256-bit Predicate:**

    - Solves batched nearest-neighbor search over `G6K` lattice sieve databases (`R @ U^T`) + FP64 GPU Babai-lifting in `0.21 s`.

Includes 8 standalone `.cu` engines (`make -j4 all`), a patched CUDA 12 `G6K-GPU-Tensor`, and a 4-part technical writeup. Happy to discuss any of the CUDA kernel details!