linux: Enable AMD's amdkfd kernel driver in >= 4.20

The amdkfd driver was built (and loaded when support was detected)
without explicit configuration in kernels 4.17-4.19, but not in newer
kernels.
This commit is contained in:
Anthony Cowley 2019-03-17 22:28:25 -04:00
parent da1a2b1eea
commit 7d9d8874f5
1 changed files with 3 additions and 0 deletions

View File

@ -681,6 +681,9 @@ let
HOTPLUG_PCI_ACPI = yes; # PCI hotplug using ACPI
HOTPLUG_PCI_PCIE = yes; # PCI-Expresscard hotplug support
# Enable AMD's ROCm GPU compute stack
HSA_AMD = whenAtLeast "4.20" yes;
} // optionalAttrs (stdenv.hostPlatform.system == "x86_64-linux" || stdenv.hostPlatform.system == "aarch64-linux") {
# Enable memory hotplug support
# Allows you to dynamically add & remove memory to a VM client running NixOS without requiring a reboot