Merge pull request #57885 from acowley/hsa_amd

linux: Enable AMD's amdkfd kernel driver in >= 4.20
This commit is contained in:
Samuel Dionne-Riel 2019-04-02 16:51:30 -04:00 committed by GitHub
commit 2f30b7924e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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