[Hardware/AMD] move ROCm specific config in dedicated file

Add option to effortlessly add corresponding HSA_OVERRIDE_GFX_VERSION to
make HIP programs work despite the GPU not being explicitely supported.
This commit is contained in:
Antoine Viallon 2024-11-26 11:50:30 +01:00
parent bc32a4f954
commit 30d16ce34d
Signed by: aviallon
GPG key ID: 186FC35EDEB25716
3 changed files with 120 additions and 33 deletions

View file

@ -23,6 +23,7 @@ in {
./cpu.nix
./amdgpu.nix
./radeon.nix
./rocm.nix
];
config = mkIf cfg.enable {