Color Inversion Kernel: Weird GPU Issue on Local Machine
prasanna.bearblog.dev·10h
Ditherpunk
Preview
Report Post
  • 18 Dec, 2025 *

TL;DR: My CUDA toolkit (13.1) was newer than the CUDA version supported by my driver (13.0), so the driver couldn’t JIT the PTX into GPU machine code. Compiling with my GPU’s compute capability (-arch=sm_86) made nvcc embed native SASS for my card, so the driver could run it directly and my kernels started working.


I was writing a color inversion CUDA kernel today on leetgpu and wanted to try out the kernel on my local system.

Color inversion kernel source code Figure 1: Color inversion kernel source code (leetgpu)

Specs: Gpu: RTX 3050 (Ampere architecture) Compute capability: 8.6 OS: fedora 43 Driver Version: 580.105.08 (CUDA Version: 13.0) Nvcc compiler and related tools version: 13.1

I w…

Similar Posts

Loading similar posts...