* [gentoo-commits] proj/sci:master commit in: sci-libs/miopen/
@ 2021-01-20 16:11 Benda XU
0 siblings, 0 replies; 5+ messages in thread
From: Benda XU @ 2021-01-20 16:11 UTC (permalink / raw
To: gentoo-commits
commit: 82fbfe4f5baa29d1bde681574d7c54e3cc6709ca
Author: Benda Xu <heroxbd <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 20 15:57:33 2021 +0000
Commit: Benda XU <heroxbd <AT> gentoo <DOT> org>
CommitDate: Wed Jan 20 16:11:25 2021 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=82fbfe4f
sci-libs/miopen: high performance machine learning primitives.
Bug: https://bugs.gentoo.org/650804
Bug: https://github.com/gentoo/gentoo/pull/10724
Suggested-by: Yiyang Wu <xgreenlandforwyy <AT> gmail.com>
Suggested-by: Wilfried Holzke <gentoo <AT> holzke.net>
Package-Manager: Portage-3.0.12, Repoman-3.0.1
Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org>
sci-libs/miopen/metadata.xml | 11 +++++++
sci-libs/miopen/miopen-4.0.0-r1.ebuild | 60 ++++++++++++++++++++++++++++++++++
2 files changed, 71 insertions(+)
diff --git a/sci-libs/miopen/metadata.xml b/sci-libs/miopen/metadata.xml
new file mode 100644
index 000000000..336bdb639
--- /dev/null
+++ b/sci-libs/miopen/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM 'http://www.gentoo.org/dtd/metadata.dtd'>
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci@gentoo.org</email>
+ </maintainer>
+ <maintainer type="person">
+ <email>gentoo@holzke.net</email>
+ <name>Wilfried Holzke</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/sci-libs/miopen/miopen-4.0.0-r1.ebuild b/sci-libs/miopen/miopen-4.0.0-r1.ebuild
new file mode 100644
index 000000000..1bde9f88f
--- /dev/null
+++ b/sci-libs/miopen/miopen-4.0.0-r1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake
+
+DESCRIPTION="AMD's Machine Intelligence Library"
+HOMEPAGE="https://github.com/ROCmSoftwarePlatform/MIOpen"
+SRC_URI="https://github.com/ROCmSoftwarePlatform/MIOpen/archive/rocm-${PV}.tar.gz -> MIOpen-${PV}.tar.gz"
+
+LICENSE="MIT"
+KEYWORDS="~amd64"
+SLOT="0"
+
+RDEPEND="
+ >=dev-util/hip-${PV}
+ >=dev-libs/half-1.12.0
+ dev-libs/ocl-icd
+ =dev-util/rocm-clang-ocl-${PV}*
+ sci-libs/rocBLAS
+ =dev-libs/boost-1.72*"
+
+DEPEND="${RDEPEND}
+ dev-util/cmake"
+
+S="${WORKDIR}/MIOpen-rocm-${PV}"
+
+src_prepare() {
+ sed -e "s:PATHS /opt/rocm/llvm:PATHS ${EPREFIX}/usr/lib/llvm/roc/ NO_DEFAULT_PATH:" \
+ -e '/set( MIOPEN_INSTALL_DIR/s:miopen:${CMAKE_INSTALL_PREFIX}:' \
+ -e '/set(MIOPEN_SYSTEM_DB_PATH/s:${CMAKE_INSTALL_PREFIX}/::' \
+ -e '/MIOPEN_TIDY_ERRORS ALL/d' \
+ -i CMakeLists.txt || die
+
+ sed -e "/rocm_install_symlink_subdir(\${MIOPEN_INSTALL_DIR})/d" -i src/CMakeLists.txt || die
+
+ sed -e "s:\${AMD_DEVICE_LIBS_PREFIX}/lib:${EPREFIX}/usr/lib/amdgcn/bitcode:" -i cmake/hip-config.cmake || die
+
+ cmake_src_prepare
+}
+
+src_configure() {
+ export CXX="hipcc"
+
+ local mycmakeargs=(
+ -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr"
+ -DCMAKE_BUILD_TYPE=Release
+ -DMIOPEN_BACKEND=$(usex opencl OpenCL HIP)
+ -DBoost_USE_STATIC_LIBS=OFF
+ )
+
+ cmake_src_configure
+}
+
+src_install() {
+ cmake_src_install
+ chrpath --delete "${ED}/usr/bin/MIOpenDriver"
+ chrpath --delete "${ED}/usr/lib64/libMIOpen.so.1.0"
+}
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] proj/sci:master commit in: sci-libs/miopen/
@ 2021-01-21 9:18 Benda XU
0 siblings, 0 replies; 5+ messages in thread
From: Benda XU @ 2021-01-21 9:18 UTC (permalink / raw
To: gentoo-commits
commit: c8c364ba87ab8a9f43b824f00cbda1fa9037d822
Author: Benda Xu <heroxbd <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 21 09:17:57 2021 +0000
Commit: Benda XU <heroxbd <AT> gentoo <DOT> org>
CommitDate: Thu Jan 21 09:17:57 2021 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=c8c364ba
sci-libs/miopen: unconditional use HIP.
Package-Manager: Portage-3.0.12, Repoman-3.0.1
Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org>
sci-libs/miopen/miopen-4.0.0-r1.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sci-libs/miopen/miopen-4.0.0-r1.ebuild b/sci-libs/miopen/miopen-4.0.0-r1.ebuild
index 1bde9f88f..1651c912b 100644
--- a/sci-libs/miopen/miopen-4.0.0-r1.ebuild
+++ b/sci-libs/miopen/miopen-4.0.0-r1.ebuild
@@ -46,7 +46,7 @@ src_configure() {
local mycmakeargs=(
-DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr"
-DCMAKE_BUILD_TYPE=Release
- -DMIOPEN_BACKEND=$(usex opencl OpenCL HIP)
+ -DMIOPEN_BACKEND=HIP
-DBoost_USE_STATIC_LIBS=OFF
)
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] proj/sci:master commit in: sci-libs/miopen/
@ 2021-01-24 11:36 Andrew Ammerlaan
0 siblings, 0 replies; 5+ messages in thread
From: Andrew Ammerlaan @ 2021-01-24 11:36 UTC (permalink / raw
To: gentoo-commits
commit: 8ab903d872e1cf188b9a1336c38521063e362c9b
Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Sun Jan 24 09:25:44 2021 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Sun Jan 24 09:25:44 2021 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=8ab903d8
sci-libs/miopen: quote variable
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>
sci-libs/miopen/miopen-4.0.0-r1.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sci-libs/miopen/miopen-4.0.0-r1.ebuild b/sci-libs/miopen/miopen-4.0.0-r1.ebuild
index 1651c912b..6b2f8fb53 100644
--- a/sci-libs/miopen/miopen-4.0.0-r1.ebuild
+++ b/sci-libs/miopen/miopen-4.0.0-r1.ebuild
@@ -27,7 +27,7 @@ DEPEND="${RDEPEND}
S="${WORKDIR}/MIOpen-rocm-${PV}"
src_prepare() {
- sed -e "s:PATHS /opt/rocm/llvm:PATHS ${EPREFIX}/usr/lib/llvm/roc/ NO_DEFAULT_PATH:" \
+ sed -e "s:PATHS /opt/rocm/llvm:PATHS ""${EPREFIX}""/usr/lib/llvm/roc/ NO_DEFAULT_PATH:" \
-e '/set( MIOPEN_INSTALL_DIR/s:miopen:${CMAKE_INSTALL_PREFIX}:' \
-e '/set(MIOPEN_SYSTEM_DB_PATH/s:${CMAKE_INSTALL_PREFIX}/::' \
-e '/MIOPEN_TIDY_ERRORS ALL/d' \
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] proj/sci:master commit in: sci-libs/miopen/
@ 2021-03-13 10:56 Andrew Ammerlaan
0 siblings, 0 replies; 5+ messages in thread
From: Andrew Ammerlaan @ 2021-03-13 10:56 UTC (permalink / raw
To: gentoo-commits
commit: 4b89644d65757fa00d465eaa4f5fbce678315da3
Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Sat Mar 13 10:56:18 2021 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Sat Mar 13 10:56:18 2021 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=4b89644d
sci-libs/miopen: fix dep on dev-libs/half
also add bdep on command in src_install
Closes: https://github.com/gentoo/sci/issues/1064
Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>
sci-libs/miopen/miopen-4.0.0-r1.ebuild | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/sci-libs/miopen/miopen-4.0.0-r1.ebuild b/sci-libs/miopen/miopen-4.0.0-r1.ebuild
index 6b2f8fb53..7197880df 100644
--- a/sci-libs/miopen/miopen-4.0.0-r1.ebuild
+++ b/sci-libs/miopen/miopen-4.0.0-r1.ebuild
@@ -16,13 +16,14 @@ SLOT="0"
RDEPEND="
>=dev-util/hip-${PV}
>=dev-libs/half-1.12.0
+ <dev-libs/half-2
dev-libs/ocl-icd
=dev-util/rocm-clang-ocl-${PV}*
sci-libs/rocBLAS
=dev-libs/boost-1.72*"
-DEPEND="${RDEPEND}
- dev-util/cmake"
+DEPEND="${RDEPEND}"
+BDEPEND="app-admin/chrpath"
S="${WORKDIR}/MIOpen-rocm-${PV}"
@@ -55,6 +56,6 @@ src_configure() {
src_install() {
cmake_src_install
- chrpath --delete "${ED}/usr/bin/MIOpenDriver"
- chrpath --delete "${ED}/usr/lib64/libMIOpen.so.1.0"
+ chrpath --delete "${ED}/usr/bin/MIOpenDriver" || die
+ chrpath --delete "${ED}/usr/lib64/libMIOpen.so.1.0" || die
}
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] proj/sci:master commit in: sci-libs/miopen/
@ 2021-11-10 4:51 Benda XU
0 siblings, 0 replies; 5+ messages in thread
From: Benda XU @ 2021-11-10 4:51 UTC (permalink / raw
To: gentoo-commits
commit: 08ce6b5dcda667ed72936349207b8b4626d655fc
Author: Benda Xu <heroxbd <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 10 04:50:54 2021 +0000
Commit: Benda XU <heroxbd <AT> gentoo <DOT> org>
CommitDate: Wed Nov 10 04:50:54 2021 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=08ce6b5d
sci-libs/miopen: landed on ::gentoo.
Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org>
sci-libs/miopen/metadata.xml | 11 ------
sci-libs/miopen/miopen-4.0.0-r1.ebuild | 61 ----------------------------------
2 files changed, 72 deletions(-)
diff --git a/sci-libs/miopen/metadata.xml b/sci-libs/miopen/metadata.xml
deleted file mode 100644
index 336bdb639..000000000
--- a/sci-libs/miopen/metadata.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM 'http://www.gentoo.org/dtd/metadata.dtd'>
-<pkgmetadata>
- <maintainer type="project">
- <email>sci@gentoo.org</email>
- </maintainer>
- <maintainer type="person">
- <email>gentoo@holzke.net</email>
- <name>Wilfried Holzke</name>
- </maintainer>
-</pkgmetadata>
diff --git a/sci-libs/miopen/miopen-4.0.0-r1.ebuild b/sci-libs/miopen/miopen-4.0.0-r1.ebuild
deleted file mode 100644
index 7197880df..000000000
--- a/sci-libs/miopen/miopen-4.0.0-r1.ebuild
+++ /dev/null
@@ -1,61 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit cmake
-
-DESCRIPTION="AMD's Machine Intelligence Library"
-HOMEPAGE="https://github.com/ROCmSoftwarePlatform/MIOpen"
-SRC_URI="https://github.com/ROCmSoftwarePlatform/MIOpen/archive/rocm-${PV}.tar.gz -> MIOpen-${PV}.tar.gz"
-
-LICENSE="MIT"
-KEYWORDS="~amd64"
-SLOT="0"
-
-RDEPEND="
- >=dev-util/hip-${PV}
- >=dev-libs/half-1.12.0
- <dev-libs/half-2
- dev-libs/ocl-icd
- =dev-util/rocm-clang-ocl-${PV}*
- sci-libs/rocBLAS
- =dev-libs/boost-1.72*"
-
-DEPEND="${RDEPEND}"
-BDEPEND="app-admin/chrpath"
-
-S="${WORKDIR}/MIOpen-rocm-${PV}"
-
-src_prepare() {
- sed -e "s:PATHS /opt/rocm/llvm:PATHS ""${EPREFIX}""/usr/lib/llvm/roc/ NO_DEFAULT_PATH:" \
- -e '/set( MIOPEN_INSTALL_DIR/s:miopen:${CMAKE_INSTALL_PREFIX}:' \
- -e '/set(MIOPEN_SYSTEM_DB_PATH/s:${CMAKE_INSTALL_PREFIX}/::' \
- -e '/MIOPEN_TIDY_ERRORS ALL/d' \
- -i CMakeLists.txt || die
-
- sed -e "/rocm_install_symlink_subdir(\${MIOPEN_INSTALL_DIR})/d" -i src/CMakeLists.txt || die
-
- sed -e "s:\${AMD_DEVICE_LIBS_PREFIX}/lib:${EPREFIX}/usr/lib/amdgcn/bitcode:" -i cmake/hip-config.cmake || die
-
- cmake_src_prepare
-}
-
-src_configure() {
- export CXX="hipcc"
-
- local mycmakeargs=(
- -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr"
- -DCMAKE_BUILD_TYPE=Release
- -DMIOPEN_BACKEND=HIP
- -DBoost_USE_STATIC_LIBS=OFF
- )
-
- cmake_src_configure
-}
-
-src_install() {
- cmake_src_install
- chrpath --delete "${ED}/usr/bin/MIOpenDriver" || die
- chrpath --delete "${ED}/usr/lib64/libMIOpen.so.1.0" || die
-}
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-11-10 4:52 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-21 9:18 [gentoo-commits] proj/sci:master commit in: sci-libs/miopen/ Benda XU
-- strict thread matches above, loose matches on Subject: below --
2021-11-10 4:51 Benda XU
2021-03-13 10:56 Andrew Ammerlaan
2021-01-24 11:36 Andrew Ammerlaan
2021-01-20 16:11 Benda XU
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox