rocmPackages: remove miopen-opencl since its deprecated
This commit is contained in:
parent
1c842526a4
commit
50bf7fb589
|
@ -256,13 +256,12 @@ in rec {
|
||||||
boost = boost179.override { enableStatic = true; };
|
boost = boost179.override { enableStatic = true; };
|
||||||
};
|
};
|
||||||
|
|
||||||
miopen-hip = miopen.override {
|
miopen-hip = miopen;
|
||||||
useOpenCL = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
miopen-opencl = miopen.override {
|
miopen-opencl= throw ''
|
||||||
useOpenCL = true;
|
'miopen-opencl' has been deprecated.
|
||||||
};
|
It is still available for some time as part of rocmPackages_5.
|
||||||
|
''; # Added 2024-3-3;
|
||||||
|
|
||||||
migraphx = callPackage ./migraphx {
|
migraphx = callPackage ./migraphx {
|
||||||
inherit rocmUpdateScript rocm-cmake rocblas composable_kernel miopen clr half rocm-device-libs;
|
inherit rocmUpdateScript rocm-cmake rocblas composable_kernel miopen clr half rocm-device-libs;
|
||||||
|
|
|
@ -31,7 +31,6 @@
|
||||||
, python3Packages
|
, python3Packages
|
||||||
, buildDocs ? false # Needs internet because of rocm-docs-core
|
, buildDocs ? false # Needs internet because of rocm-docs-core
|
||||||
, buildTests ? false
|
, buildTests ? false
|
||||||
, useOpenCL ? false
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
@ -167,12 +166,9 @@ in stdenv.mkDerivation (finalAttrs: {
|
||||||
"-DCMAKE_INSTALL_BINDIR=bin"
|
"-DCMAKE_INSTALL_BINDIR=bin"
|
||||||
"-DCMAKE_INSTALL_LIBDIR=lib"
|
"-DCMAKE_INSTALL_LIBDIR=lib"
|
||||||
"-DCMAKE_INSTALL_INCLUDEDIR=include"
|
"-DCMAKE_INSTALL_INCLUDEDIR=include"
|
||||||
] ++ lib.optionals (!useOpenCL) [
|
|
||||||
"-DCMAKE_C_COMPILER=hipcc"
|
"-DCMAKE_C_COMPILER=hipcc"
|
||||||
"-DCMAKE_CXX_COMPILER=hipcc"
|
"-DCMAKE_CXX_COMPILER=hipcc"
|
||||||
"-DMIOPEN_BACKEND=HIP"
|
"-DMIOPEN_BACKEND=HIP"
|
||||||
] ++ lib.optionals useOpenCL [
|
|
||||||
"-DMIOPEN_BACKEND=OpenCL"
|
|
||||||
] ++ lib.optionals buildTests [
|
] ++ lib.optionals buildTests [
|
||||||
"-DBUILD_TESTS=ON"
|
"-DBUILD_TESTS=ON"
|
||||||
"-DMIOPEN_TEST_ALL=ON"
|
"-DMIOPEN_TEST_ALL=ON"
|
||||||
|
@ -211,7 +207,7 @@ in stdenv.mkDerivation (finalAttrs: {
|
||||||
ln -sf ${gfx90a} $out/share/miopen/db/gfx90a.kdb
|
ln -sf ${gfx90a} $out/share/miopen/db/gfx90a.kdb
|
||||||
ln -sf ${gfx1030} $out/share/miopen/db/gfx1030.kdb
|
ln -sf ${gfx1030} $out/share/miopen/db/gfx1030.kdb
|
||||||
'' + lib.optionalString buildDocs ''
|
'' + lib.optionalString buildDocs ''
|
||||||
mv ../doc/html $out/share/doc/miopen-${if useOpenCL then "opencl" else "hip"}
|
mv ../doc/html $out/share/doc/miopen-hip
|
||||||
'' + lib.optionalString buildTests ''
|
'' + lib.optionalString buildTests ''
|
||||||
mkdir -p $test/bin
|
mkdir -p $test/bin
|
||||||
mv bin/test_* $test/bin
|
mv bin/test_* $test/bin
|
||||||
|
|
Loading…
Reference in New Issue
Block a user