pkgsCuda: init

Signed-off-by: Connor Baker <ConnorBaker01@gmail.com>
This commit is contained in:
Connor Baker 2025-06-10 20:07:15 +00:00
parent ef768dbd50
commit d43affbd43

View File

@ -95,6 +95,15 @@ self: super: {
};
});
# Full package set with cuda on rocm off
# Mostly useful for asserting pkgs.pkgsCuda.torchWithCuda == pkgs.torchWithCuda and similar
pkgsCuda = nixpkgsFun {
config = super.config // {
cudaSupport = true;
rocmSupport = false;
};
};
# `pkgsForCudaArch` maps each CUDA capability in _cuda.db.cudaCapabilityToInfo to a Nixpkgs variant configured for
# that target system. For example, `pkgsForCudaArch.sm_90a.python3Packages.torch` refers to PyTorch built for the
# Hopper architecture, leveraging architecture-specific features.