Skip to content

Commit

Permalink
rocmPackages_6.miopen: correctly link gtest
Browse files Browse the repository at this point in the history
  • Loading branch information
dwf committed Mar 31, 2024
1 parent 5165779 commit 4eac13a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/development/rocm-modules/6/miopen/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ in stdenv.mkDerivation (finalAttrs: {
python3Packages.breathe
python3Packages.myst-parser
] ++ lib.optionals buildTests [
gtest
zlib
];

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4eac13a

Please sign in to comment.