public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: sys-cluster/scorep/
@ 2022-06-10  3:58 Alessandro Barbieri
  0 siblings, 0 replies; 7+ messages in thread
From: Alessandro Barbieri @ 2022-06-10  3:58 UTC (permalink / raw
  To: gentoo-commits

commit:     dfc60580ae6696260c8b78b1e57da46029d6860a
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Fri Jun 10 03:46:50 2022 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Fri Jun 10 03:58:04 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=dfc60580

sys-cluster/scorep: new package, add 7.1

Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 sys-cluster/scorep/Manifest          |   1 +
 sys-cluster/scorep/metadata.xml      |  16 +++++
 sys-cluster/scorep/scorep-7.1.ebuild | 126 +++++++++++++++++++++++++++++++++++
 3 files changed, 143 insertions(+)

diff --git a/sys-cluster/scorep/Manifest b/sys-cluster/scorep/Manifest
new file mode 100644
index 000000000..1464caa23
--- /dev/null
+++ b/sys-cluster/scorep/Manifest
@@ -0,0 +1 @@
+DIST scorep-7.1.tar.gz 19979160 BLAKE2B be0f3d6534410c9c510e22110f92227dcdf52b77eba735913c92bcd67fed915d59a6988090f90abd777a9c4b0d821de7264d7b40d0687c8f684e4af72e42c43b SHA512 19da94e64eb9e3fb27f2c37087df2acc511645aa16abf80bb73c19eddab9efa004325d64eb0031df2f10a250976c9c2b1faf3169ebd32909703bf678c9abeb1a

diff --git a/sys-cluster/scorep/metadata.xml b/sys-cluster/scorep/metadata.xml
new file mode 100644
index 000000000..b371d2d2e
--- /dev/null
+++ b/sys-cluster/scorep/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>lssndrbarbieri@gmail.com</email>
+		<name>Alessandro Barbieri</name>
+	</maintainer>
+	<use>
+		<flag name="gcc-plugin">Enable support for the GCC plug-in instrumentation</flag>
+		<flag name="llvm">Enable the user library wrapping feature</flag>
+		<flag name="online-access">Enable Online Access</flag>
+		<flag name="opencl">Build with libOpenCL support</flag>
+		<flag name="openshmem">Use the SHMEM compiler</flag>
+		<flag name="pmi">Build with libpmi support</flag>
+	</use>
+</pkgmetadata>

diff --git a/sys-cluster/scorep/scorep-7.1.ebuild b/sys-cluster/scorep/scorep-7.1.ebuild
new file mode 100644
index 000000000..b71364f08
--- /dev/null
+++ b/sys-cluster/scorep/scorep-7.1.ebuild
@@ -0,0 +1,126 @@
+# Copyright 2019-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LLVM_MAX_SLOT=14
+
+inherit autotools llvm fortran-2 toolchain-funcs
+
+DESCRIPTION="Scalable Performance Measurement Infrastructure for Parallel Codes"
+HOMEPAGE="https://www.vi-hps.org/projects/score-p"
+SRC_URI="https://perftools.pages.jsc.fz-juelich.de/cicd/${PN}/tags/${P}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="debug gcc-plugin llvm mpi online-access opencl openshmem pmi unwind"
+
+CDEPEND="
+	dev-libs/cubelib
+	dev-libs/cubew
+	dev-libs/papi
+	sys-cluster/opari2
+	sys-cluster/otf2
+	sys-libs/binutils-libs:=
+	sys-libs/zlib
+
+	llvm? (
+		sys-devel/clang:"${LLVM_MAX_SLOT}"
+		<sys-devel/llvm-"${LLVM_MAX_SLOT}":=
+		|| (
+			sys-devel/llvm:12
+			sys-devel/llvm:13
+			sys-devel/llvm:"${LLVM_MAX_SLOT}"
+		)
+	)
+	mpi? ( virtual/mpi )
+	openshmem? ( sys-cluster/SOS )
+	pmi? ( || ( sys-cluster/slurm sys-cluster/pmix[pmi] ) )
+	unwind? ( || ( sys-libs/libunwind sys-libs/llvm-libunwind ) )
+"
+RDEPEND="
+	${CDEPEND}
+	opencl? ( virtual/opencl )
+"
+DEPEND="
+	${CDEPEND}
+	opencl? ( dev-util/opencl-headers )
+"
+
+#PATCHES=( "${FILESDIR}/${P}-respect-flags.patch" )
+
+pkg_setup() {
+	llvm_pkg_setup
+	fortran-2_pkg_setup
+}
+
+src_prepare() {
+	rm -r vendor || die
+	default
+	eautoreconf
+}
+
+src_configure() {
+	tc-export CC CXX FC F77 CPP
+
+	if use openshmem; then
+		export SHMEMCC="oshcc"
+		export SHMEMCXX="oshc++"
+		export SHMEMF77="oshfort"
+		export SHMEMFC="oshfort"
+		export SHMEM_CPPFLAGS="${CPPFLAGS}"
+		export SHMEM_CFLAGS="${CFLAGS}"
+		export SHMEM_CXXFLAGS="${CXXFLAGS}"
+		export SHMEM_FFLAGS="${FFLAGS}"
+		export SHMEM_FCFLAGS="${FCFLAGS}"
+		export SHMEM_LDFLAGS="${LDFLAGS}"
+		export SHMEM_LIBS="-lsma"
+		export SHMEM_LIB_NAME="libsma"
+		export SHMEM_NAME="sandia-openshmem"
+	fi
+
+	local myconf=(
+		--disable-cuda
+		--disable-experimental-platform
+		--disable-openacc
+		--disable-platform-mic
+		--disable-static
+		--enable-shared
+		--with-cubelib
+		--with-cubew
+		--with-libbfd
+		--with-opari2
+		--with-otf2
+		--with-papi-header="/usr/include"
+		--with-papi-lib="/usr/$(get_libdir)"
+		--without-libcuda
+		--without-libcudart
+		--without-libcupti
+		--without-liblustreapi
+		--without-libnvidia-ml
+		--without-librca
+		--without-pdt
+
+		$(use_enable debug)
+		$(use_with gcc-plugin)
+		$(use_with online-access)
+		$(use_with opencl libOpenCL)
+		$(use_with openshmem shmem openshmem)
+		$(use_with pmi)
+		$(use_with unwind libunwind)
+	)
+	if use llvm; then
+		myconf+=( "--with-llvm=$(get_llvm_prefix)/bin" )
+	else
+		myconf+=( "--without-llvm" )
+	fi
+	use mpi || myconf+=( "--without-mpi" )
+
+	econf "${myconf[@]}"
+}
+
+src_install() {
+	default
+	find "${ED}" -name '*.la' -delete || die
+}


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: sys-cluster/scorep/
@ 2022-06-10 16:12 Alessandro Barbieri
  0 siblings, 0 replies; 7+ messages in thread
From: Alessandro Barbieri @ 2022-06-10 16:12 UTC (permalink / raw
  To: gentoo-commits

commit:     4e925ad94e0b5763d2123f48cf2a9742a1fb672c
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Fri Jun 10 16:08:15 2022 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Fri Jun 10 16:12:42 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4e925ad9

sys-cluster/scorep: constraint on otf2 version

Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 sys-cluster/scorep/scorep-7.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-cluster/scorep/scorep-7.1.ebuild b/sys-cluster/scorep/scorep-7.1.ebuild
index b71364f08..9f347cadb 100644
--- a/sys-cluster/scorep/scorep-7.1.ebuild
+++ b/sys-cluster/scorep/scorep-7.1.ebuild
@@ -21,7 +21,7 @@ CDEPEND="
 	dev-libs/cubew
 	dev-libs/papi
 	sys-cluster/opari2
-	sys-cluster/otf2
+	<sys-cluster/otf2-3.0
 	sys-libs/binutils-libs:=
 	sys-libs/zlib
 


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: sys-cluster/scorep/
@ 2022-06-14  8:00 Alessandro Barbieri
  0 siblings, 0 replies; 7+ messages in thread
From: Alessandro Barbieri @ 2022-06-14  8:00 UTC (permalink / raw
  To: gentoo-commits

commit:     489e3b138d5a650f3a7cb037c95c2a797bf8c06b
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Tue Jun 14 01:39:15 2022 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Tue Jun 14 08:00:25 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=489e3b13

sys-cluster/scorep: conditional pkg_prepare

Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 sys-cluster/scorep/scorep-7.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys-cluster/scorep/scorep-7.1.ebuild b/sys-cluster/scorep/scorep-7.1.ebuild
index 9f347cadb..95a2fa1b8 100644
--- a/sys-cluster/scorep/scorep-7.1.ebuild
+++ b/sys-cluster/scorep/scorep-7.1.ebuild
@@ -51,7 +51,7 @@ DEPEND="
 #PATCHES=( "${FILESDIR}/${P}-respect-flags.patch" )
 
 pkg_setup() {
-	llvm_pkg_setup
+	use llvm && llvm_pkg_setup
 	fortran-2_pkg_setup
 }
 


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: sys-cluster/scorep/
@ 2022-06-15 22:35 Alessandro Barbieri
  0 siblings, 0 replies; 7+ messages in thread
From: Alessandro Barbieri @ 2022-06-15 22:35 UTC (permalink / raw
  To: gentoo-commits

commit:     62121fb194034d290b673a159ead68620ff6a30c
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Wed Jun 15 21:44:40 2022 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Wed Jun 15 22:35:14 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=62121fb1

sys-cluster/scorep: require openmp for fortran

Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 sys-cluster/scorep/scorep-7.1.ebuild | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys-cluster/scorep/scorep-7.1.ebuild b/sys-cluster/scorep/scorep-7.1.ebuild
index f5a79c1e5..06d0411e2 100644
--- a/sys-cluster/scorep/scorep-7.1.ebuild
+++ b/sys-cluster/scorep/scorep-7.1.ebuild
@@ -3,6 +3,8 @@
 
 EAPI=8
 
+FORTRAN_NEED_OPENMP=1
+FORTRAN_STANDARD=90
 LLVM_MAX_SLOT=14
 
 inherit autotools llvm fortran-2 toolchain-funcs


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: sys-cluster/scorep/
@ 2022-06-15 22:35 Alessandro Barbieri
  0 siblings, 0 replies; 7+ messages in thread
From: Alessandro Barbieri @ 2022-06-15 22:35 UTC (permalink / raw
  To: gentoo-commits

commit:     78194245da3c231c082e42f3ea037b913046dc51
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Wed Jun 15 21:36:47 2022 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Wed Jun 15 22:35:14 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=78194245

sys-cluster/scorep: improve a bit the situation of respecting CC/*FLAGS

Bug: https://bugs.gentoo.org/852029
Bug: https://bugs.gentoo.org/852053
Bug: https://bugs.gentoo.org/852050
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 sys-cluster/scorep/scorep-7.1.ebuild | 75 +++++++++++++++++++++++++++---------
 1 file changed, 56 insertions(+), 19 deletions(-)

diff --git a/sys-cluster/scorep/scorep-7.1.ebuild b/sys-cluster/scorep/scorep-7.1.ebuild
index 95a2fa1b8..f5a79c1e5 100644
--- a/sys-cluster/scorep/scorep-7.1.ebuild
+++ b/sys-cluster/scorep/scorep-7.1.ebuild
@@ -48,37 +48,73 @@ DEPEND="
 	opencl? ( dev-util/opencl-headers )
 "
 
-#PATCHES=( "${FILESDIR}/${P}-respect-flags.patch" )
-
 pkg_setup() {
 	use llvm && llvm_pkg_setup
 	fortran-2_pkg_setup
 }
 
 src_prepare() {
+	tc-export CC CXX FC F77 CPP AR
+	rm build-config/common/platforms/platform-* || die
+
+	cat > build-config/common/platforms/platform-backend-user-provided <<-EOF || die
+	CC=${CC}
+	CXX=${CXX}
+	FC=${FC}
+	F77=${F77}
+	CPP=${CPP}
+	CXXCPP=${CPP}
+	EOF
+
+	cat > build-config/common/platforms/platform-frontend-user-provided <<-EOF || die
+	CC_FOR_BUILD=${CC}
+	F77_FOR_BUILD=${F77}
+	FC_FOR_BUILD=${FC}
+	CXX_FOR_BUILD=${CXX}
+	LDFLAGS_FOR_BUILD=${LDFLAGS}
+	CFLAGS_FOR_BUILD=${CFLAGS}
+	CXXFLAGS_FOR_BUILD=${CXXFLAGS}
+	CPPFLAGS_FOR_BUILD=${CPPFLAGS}
+	FCFLAGS_FOR_BUILD=${FCFLAGS}
+	FFLAGS_FOR_BUILD=${FFLAGS}
+	CXXFLAGS_FOR_BUILD_SCORE=${CXXFLAGS}
+	EOF
+
+	cat > build-config/common/platforms/platform-mpi-user-provided <<-EOF || die
+	MPICC=mpicc
+	MPICXX=mpicxx
+	MPIF77=mpif77
+	MPIFC=mpif90
+	MPI_CPPFLAGS=${CPPFLAGS}
+	MPI_CFLAGS=${CFLAGS}
+	MPI_CXXFLAGS=${CXXFLAGS}
+	MPI_FFLAGS=${FFLAGS}
+	MPI_FCFLAGS=${FCFLAGS}
+	MPI_LDFLAGS=${LDFLAGS}
+	EOF
+
+	cat > build-config/common/platforms/platform-shmem-user-provided <<-EOF || die
+	SHMEMCC=oshcc
+	SHMEMCXX=oshc++
+	SHMEMF77=oshfort
+	SHMEMFC=oshfort
+	SHMEM_CPPFLAGS=${CPPFLAGS}
+	SHMEM_CFLAGS=${CFLAGS}
+	SHMEM_CXXFLAGS=${CXXFLAGS}
+	SHMEM_FFLAGS=${FFLAGS}
+	SHMEM_FCFLAGS=${FCFLAGS}
+	SHMEM_LDFLAGS=${LDFLAGS}
+	SHMEM_LIBS=-lsma
+	SHMEM_LIB_NAME=libsma
+	SHMEM_NAME=sandia-openshmem
+	EOF
+
 	rm -r vendor || die
 	default
 	eautoreconf
 }
 
 src_configure() {
-	tc-export CC CXX FC F77 CPP
-
-	if use openshmem; then
-		export SHMEMCC="oshcc"
-		export SHMEMCXX="oshc++"
-		export SHMEMF77="oshfort"
-		export SHMEMFC="oshfort"
-		export SHMEM_CPPFLAGS="${CPPFLAGS}"
-		export SHMEM_CFLAGS="${CFLAGS}"
-		export SHMEM_CXXFLAGS="${CXXFLAGS}"
-		export SHMEM_FFLAGS="${FFLAGS}"
-		export SHMEM_FCFLAGS="${FCFLAGS}"
-		export SHMEM_LDFLAGS="${LDFLAGS}"
-		export SHMEM_LIBS="-lsma"
-		export SHMEM_LIB_NAME="libsma"
-		export SHMEM_NAME="sandia-openshmem"
-	fi
 
 	local myconf=(
 		--disable-cuda
@@ -89,6 +125,7 @@ src_configure() {
 		--enable-shared
 		--with-cubelib
 		--with-cubew
+		--with-custom-compilers
 		--with-libbfd
 		--with-opari2
 		--with-otf2


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: sys-cluster/scorep/
@ 2022-06-30 10:26 Alessandro Barbieri
  0 siblings, 0 replies; 7+ messages in thread
From: Alessandro Barbieri @ 2022-06-30 10:26 UTC (permalink / raw
  To: gentoo-commits

commit:     fe6fcdd17ca1f612a11b4e5d25c91eecd7d954fc
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Thu Jun 30 10:25:11 2022 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Thu Jun 30 10:26:17 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=fe6fcdd1

sys-cluster/scorep: new version that respect *FLAGS

Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 sys-cluster/scorep/Manifest             |   1 +
 sys-cluster/scorep/scorep-7.1-r1.ebuild | 167 ++++++++++++++++++++++++++++++++
 2 files changed, 168 insertions(+)

diff --git a/sys-cluster/scorep/Manifest b/sys-cluster/scorep/Manifest
index 1464caa23..73dec39d8 100644
--- a/sys-cluster/scorep/Manifest
+++ b/sys-cluster/scorep/Manifest
@@ -1 +1,2 @@
 DIST scorep-7.1.tar.gz 19979160 BLAKE2B be0f3d6534410c9c510e22110f92227dcdf52b77eba735913c92bcd67fed915d59a6988090f90abd777a9c4b0d821de7264d7b40d0687c8f684e4af72e42c43b SHA512 19da94e64eb9e3fb27f2c37087df2acc511645aa16abf80bb73c19eddab9efa004325d64eb0031df2f10a250976c9c2b1faf3169ebd32909703bf678c9abeb1a
+DIST scorep-edf930df.tar.gz 20238984 BLAKE2B 9a469102a5bace67633efcf8d90908bd42f7b3a90b34139034d94aace9ebf31d38a96266257df41c3b1c754eef69b9bc5fa32be5565d1b3f59f00314a04b8e98 SHA512 1332c12facc64f68c3e382fbc578834a845eec69528603eb860b6e46b9d69c079d0c962e343f02fbe51976546c02860c3f0b4a8b96882bdb606a9577020f5c84

diff --git a/sys-cluster/scorep/scorep-7.1-r1.ebuild b/sys-cluster/scorep/scorep-7.1-r1.ebuild
new file mode 100644
index 000000000..e44d04bb6
--- /dev/null
+++ b/sys-cluster/scorep/scorep-7.1-r1.ebuild
@@ -0,0 +1,167 @@
+# Copyright 2019-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+FORTRAN_NEED_OPENMP=1
+FORTRAN_STANDARD=90
+LLVM_MAX_SLOT=14
+
+inherit llvm fortran-2 toolchain-funcs
+
+DESCRIPTION="Scalable Performance Measurement Infrastructure for Parallel Codes"
+HOMEPAGE="https://www.vi-hps.org/projects/score-p"
+SRC_URI="https://perftools.pages.jsc.fz-juelich.de/cicd/${PN}/branches/gentoo-${PN}-score/sources.edf930df.tar.gz -> ${PN}-edf930df.tar.gz"
+#	https://perftools.pages.jsc.fz-juelich.de/cicd/${PN}/tags/${P}/${P}.tar.gz
+S="${WORKDIR}/sources.edf930df"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="debug gcc-plugin llvm mpi online-access opencl openshmem pmi unwind"
+#TODO: openacc
+
+CDEPEND="
+	dev-libs/cubelib
+	dev-libs/cubew
+	dev-libs/papi
+	sys-cluster/opari2
+	>=sys-cluster/otf2-3.0
+	sys-libs/binutils-libs:=
+	sys-libs/zlib
+
+	llvm? (
+		sys-devel/clang:"${LLVM_MAX_SLOT}"
+		<sys-devel/llvm-"${LLVM_MAX_SLOT}":=
+		|| (
+			sys-devel/llvm:12
+			sys-devel/llvm:13
+			sys-devel/llvm:"${LLVM_MAX_SLOT}"
+		)
+	)
+	mpi? ( virtual/mpi )
+	openshmem? ( sys-cluster/SOS )
+	pmi? ( || ( sys-cluster/slurm sys-cluster/pmix[pmi] ) )
+	unwind? ( || ( sys-libs/libunwind sys-libs/llvm-libunwind ) )
+"
+RDEPEND="
+	${CDEPEND}
+	opencl? ( virtual/opencl )
+"
+DEPEND="
+	${CDEPEND}
+	opencl? ( dev-util/opencl-headers )
+"
+
+pkg_setup() {
+	use llvm && llvm_pkg_setup
+	fortran-2_pkg_setup
+}
+
+src_prepare() {
+	tc-export CC CXX FC F77 CPP AR
+	# eautoreconf will need custom autotools
+	rm build-config/common/platforms/platform-* || die
+
+	cat > build-config/common/platforms/platform-backend-user-provided <<-EOF || die
+	CC=${CC}
+	CXX=${CXX}
+	FC=${FC}
+	F77=${F77}
+	CPP=${CPP}
+	CXXCPP=${CPP}
+	EOF
+
+	cat > build-config/common/platforms/platform-frontend-user-provided <<-EOF || die
+	CC_FOR_BUILD=${CC}
+	F77_FOR_BUILD=${F77}
+	FC_FOR_BUILD=${FC}
+	CXX_FOR_BUILD=${CXX}
+	LDFLAGS_FOR_BUILD=${LDFLAGS}
+	CFLAGS_FOR_BUILD=${CFLAGS}
+	CXXFLAGS_FOR_BUILD=${CXXFLAGS}
+	CPPFLAGS_FOR_BUILD=${CPPFLAGS}
+	FCFLAGS_FOR_BUILD=${FCFLAGS}
+	FFLAGS_FOR_BUILD=${FFLAGS}
+	EOF
+
+	cat > build-config/common/platforms/platform-mpi-user-provided <<-EOF || die
+	MPICC=mpicc
+	MPICXX=mpicxx
+	MPIF77=mpif77
+	MPIFC=mpif90
+	MPI_CPPFLAGS=${CPPFLAGS}
+	MPI_CFLAGS=${CFLAGS}
+	MPI_CXXFLAGS=${CXXFLAGS}
+	MPI_FFLAGS=${FFLAGS}
+	MPI_FCFLAGS=${FCFLAGS}
+	MPI_LDFLAGS=${LDFLAGS}
+	EOF
+
+	cat > build-config/common/platforms/platform-shmem-user-provided <<-EOF || die
+	SHMEMCC=oshcc
+	SHMEMCXX=oshc++
+	SHMEMF77=oshfort
+	SHMEMFC=oshfort
+	SHMEM_CPPFLAGS=${CPPFLAGS}
+	SHMEM_CFLAGS=${CFLAGS}
+	SHMEM_CXXFLAGS=${CXXFLAGS}
+	SHMEM_FFLAGS=${FFLAGS}
+	SHMEM_FCFLAGS=${FCFLAGS}
+	SHMEM_LDFLAGS=${LDFLAGS}
+	SHMEM_LIBS=-lsma
+	SHMEM_LIB_NAME=libsma
+	SHMEM_NAME=sandia-openshmem
+	EOF
+
+	rm -r vendor || die
+	default
+}
+
+src_configure() {
+
+	local myconf=(
+		--disable-cuda
+		--disable-experimental-platform
+		--disable-openacc
+		--disable-platform-mic
+		--disable-static
+		--enable-shared
+		--with-cubelib
+		--with-cubew
+		--with-custom-compilers
+		--with-libbfd
+		--with-opari2
+		--with-otf2
+		--with-papi-header="/usr/include"
+		--with-papi-lib="/usr/$(get_libdir)"
+		--without-libcuda
+		--without-libcudart
+		--without-libcupti
+		--without-liblustreapi
+		--without-libnvidia-ml
+		--without-librca
+		--without-pdt
+
+		$(use_enable debug)
+		$(use_with gcc-plugin)
+		$(use_with online-access)
+		$(use_with opencl libOpenCL)
+		$(use_with openshmem shmem openshmem)
+		$(use_with pmi)
+		$(use_with unwind libunwind)
+	)
+	if use llvm; then
+		myconf+=( "--with-llvm=$(get_llvm_prefix)/bin" )
+	else
+		myconf+=( "--without-llvm" )
+	fi
+	use mpi || myconf+=( "--without-mpi" )
+
+	econf CXXFLAGS_FOR_BUILD_SCORE="${CXXFLAGS}" CFLAGS_FOR_BUILD_SCORE="${CFLAGS}" LDFLAGS_FOR_BUILD_SCORE="${LDFLAGS}" "${myconf[@]}"
+}
+
+src_install() {
+	default
+	find "${ED}" -name '*.la' -delete || die
+}


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [gentoo-commits] repo/proj/guru:dev commit in: sys-cluster/scorep/
@ 2022-06-30 23:40 Alessandro Barbieri
  0 siblings, 0 replies; 7+ messages in thread
From: Alessandro Barbieri @ 2022-06-30 23:40 UTC (permalink / raw
  To: gentoo-commits

commit:     270cf23973818956d6f8246e584eda7dd11c5940
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Thu Jun 30 22:53:47 2022 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Thu Jun 30 23:40:19 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=270cf239

sys-cluster/scorep: add openacc useflag

Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 sys-cluster/scorep/metadata.xml         | 1 +
 sys-cluster/scorep/scorep-7.1-r1.ebuild | 5 ++---
 sys-cluster/scorep/scorep-7.1.ebuild    | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/sys-cluster/scorep/metadata.xml b/sys-cluster/scorep/metadata.xml
index b371d2d2e..68bcf7105 100644
--- a/sys-cluster/scorep/metadata.xml
+++ b/sys-cluster/scorep/metadata.xml
@@ -9,6 +9,7 @@
 		<flag name="gcc-plugin">Enable support for the GCC plug-in instrumentation</flag>
 		<flag name="llvm">Enable the user library wrapping feature</flag>
 		<flag name="online-access">Enable Online Access</flag>
+		<flag name="openacc">Enable support for OpenACC</flag>
 		<flag name="opencl">Build with libOpenCL support</flag>
 		<flag name="openshmem">Use the SHMEM compiler</flag>
 		<flag name="pmi">Build with libpmi support</flag>

diff --git a/sys-cluster/scorep/scorep-7.1-r1.ebuild b/sys-cluster/scorep/scorep-7.1-r1.ebuild
index e44d04bb6..eadffa9b9 100644
--- a/sys-cluster/scorep/scorep-7.1-r1.ebuild
+++ b/sys-cluster/scorep/scorep-7.1-r1.ebuild
@@ -18,8 +18,7 @@ S="${WORKDIR}/sources.edf930df"
 LICENSE="BSD"
 SLOT="0"
 KEYWORDS="~amd64"
-IUSE="debug gcc-plugin llvm mpi online-access opencl openshmem pmi unwind"
-#TODO: openacc
+IUSE="debug gcc-plugin llvm mpi online-access +openacc opencl openshmem pmi unwind"
 
 CDEPEND="
 	dev-libs/cubelib
@@ -123,7 +122,6 @@ src_configure() {
 	local myconf=(
 		--disable-cuda
 		--disable-experimental-platform
-		--disable-openacc
 		--disable-platform-mic
 		--disable-static
 		--enable-shared
@@ -144,6 +142,7 @@ src_configure() {
 		--without-pdt
 
 		$(use_enable debug)
+		$(use_enable openacc)
 		$(use_with gcc-plugin)
 		$(use_with online-access)
 		$(use_with opencl libOpenCL)

diff --git a/sys-cluster/scorep/scorep-7.1.ebuild b/sys-cluster/scorep/scorep-7.1.ebuild
index 6ac68d960..d12a677a3 100644
--- a/sys-cluster/scorep/scorep-7.1.ebuild
+++ b/sys-cluster/scorep/scorep-7.1.ebuild
@@ -16,7 +16,7 @@ SRC_URI="https://perftools.pages.jsc.fz-juelich.de/cicd/${PN}/tags/${P}/${P}.tar
 LICENSE="BSD"
 SLOT="0"
 KEYWORDS="~amd64"
-IUSE="debug gcc-plugin llvm mpi online-access opencl openshmem pmi unwind"
+IUSE="debug gcc-plugin llvm mpi online-access +openacc opencl openshmem pmi unwind"
 
 CDEPEND="
 	dev-libs/cubelib
@@ -122,7 +122,6 @@ src_configure() {
 	local myconf=(
 		--disable-cuda
 		--disable-experimental-platform
-		--disable-openacc
 		--disable-platform-mic
 		--disable-static
 		--enable-shared
@@ -143,6 +142,7 @@ src_configure() {
 		--without-pdt
 
 		$(use_enable debug)
+		$(use_enable openacc)
 		$(use_with gcc-plugin)
 		$(use_with online-access)
 		$(use_with opencl libOpenCL)


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-06-30 23:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-14  8:00 [gentoo-commits] repo/proj/guru:dev commit in: sys-cluster/scorep/ Alessandro Barbieri
  -- strict thread matches above, loose matches on Subject: below --
2022-06-30 23:40 Alessandro Barbieri
2022-06-30 10:26 Alessandro Barbieri
2022-06-15 22:35 Alessandro Barbieri
2022-06-15 22:35 Alessandro Barbieri
2022-06-10 16:12 Alessandro Barbieri
2022-06-10  3:58 Alessandro Barbieri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox