From 516577950334e577d880f7f6ddc490338a2d0e3d Mon Sep 17 00:00:00 2001 From: David Warde-Farley Date: Fri, 29 Mar 2024 20:17:09 +0000 Subject: [PATCH 1/2] rocmPackages_5.miopen: correctly link gtest --- pkgs/development/rocm-modules/5/miopen/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/rocm-modules/5/miopen/default.nix b/pkgs/development/rocm-modules/5/miopen/default.nix index 33959efa00ebd..1c072ef1a304d 100644 --- a/pkgs/development/rocm-modules/5/miopen/default.nix +++ b/pkgs/development/rocm-modules/5/miopen/default.nix @@ -156,6 +156,7 @@ in stdenv.mkDerivation (finalAttrs: { python3Packages.breathe python3Packages.myst-parser ] ++ lib.optionals buildTests [ + gtest zlib ]; @@ -190,6 +191,9 @@ in stdenv.mkDerivation (finalAttrs: { substituteInPlace test/gtest/CMakeLists.txt \ --replace "include(googletest)" "" + substituteInPlace test/gtest/CMakeLists.txt \ + --replace-fail " gtest_main " " ${gtest}/lib/libgtest.so ${gtest}/lib/libgtest_main.so " + ln -sf ${gfx900} src/kernels/gfx900.kdb ln -sf ${gfx906} src/kernels/gfx906.kdb ln -sf ${gfx908} src/kernels/gfx908.kdb From 4eac13a88cadc64d65c90a34bb699a31f239aa3b Mon Sep 17 00:00:00 2001 From: David Warde-Farley Date: Fri, 29 Mar 2024 20:17:25 +0000 Subject: [PATCH 2/2] rocmPackages_6.miopen: correctly link gtest --- pkgs/development/rocm-modules/6/miopen/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/rocm-modules/6/miopen/default.nix b/pkgs/development/rocm-modules/6/miopen/default.nix index f78bcb602e698..09bcf10429530 100644 --- a/pkgs/development/rocm-modules/6/miopen/default.nix +++ b/pkgs/development/rocm-modules/6/miopen/default.nix @@ -155,6 +155,7 @@ in stdenv.mkDerivation (finalAttrs: { python3Packages.breathe python3Packages.myst-parser ] ++ lib.optionals buildTests [ + gtest zlib ]; @@ -185,6 +186,9 @@ in stdenv.mkDerivation (finalAttrs: { substituteInPlace test/gtest/CMakeLists.txt \ --replace "include(googletest)" "" + substituteInPlace test/gtest/CMakeLists.txt \ + --replace-fail " gtest_main " " ${gtest}/lib/libgtest.so ${gtest}/lib/libgtest_main.so " + ln -sf ${gfx900} src/kernels/gfx900.kdb ln -sf ${gfx906} src/kernels/gfx906.kdb ln -sf ${gfx908} src/kernels/gfx908.kdb