diff --git a/packaging/flatpak/net.catcrafts.CrafterBuild.metainfo.xml b/packaging/flatpak/net.catcrafts.CrafterBuild.metainfo.xml index 23bbff2..d16aeaf 100644 --- a/packaging/flatpak/net.catcrafts.CrafterBuild.metainfo.xml +++ b/packaging/flatpak/net.catcrafts.CrafterBuild.metainfo.xml @@ -25,6 +25,20 @@ + + +

New

+
    +
  • CUDA sources compile for the GPU architecture cfg.cudaArch names, nvcc's -arch, which --cuda-arch= and CRAFTER_BUILD_CUDA_ARCH set where project.cpp calls ApplyStandardArgs. It defaults to native, the GPUs of the machine that builds, as march defaults to its CPU; it was sm_89 for every build. A program built for native carries no PTX for newer GPUs, so build one that runs elsewhere with --cuda-arch=all-major; crafter-build bundle warns of a bundle whose CUDA code is built for native. Another architecture builds in a directory of its own, and so does native on 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 lib64 holds it, and so does whatever is built on it: cfg.linkFlags then needs no -lcudart and no path into the toolkit, which inside the Flatpak lies under /run/host for the host's /usr/local/cuda. crafter-build --version prints it next to nvcc.
  • +
+

Fixes

+
    +
  • CUDA sources compile in the Flatpak. With the PATH its manifest sets, every build with cfg.cuda there stopped at nvcc: command not found, because that PATH does not hold the host's toolkit. crafter-build now looks for nvcc itself: in $CUDA_PATH/bin, else in /opt/cuda/bin or the host's /usr/local/cuda/bin, else in an absolute entry of PATH. A build that finds none says where it looked, and crafter-build --version prints the one it found.
  • +
  • A .cu compiles again when a header it includes changes, as a C or C++ source does. It used to compile again only when the .cu itself changed, and kept the object built from the old header.
  • +
+
+

New