-
crafter-build 6.2.0
StableAll checks were successfulFlatpak / flatpak (push) Successful in 14m29sreleased this
2026-11-11 19:18:33 +00:00 | 43 commits to master since this releaseNew
- CUDA sources compile for the GPU architecture
cfg.cudaArchnames, nvcc's-arch, which--cuda-arch=andCRAFTER_BUILD_CUDA_ARCHset whereproject.cppcallsApplyStandardArgs. It defaults tonative, the GPUs of the machine that builds, asmarchdefaults to its CPU; it wassm_89for every build. A program built fornativecarries no PTX for newer GPUs, so build one that runs elsewhere with--cuda-arch=all-major;crafter-build bundlewarns of a bundle whose CUDA code is built fornative. Another architecture builds in a directory of its own, and so doesnativeon other GPUs. The README's new CUDA section has the details. - A configuration with CUDA sources links the static CUDA runtime of the toolkit whose nvcc compiles them, where the toolkit's
lib64holds it, and so does whatever is built on it:cfg.linkFlagsthen needs no-lcudartand no path into the toolkit, which inside the Flatpak lies under/run/hostfor the host's/usr/local/cuda.crafter-build --versionprints it next to nvcc.
Fixes
- CUDA sources compile in the Flatpak. With the
PATHits manifest sets, every build withcfg.cudathere stopped atnvcc: command not found, because thatPATHdoes not hold the host's toolkit. crafter-build now looks for nvcc itself: in$CUDA_PATH/bin, else in/opt/cuda/binor the host's/usr/local/cuda/bin, else in an absolute entry ofPATH. A build that finds none says where it looked, andcrafter-build --versionprints the one it found. - A
.cucompiles again when a header it includes changes, as a C or C++ source does. It used to compile again only when the.cuitself changed, and kept the object built from the old header.
Downloads
- CUDA sources compile for the GPU architecture