Skip to content

cuda

Repo box/github.com/opencharly/layer-cuda:v2026.326.2259

CUDA toolkit (nvcc, cudart, cuDNN, onnxruntime) stitched into the canonical /usr layout on Fedora and Arch Installs the CUDA compiler driver (nvcc), the CUDA runtime/dev libraries (cudart, nvrtc, cupti, curand, cccl, cufile), cuDNN, and onnxruntime. On Fedora the RPMs land in /usr directly; on Arch the post-install tasks symlink the /opt/cuda binaries, headers, and libs into the same /usr-rooted paths, so every downstream GPU consumer compiles against one layout regardless of distro. Each artifact is a real file or library on disk, so its presence is directly verifiable.

This candy’s plan: — the runnable spec charly check executes against a live deployment. check: steps are idempotent probes; run: steps change state.

Intent Step
run install the cuDNN headers from the cuda-cudnn-devel RPM on Fedora, bypassing its driver dependency
run stitch the Arch /opt/cuda toolkit into the canonical /usr layout — binaries, headers with their subtrees, and libraries
run drop the driver user-space the cuda package reinstalls through nvidia-utils, so the CDI mount is its only provider
check the nvcc CUDA compiler driver is on the canonical /usr path
check nvcc reports its CUDA compilation-tools release
check the cuDNN header is available at /usr/include regardless of distro
check a CUDA translation unit COMPILES AND LINKS against the stitched /usr layout (Arch: the header subtrees are linked, not only the top-level files)
check the CUDA runtime library is linkable from the canonical /usr/lib64 path
agent-check downstream GPU layers (llama-cpp, vllm, comfyui, jupyter-ml) compile against the same /usr-rooted CUDA layout on both Fedora and Arch
check package=cuda-cudart-devel
check command=ls /usr/include/cudnn.h
check package=onnxruntime