From: "Benda XU" <heroxbd@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/rocFFT/
Date: Sun, 24 Jan 2021 07:49:49 +0000 (UTC) [thread overview]
Message-ID: <1611474264.bbdc938b68c82208fccc7b95ee31e5247b16b1ba.heroxbd@gentoo> (raw)
commit: bbdc938b68c82208fccc7b95ee31e5247b16b1ba
Author: Benda Xu <heroxbd <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 21 13:13:59 2021 +0000
Commit: Benda XU <heroxbd <AT> gentoo <DOT> org>
CommitDate: Sun Jan 24 07:44:24 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bbdc938b
sci-libs/rocFFT: FFT implementation for ROCm.
Closes: https://github.com/gentoo/gentoo/pull/19146
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/rocFFT/Manifest | 1 +
sci-libs/rocFFT/metadata.xml | 19 +++++++++++++
sci-libs/rocFFT/rocFFT-4.0.0-r1.ebuild | 51 ++++++++++++++++++++++++++++++++++
3 files changed, 71 insertions(+)
diff --git a/sci-libs/rocFFT/Manifest b/sci-libs/rocFFT/Manifest
new file mode 100644
index 00000000000..61085466662
--- /dev/null
+++ b/sci-libs/rocFFT/Manifest
@@ -0,0 +1 @@
+DIST rocFFT-4.0.0.tar.gz 772176 BLAKE2B f08db9487449e707ba814a66d23992f68c140017a38f72ee45b3b224fc3e46abd40b976aef645f4432601265b38cff8939456981c686360eba135349b5d28fb5 SHA512 db9a6b49162dfb7924aa5f5dc8d42c92a5a741e03c3c0b4ece2cfb72de7506a345f3d28d31a3d7755cfe78078c448c9f952ca671e472335a4301de8702916176
diff --git a/sci-libs/rocFFT/metadata.xml b/sci-libs/rocFFT/metadata.xml
new file mode 100644
index 00000000000..6a00ab0d27c
--- /dev/null
+++ b/sci-libs/rocFFT/metadata.xml
@@ -0,0 +1,19 @@
+<?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>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>candrews@gentoo.org</email>
+ <name>Craig Andrews</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>gentoo@holzke.net</email>
+ <name>Wilfried Holzke</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">ROCmSoftwarePlatform/rocFFT</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/sci-libs/rocFFT/rocFFT-4.0.0-r1.ebuild b/sci-libs/rocFFT/rocFFT-4.0.0-r1.ebuild
new file mode 100644
index 00000000000..eee74cd57dc
--- /dev/null
+++ b/sci-libs/rocFFT/rocFFT-4.0.0-r1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake flag-o-matic check-reqs
+
+DESCRIPTION="Next generation FFT implementation for ROCm"
+HOMEPAGE="https://github.com/ROCmSoftwarePlatform/rocFFT"
+SRC_URI="https://github.com/ROCmSoftwarePlatform/rocFFT/archive/rocm-${PV}.tar.gz -> rocFFT-${PV}.tar.gz"
+
+LICENSE="MIT"
+KEYWORDS="~amd64"
+SLOT="0"
+
+RDEPEND="=dev-util/hip-$(ver_cut 1-2)*"
+DEPEND="${RDEPEND}"
+
+CHECKREQS_MEMORY="28G"
+
+S="${WORKDIR}/rocFFT-rocm-${PV}"
+
+src_prepare() {
+ sed -e "s/PREFIX rocfft//" \
+ -e "/rocm_install_symlink_subdir/d" \
+ -e "/<INSTALL_INTERFACE/s,include,include/rocFFT," \
+ -i library/src/CMakeLists.txt || die
+
+ sed -e "/rocm_install_symlink_subdir/d" \
+ -e "$!N;s:PREFIX\n rocfft:# PREFIX rocfft\n:;P;D" \
+ -i library/src/device/CMakeLists.txt || die
+
+ eapply_user
+ cmake_src_prepare
+}
+
+src_configure() {
+ # Grant access to the device
+ addwrite /dev/kfd
+ addpredict /dev/dri/
+
+ # Compiler to use
+ export CXX=hipcc
+
+ local mycmakeargs=(
+ -Wno-dev
+ -DCMAKE_INSTALL_INCLUDEDIR="include/rocFFT/"
+ )
+
+ cmake_src_configure
+}
next reply other threads:[~2021-01-24 7:49 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-24 7:49 Benda XU [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-03-20 8:57 [gentoo-commits] repo/gentoo:master commit in: sci-libs/rocFFT/ Benda XU
2022-07-09 6:10 Benda XU
2022-07-09 6:10 Benda XU
2022-07-09 6:10 Benda XU
2022-08-06 14:23 Benda XU
2022-12-19 14:00 Andreas Sturmlechner
2023-07-05 18:15 Craig Andrews
2023-07-30 4:39 Benda XU
2023-07-30 4:39 Benda XU
2023-11-19 16:32 Benda XU
2024-03-08 19:22 Sam James
2024-03-08 19:22 Sam James
2024-06-26 9:21 Sam James
2024-09-09 18:20 Sam James
2025-01-05 21:49 Sam James
2025-01-26 14:07 Sam James
2025-02-08 10:07 Patrick Lauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1611474264.bbdc938b68c82208fccc7b95ee31e5247b16b1ba.heroxbd@gentoo \
--to=heroxbd@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox