• 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...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help