pkgsForCudaArch: init
Signed-off-by: Connor Baker <ConnorBaker01@gmail.com>
This commit is contained in:
@@ -95,6 +95,27 @@ self: super: {
|
||||
};
|
||||
});
|
||||
|
||||
# `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.
|
||||
# NOTE: Not every package set is supported on every architecture!
|
||||
# See `Using pkgsForCudaArch` in doc/languages-frameworks/cuda.section.md for more information.
|
||||
pkgsForCudaArch = lib.listToAttrs (
|
||||
lib.map (cudaCapability: {
|
||||
name = self._cuda.lib.mkRealArchitecture cudaCapability;
|
||||
value = nixpkgsFun {
|
||||
config = super.config // {
|
||||
cudaSupport = true;
|
||||
rocmSupport = false;
|
||||
# Not supported by architecture-specific feature sets, so disable for all.
|
||||
# Users can choose to build for family-specific feature sets if they wish.
|
||||
cudaForwardCompat = false;
|
||||
cudaCapabilities = [ cudaCapability ];
|
||||
};
|
||||
};
|
||||
}) (lib.attrNames self._cuda.db.cudaCapabilityToInfo)
|
||||
);
|
||||
|
||||
pkgsExtraHardening = nixpkgsFun {
|
||||
overlays = [
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user