From 3bc74475b16cd154a9a8256477b2d0f0f04708d3 Mon Sep 17 00:00:00 2001 From: Martin Schwaighofer Date: Sun, 11 Feb 2024 22:53:36 +0100 Subject: [PATCH] rocmPackages: set GPU_TARGETS for migraphx --- pkgs/development/rocm-modules/6/migraphx/default.nix | 2 ++ 1 file changed, 2 insertions(+) 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 = ''