about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMartin Schwaighofer <mschwaig@users.noreply.github.com>2024-02-11 22:53:36 +0100
committerMartin Schwaighofer <mschwaig@users.noreply.github.com>2024-03-21 22:48:32 +0100
commit3bc74475b16cd154a9a8256477b2d0f0f04708d3 (patch)
treeb1eb520ab28b152b5e62da7a905414835f80f160
parent561cac4480f2336258ab66c07918617b7a887d18 (diff)
downloadnixlib-3bc74475b16cd154a9a8256477b2d0f0f04708d3.tar
nixlib-3bc74475b16cd154a9a8256477b2d0f0f04708d3.tar.gz
nixlib-3bc74475b16cd154a9a8256477b2d0f0f04708d3.tar.bz2
nixlib-3bc74475b16cd154a9a8256477b2d0f0f04708d3.tar.lz
nixlib-3bc74475b16cd154a9a8256477b2d0f0f04708d3.tar.xz
nixlib-3bc74475b16cd154a9a8256477b2d0f0f04708d3.tar.zst
nixlib-3bc74475b16cd154a9a8256477b2d0f0f04708d3.zip
rocmPackages: set GPU_TARGETS for migraphx
-rw-r--r--pkgs/development/rocm-modules/6/migraphx/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/rocm-modules/6/migraphx/default.nix b/pkgs/development/rocm-modules/6/migraphx/default.nix
index 1aea9cd4ec86..4185f2c89f36 100644
--- a/pkgs/development/rocm-modules/6/migraphx/default.nix
+++ b/pkgs/development/rocm-modules/6/migraphx/default.nix
@@ -29,6 +29,7 @@
 , python3Packages
 , buildDocs ? false
 , buildTests ? false
+, gpuTargets ? clr.gpuTargets
 }:
 
 let
@@ -109,6 +110,7 @@ in stdenv.mkDerivation (finalAttrs: {
     "-DCMAKE_INSTALL_BINDIR=bin"
     "-DCMAKE_INSTALL_LIBDIR=lib"
     "-DCMAKE_INSTALL_INCLUDEDIR=include"
+    "-DGPU_TARGETS=${lib.concatStringsSep ";" gpuTargets}"
   ];
 
   postPatch = ''