Skip to content

Commit

Permalink
Merge pull request #300079 from dwf/miopen
Browse files Browse the repository at this point in the history
rocmPackages_{5,6}.miopen: fix test builds by linking gtest
  • Loading branch information
ulrikstrid authored Apr 12, 2024
2 parents 48a380f + 4eac13a commit 045f863
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/development/rocm-modules/5/miopen/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ in stdenv.mkDerivation (finalAttrs: {
python3Packages.breathe
python3Packages.myst-parser
] ++ lib.optionals buildTests [
gtest
zlib
];

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

Please sign in to comment.