Need help building with CUDA or Vulkan #1801
-
|
Getting errors while trying to build with CUDA or Vulkan, i can build fine without the flags on for CPU only, some guidance would be deeply appreciated. System: AMD 5600g, NVIDIA RTX3050, Ubuntu 22.04.5 LTS, installed Cuda toolkit Cuda build error: Vulkan build error: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
The error isn't in sd.cpp: That's CUDA 11.5's nvcc choking on GCC 11 headers. Ubuntu 22.04 ships both, so the apt combo is broken out of the box. Your CPU build works because nvcc never runs. Best fix is CUDA 12.x from NVIDIA's repo — your 3050 is sm_86 and fully supported. Build in a fresh directory, the old one caches the bad paths: If you want to keep 11.5, pin an older host compiler instead: Setting the arch to 86 also cuts build time a lot. You'll know it worked when For Vulkan I'd need the actual error, but the usual blocker is |
Beta Was this translation helpful? Give feedback.
-
|
thank you, i was able to build with the 2nd step, maintaining the current version.. \o/ |
Beta Was this translation helpful? Give feedback.
The error isn't in sd.cpp:
That's CUDA 11.5's nvcc choking on GCC 11 headers. Ubuntu 22.04 ships both, so the apt combo is broken out of the box. Your CPU build works because nvcc never runs.
Best fix is CUDA 12.x from NVIDIA's repo — your 3050 is sm_86 and fully supported. Build in a fresh directory, the old one caches the bad paths:
If you want to keep 11.5, pin an older host compiler instead: