* [gentoo-commits] repo/gentoo:master commit in: dev-util/nvidia-cuda-sdk/
@ 2019-11-13 8:44 Benda XU
0 siblings, 0 replies; 27+ messages in thread
From: Benda XU @ 2019-11-13 8:44 UTC (permalink / raw
To: gentoo-commits
commit: 1312074989b3250cce376f2f260526e1e79cb1b9
Author: Benda Xu <heroxbd <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 13 06:21:40 2019 +0000
Commit: Benda XU <heroxbd <AT> gentoo <DOT> org>
CommitDate: Wed Nov 13 08:44:18 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13120749
dev-util/nvidia-cuda-sdk: version bump.
Suggested-By: Oleg, Jan Vesely, Jura, Brian Munro,
Suggested-By: younky.yang <AT> yahoo.com, Chicago
Closes: https://bugs.gentoo.org/669726
Closes: https://bugs.gentoo.org/679412
Package-Manager: Portage-2.3.73, Repoman-2.3.17
Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org>
dev-util/nvidia-cuda-sdk/Manifest | 1 +
.../nvidia-cuda-sdk-10.1.243.ebuild | 141 +++++++++++++++++++++
2 files changed, 142 insertions(+)
diff --git a/dev-util/nvidia-cuda-sdk/Manifest b/dev-util/nvidia-cuda-sdk/Manifest
index eae1f97f891..e527e6a378e 100644
--- a/dev-util/nvidia-cuda-sdk/Manifest
+++ b/dev-util/nvidia-cuda-sdk/Manifest
@@ -1,3 +1,4 @@
+DIST cuda_10.1.243_418.87.00_linux.run 474677248 BLAKE2B cfb999806369641cf4011cc186d90ce9f3c4a60afaa14e7cd81f453659f8fe41166fc2ee3b786d91d35184dd1268406ecaec818f1f3662d3ccbf2118e75dbf33 SHA512 7ef352993596bbcc7835bf096c3ee8d6e37c0acf6a246d76bf3eb7f04e71ec3a3004bff0302a4853df72d6ff5d0934ded1441631fd1933ca8e531c358863bd24
DIST cuda_6.5.19_linux_32.run 81882112 BLAKE2B cf55ef7c969503c156431fc56301ed4e9a1234ae0cb867f12649636069f35e56bf6fc9df7482b6baade45d78c8baa2d98c41a28696da59294e0f575c4a0344ce SHA512 1ce9bd6b472b7e4f1fb181eb340dfcb757714d59a89aaa02146cfe1a97c8ccb7eb7699b4ec823276f277eb4d82d95050eaba17e7ed5fd2e47b9b5d78531c5d4e
DIST cuda_6.5.19_linux_64.run 982446238 BLAKE2B 517ac07d4717f4f5d9427616a387dbe01fe35b7b6845b5d9e29aad18814243d38cc9a3cd0ff9042c027fcb056618e9a8535d560c16a6ac7998ff39fcf3ada654 SHA512 06854f020a5f72cf4bd714859e6966248ac2f589284113674e869fdaa1254cae27d4101940758ecda5df4724ad3e448a1f6d0c053b6cbc28107750872b6a5797
DIST cuda_7.5.18_linux.run 1195424633 BLAKE2B 35933c3c3355231cd59e579e6ac6a30cca57ed0e3de26ce5cac368ff22595f39cb041c9696415d4d76a49e772b7828eacab24a3e581c1e9a8ef7981e1b044eee SHA512 97459dfd124060200f1c43f763e5bce0bea53e35ed4bef72bee6c8ba1c04ecffb8695af11755443513316f91fdb5cb4d35662f7b87bca7e3de85d562d4e49363
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-10.1.243.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-10.1.243.ebuild
new file mode 100644
index 00000000000..4833f312ec3
--- /dev/null
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-10.1.243.ebuild
@@ -0,0 +1,141 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cuda flag-o-matic portability toolchain-funcs unpacker
+
+MYD=$(ver_cut 1-2 ${PV})
+DRIVER_PV="418.87.00"
+
+DESCRIPTION="NVIDIA CUDA Software Development Kit"
+HOMEPAGE="https://developer.nvidia.com/cuda-zone"
+SRC_URI="https://developer.nvidia.com/compute/cuda/${MYD}/Prod/local_installers/cuda_${PV}_${DRIVER_PV}_linux.run -> cuda_${PV}_${DRIVER_PV}_linux.run"
+
+LICENSE="CUDPP"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~amd64-linux"
+IUSE="+cuda debug +doc +examples opencl mpi"
+
+RDEPEND="
+ ~dev-util/nvidia-cuda-toolkit-${PV}
+ media-libs/freeglut
+ examples? (
+ media-libs/freeimage
+ media-libs/glew:0=
+ !prefix? ( >=x11-drivers/nvidia-drivers-${DRIVER_PV}[uvm] )
+ mpi? ( virtual/mpi )
+ )"
+DEPEND="${RDEPEND}"
+
+RESTRICT="test"
+
+S=${WORKDIR}/builds/cuda-samples
+
+QA_EXECSTACK=(
+ opt/cuda/sdk/0_Simple/cdpSimplePrint/cdpSimplePrint
+ opt/cuda/sdk/0_Simple/cdpSimpleQuicksort/cdpSimpleQuicksort
+ opt/cuda/sdk/bin/x86_64/linux/release/cdpSimplePrint
+ opt/cuda/sdk/bin/x86_64/linux/release/cdpSimpleQuicksort
+ )
+
+src_prepare() {
+ cuda_src_prepare
+
+ export RAWLDFLAGS="$(raw-ldflags)"
+# epatch "${FILESDIR}"/${P}-asneeded.patch
+
+ local file
+ while IFS="" read -d $'\0' -r file; do
+ sed \
+ -e 's:-O[23]::g' \
+ -e "/LINK/s:gcc:$(tc-getCC) ${LDFLAGS}:g" \
+ -e "/LINK/s:g++:$(tc-getCXX) ${LDFLAGS}:g" \
+ -e "/CC/s:gcc:$(tc-getCC):g" \
+ -e "/GCC/s:g++:$(tc-getCXX):g" \
+ -e "/NVCC /s|\(:=\).*|:= ${EPREFIX}/opt/cuda/bin/nvcc|g" \
+ -e "/ CFLAGS/s|\(:=\)|\1 ${CFLAGS}|g" \
+ -e "/ CXXFLAGS/s|\(:=\)|\1 ${CXXFLAGS}|g" \
+ -e "/NVCCFLAGS/s|\(:=\)|\1 ${NVCCFLAGS} |g" \
+ -e 's:-Wimplicit::g' \
+ -e "s|../../common/lib/linux/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
+ -e "s|../../common/lib/\$(OSLOWER)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
+ -e "s|../../common/lib/\$(OSLOWER)/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
+ -i "${file}" || die
+ # -e "/ALL_LDFLAGS/s|:=|:= ${RAWLDFLAGS} |g" \
+ done < <(find . -type f -name 'Makefile' -print0)
+
+ rm -rf common/inc/GL || die
+ find . -type f -name '*.a' -delete || die
+
+ eapply_user
+}
+
+src_compile() {
+ use examples || return
+ local myopts=("verbose=1")
+ use debug && myopts+=("dbg=1")
+ export FAKEROOTKEY=1 # Workaround sandbox issue in #462602
+ emake \
+ cuda-install="${EPREFIX}/opt/cuda" \
+ CUDA_PATH="${EPREFIX}/opt/cuda/" \
+ MPI_GCC=10 \
+ "${myopts[@]}"
+}
+
+src_test() {
+ addwrite /dev/nvidiactl
+ addwrite /dev/nvidia0
+
+ local i
+ for i in {0..9}*/*; do
+ emake -C "${i}" run
+ done
+}
+
+src_install() {
+ local f t crap=( *.txt Samples.htm* )
+
+ if use doc; then
+ ebegin "Installing docs ..."
+ while IFS="" read -d $'\0' -r f; do
+ treecopy "${f}" "${ED%/}"/usr/share/doc/${PF}/
+ done < <(find -type f \( -name 'readme.txt' -o -name '*.pdf' \) -print0)
+
+ while IFS="" read -d $'\0' -r f; do
+ docompress -x "${f#${ED%/}}"
+ done < <(find "${ED%/}"/usr/share/doc/${PF}/ -type f -name 'readme.txt' -print0)
+ eend
+ fi
+
+ ebegin "Cleaning before installation..."
+ for f in "${crap[@]}"; do
+ rm -f "${f}" || die
+ done
+ find -type f \( -name '*.o' -o -name '*.pdf' -o -name 'readme.txt' \) -delete || die
+ eend
+
+ ebegin "Moving files..."
+ while IFS="" read -d $'\0' -r f; do
+ t="$(dirname ${f})"
+ if [[ ${t/obj\/} != ${t} || ${t##*.} == a ]]; then
+ continue
+ fi
+ if [[ -x ${f} ]]; then
+ exeinto /opt/cuda/sdk/"${t}"
+ doexe "${f}"
+ else
+ insinto /opt/cuda/sdk/"${t}"
+ doins "${f}"
+ fi
+ done < <(find . -type f -print0)
+ eend
+}
+
+pkg_postinst() {
+ if use example && use prefix; then
+ ewarn "Gentoo Prefix does not manage kernel modules. You need to make certain"
+ ewarn "the functionality counterpart to >=x11-drivers/nvidia-drivers-${DRIVER_PV}[uvm]"
+ ewarn "is available from the host"
+ fi
+}
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-util/nvidia-cuda-sdk/
@ 2022-01-11 13:26 Andrew Ammerlaan
0 siblings, 0 replies; 27+ messages in thread
From: Andrew Ammerlaan @ 2022-01-11 13:26 UTC (permalink / raw
To: gentoo-commits
commit: b8908ee8a65cb1876409ba6896abe6fac04a55b0
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 11 13:25:44 2022 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Tue Jan 11 13:26:20 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b8908ee8
dev-util/nvidia-cuda-sdk: add version 11.5.1
Closes: https://bugs.gentoo.org/760522
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
dev-util/nvidia-cuda-sdk/Manifest | 1 +
.../nvidia-cuda-sdk/nvidia-cuda-sdk-11.5.1.ebuild | 140 +++++++++++++++++++++
2 files changed, 141 insertions(+)
diff --git a/dev-util/nvidia-cuda-sdk/Manifest b/dev-util/nvidia-cuda-sdk/Manifest
index e80c872ce2fa..0ec3c2e9bff3 100644
--- a/dev-util/nvidia-cuda-sdk/Manifest
+++ b/dev-util/nvidia-cuda-sdk/Manifest
@@ -1 +1,2 @@
DIST cuda_10.2.89_440.33.01_linux.run 2645419389 BLAKE2B 236aa70a7b45e3636c2c229fffa7d1ca0699ab4365865a73edab607a209c42c2899133dd6a83c61c5929fa754668ad15aec4d847639af1c00a8e6657c8487c77 SHA512 ad8da539ff5df7caf411d1e497ff3d6978cfa8a1fd9150fa4846089e92a604ea56be8631f3efdfe7229a655b8d2d28e6edb32f5731530a77d6f00241cc7aab6e
+DIST cuda_11.5.1_495.29.05_linux.run 3420998120 BLAKE2B 0d3f9626f97c60291397ebd0edc04e2c84942473d943d95af6fae244e5809721335bb90eaa6c019c9391de516d20599ca5631e99764616b6d25eacf1899d99d9 SHA512 71fb354714cac09265b5102223f919e34e3a8503593dd4f2e7b9542ae7787de96d64c490276b36b685da9e691cc2704419b67cfa376dcd3647e4d0f93b02db9b
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-11.5.1.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-11.5.1.ebuild
new file mode 100644
index 000000000000..f919d837304d
--- /dev/null
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-11.5.1.ebuild
@@ -0,0 +1,140 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cuda flag-o-matic portability toolchain-funcs unpacker
+
+DRIVER_PV="495.29.05"
+
+DESCRIPTION="NVIDIA CUDA Software Development Kit"
+HOMEPAGE="https://developer.nvidia.com/cuda-zone"
+SRC_URI="https://developer.download.nvidia.com/compute/cuda/${PV}/local_installers/cuda_${PV}_${DRIVER_PV}_linux.run"
+S="${WORKDIR}/builds/cuda_samples"
+
+LICENSE="CUDPP"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~amd64-linux"
+IUSE="+cuda debug +doc +examples opencl mpi"
+
+RDEPEND="
+ ~dev-util/nvidia-cuda-toolkit-${PV}
+ media-libs/freeglut
+ examples? (
+ media-libs/freeimage
+ media-libs/glew:0=
+ !prefix? ( >=x11-drivers/nvidia-drivers-${DRIVER_PV}[uvm(+)] )
+ mpi? ( virtual/mpi )
+ )"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+RESTRICT="test"
+
+QA_EXECSTACK=(
+ opt/cuda/sdk/0_Simple/cdpSimplePrint/cdpSimplePrint
+ opt/cuda/sdk/0_Simple/cdpSimpleQuicksort/cdpSimpleQuicksort
+ opt/cuda/sdk/bin/x86_64/linux/release/cdpSimplePrint
+ opt/cuda/sdk/bin/x86_64/linux/release/cdpSimpleQuicksort
+ )
+
+src_prepare() {
+ cuda_src_prepare
+
+ export RAWLDFLAGS="$(raw-ldflags)"
+
+ local file
+ while IFS="" read -d $'\0' -r file; do
+ sed \
+ -e 's:-O[23]::g' \
+ -e "/LINK/s:gcc:$(tc-getCC) ${LDFLAGS}:g" \
+ -e "/LINK/s:g++:$(tc-getCXX) ${LDFLAGS}:g" \
+ -e "/CC/s:gcc:$(tc-getCC):g" \
+ -e "/GCC/s:g++:$(tc-getCXX):g" \
+ -e "/NVCC /s|\(:=\).*|:= ${EPREFIX}/opt/cuda/bin/nvcc|g" \
+ -e "/ CFLAGS/s|\(:=\)|\1 ${CFLAGS}|g" \
+ -e "/ CXXFLAGS/s|\(:=\)|\1 ${CXXFLAGS}|g" \
+ -e "/NVCCFLAGS/s|\(:=\)|\1 ${NVCCFLAGS} |g" \
+ -e 's:-Wimplicit::g' \
+ -e "s|../../common/lib/linux/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
+ -e "s|../../common/lib/\$(OSLOWER)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
+ -e "s|../../common/lib/\$(OSLOWER)/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
+ -i "${file}" || die
+ done < <(find . -type f -name 'Makefile' -print0)
+
+ # Upstream suggested us skip cudaNvSci https://github.com/NVIDIA/cuda-samples/issues/22
+ rm -rf 0_Simple/cudaNvSci || die
+ rm -rf common/inc/GL || die
+ find . -type f -name '*.a' -delete || die
+
+ eapply_user
+}
+
+src_compile() {
+ use examples || return
+ local myopts=("verbose=1")
+ use debug && myopts+=("dbg=1")
+ export FAKEROOTKEY=1 # Workaround sandbox issue in #462602
+ emake \
+ cuda-install="${EPREFIX}/opt/cuda" \
+ CUDA_PATH="${EPREFIX}/opt/cuda/" \
+ MPI_GCC=10 \
+ "${myopts[@]}"
+}
+
+src_test() {
+ addwrite /dev/nvidiactl
+ addwrite /dev/nvidia0
+
+ local i
+ for i in {0..9}*/*; do
+ emake -C "${i}" run
+ done
+}
+
+src_install() {
+ local f t crap=( *.txt Samples.htm* )
+
+ if use doc; then
+ ebegin "Installing docs ..."
+ while IFS="" read -d $'\0' -r f; do
+ treecopy "${f}" "${ED}"/usr/share/doc/${PF}/
+ done < <(find -type f \( -name 'readme.txt' -o -name '*.pdf' \) -print0)
+
+ while IFS="" read -d $'\0' -r f; do
+ docompress -x "${f#${ED}}"
+ done < <(find "${ED}"/usr/share/doc/${PF}/ -type f -name 'readme.txt' -print0)
+ eend "Done"
+ fi
+
+ ebegin "Cleaning before installation..."
+ for f in "${crap[@]}"; do
+ rm -f "${f}" || die
+ done
+ find -type f \( -name '*.o' -o -name '*.pdf' -o -name 'readme.txt' \) -delete || die
+ eend "Done"
+
+ ebegin "Moving files..."
+ while IFS="" read -d $'\0' -r f; do
+ t="$(dirname ${f})"
+ if [[ ${t/obj\/} != ${t} || ${t##*.} == a ]]; then
+ continue
+ fi
+ if [[ -x ${f} ]]; then
+ exeinto /opt/cuda/sdk/"${t}"
+ doexe "${f}"
+ else
+ insinto /opt/cuda/sdk/"${t}"
+ doins "${f}"
+ fi
+ done < <(find . -type f -print0)
+ eend "Done"
+}
+
+pkg_postinst() {
+ if use examples && use prefix; then
+ ewarn "Gentoo Prefix does not manage kernel modules. You need to make certain"
+ ewarn "the function counterpart to >=x11-drivers/nvidia-drivers-${DRIVER_PV}"
+ ewarn "is available from the host"
+ fi
+}
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-util/nvidia-cuda-sdk/
@ 2021-07-14 22:45 Marek Szuba
0 siblings, 0 replies; 27+ messages in thread
From: Marek Szuba @ 2021-07-14 22:45 UTC (permalink / raw
To: gentoo-commits
commit: e9bb2213bb895e4a26c3e2a5a972c255d0d0af24
Author: Marek Szuba <marecki <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 14 21:35:48 2021 +0000
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org>
CommitDate: Wed Jul 14 22:44:57 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9bb2213
dev-util/nvidia-cuda-sdk: update EAPI 6 -> 7
...which should make those two old ebuilds actually usable now, seeing
as they both tried to call the long-gone cuda_pkg_setup().
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org>
.../nvidia-cuda-sdk-8.0.61-r1.ebuild | 29 ++++++++--------------
.../nvidia-cuda-sdk-9.2.88-r1.ebuild | 29 ++++++++--------------
2 files changed, 22 insertions(+), 36 deletions(-)
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.61-r1.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.61-r1.ebuild
index 2ff4e6cb0a8..aae721c174c 100644
--- a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.61-r1.ebuild
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.61-r1.ebuild
@@ -1,11 +1,11 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=7
-inherit cuda epatch flag-o-matic portability toolchain-funcs unpacker versionator
+inherit cuda flag-o-matic portability toolchain-funcs unpacker
-MYD=$(get_version_component_range 1-2)
+MYD=$(ver_cut 1-2 ${PV})
DRIVER_PV="375.26"
DESCRIPTION="NVIDIA CUDA Software Development Kit"
@@ -25,11 +25,9 @@ RDEPEND="
media-libs/glew:0=
>=x11-drivers/nvidia-drivers-375.26[uvm(+)]
mpi? ( virtual/mpi )
- )"
-DEPEND="
- ${RDEPEND}
- virtual/pkgconfig
-"
+ )"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
RESTRICT="test"
@@ -49,15 +47,10 @@ src_unpack() {
unpacker run_files/cuda-samples*run
}
-pkg_setup() {
- if use cuda || use opencl; then
- cuda_pkg_setup
- fi
-}
-
src_prepare() {
+ cuda_src_prepare
+
export RAWLDFLAGS="$(raw-ldflags)"
-# epatch "${FILESDIR}"/${P}-asneeded.patch
local file
while IFS="" read -d $'\0' -r file; do
@@ -113,12 +106,12 @@ src_install() {
if use doc; then
ebegin "Installing docs ..."
while IFS="" read -d $'\0' -r f; do
- treecopy "${f}" "${ED%/}"/usr/share/doc/${PF}/
+ treecopy "${f}" "${ED}"/usr/share/doc/${PF}/
done < <(find -type f \( -name 'readme.txt' -o -name '*.pdf' \) -print0)
while IFS="" read -d $'\0' -r f; do
- docompress -x "${f#${ED%/}}"
- done < <(find "${ED%/}"/usr/share/doc/${PF}/ -type f -name 'readme.txt' -print0)
+ docompress -x "${f#${ED}}"
+ done < <(find "${ED}"/usr/share/doc/${PF}/ -type f -name 'readme.txt' -print0)
eend
fi
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-9.2.88-r1.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-9.2.88-r1.ebuild
index 45e4d209861..60b72621e47 100644
--- a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-9.2.88-r1.ebuild
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-9.2.88-r1.ebuild
@@ -1,11 +1,11 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=7
-inherit cuda flag-o-matic portability toolchain-funcs unpacker versionator
+inherit cuda flag-o-matic portability toolchain-funcs unpacker
-MYD=$(get_version_component_range 1-2)
+MYD=$(ver_cut 1-2 ${PV})
DRIVER_PV="396.26"
DESCRIPTION="NVIDIA CUDA Software Development Kit"
@@ -25,11 +25,9 @@ RDEPEND="
media-libs/glew:0=
>=x11-drivers/nvidia-drivers-396.24[uvm(+)]
mpi? ( virtual/mpi )
- )"
-DEPEND="
- ${RDEPEND}
- virtual/pkgconfig
-"
+ )"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
RESTRICT="test"
@@ -49,15 +47,10 @@ src_unpack() {
unpacker run_files/cuda-samples*run
}
-pkg_setup() {
- if use cuda || use opencl; then
- cuda_pkg_setup
- fi
-}
-
src_prepare() {
+ cuda_src_prepare
+
export RAWLDFLAGS="$(raw-ldflags)"
-# epatch "${FILESDIR}"/${P}-asneeded.patch
local file
while IFS="" read -d $'\0' -r file; do
@@ -113,12 +106,12 @@ src_install() {
if use doc; then
ebegin "Installing docs ..."
while IFS="" read -d $'\0' -r f; do
- treecopy "${f}" "${ED%/}"/usr/share/doc/${PF}/
+ treecopy "${f}" "${ED}"/usr/share/doc/${PF}/
done < <(find -type f \( -name 'readme.txt' -o -name '*.pdf' \) -print0)
while IFS="" read -d $'\0' -r f; do
- docompress -x "${f#${ED%/}}"
- done < <(find "${ED%/}"/usr/share/doc/${PF}/ -type f -name 'readme.txt' -print0)
+ docompress -x "${f#${ED}}"
+ done < <(find "${ED}"/usr/share/doc/${PF}/ -type f -name 'readme.txt' -print0)
eend
fi
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-util/nvidia-cuda-sdk/
@ 2021-03-21 15:53 David Seifert
0 siblings, 0 replies; 27+ messages in thread
From: David Seifert @ 2021-03-21 15:53 UTC (permalink / raw
To: gentoo-commits
commit: af3d57c5bd4570cf34f497a6491f5358642b9e64
Author: Ionen Wolkens <sudinave <AT> gmail <DOT> com>
AuthorDate: Sun Mar 21 15:52:04 2021 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Mar 21 15:52:04 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af3d57c5
dev-util/nvidia-cuda-sdk: update nvidia-drivers[uvm] dep
flag being removed and enabled by default
Signed-off-by: Ionen Wolkens <sudinave <AT> gmail.com>
Signed-off-by: David Seifert <soap <AT> gentoo.org>
...ia-cuda-sdk-10.2.89.ebuild => nvidia-cuda-sdk-10.2.89-r1.ebuild} | 6 +++---
...idia-cuda-sdk-8.0.61.ebuild => nvidia-cuda-sdk-8.0.61-r1.ebuild} | 4 ++--
...idia-cuda-sdk-9.2.88.ebuild => nvidia-cuda-sdk-9.2.88-r1.ebuild} | 4 ++--
3 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-10.2.89.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-10.2.89-r1.ebuild
similarity index 96%
rename from dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-10.2.89.ebuild
rename to dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-10.2.89-r1.ebuild
index d51ba03d0bb..73a79f45175 100644
--- a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-10.2.89.ebuild
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-10.2.89-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -23,7 +23,7 @@ RDEPEND="
examples? (
media-libs/freeimage
media-libs/glew:0=
- !prefix? ( >=x11-drivers/nvidia-drivers-${DRIVER_PV}[uvm] )
+ !prefix? ( >=x11-drivers/nvidia-drivers-${DRIVER_PV}[uvm(+)] )
mpi? ( virtual/mpi )
)"
DEPEND="${RDEPEND}"
@@ -135,7 +135,7 @@ src_install() {
pkg_postinst() {
if use examples && use prefix; then
ewarn "Gentoo Prefix does not manage kernel modules. You need to make certain"
- ewarn "the function counterpart to >=x11-drivers/nvidia-drivers-${DRIVER_PV}[uvm]"
+ ewarn "the function counterpart to >=x11-drivers/nvidia-drivers-${DRIVER_PV}"
ewarn "is available from the host"
fi
}
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.61.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.61-r1.ebuild
similarity index 97%
rename from dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.61.ebuild
rename to dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.61-r1.ebuild
index 0f301935641..8e04354cdce 100644
--- a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.61.ebuild
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.61-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -23,7 +23,7 @@ RDEPEND="
examples? (
media-libs/freeimage
media-libs/glew:0=
- >=x11-drivers/nvidia-drivers-375.26[uvm]
+ >=x11-drivers/nvidia-drivers-375.26[uvm(+)]
mpi? ( virtual/mpi )
)"
DEPEND="${RDEPEND}"
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-9.2.88.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-9.2.88-r1.ebuild
similarity index 97%
rename from dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-9.2.88.ebuild
rename to dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-9.2.88-r1.ebuild
index c37d9578249..a0f37385092 100644
--- a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-9.2.88.ebuild
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-9.2.88-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -23,7 +23,7 @@ RDEPEND="
examples? (
media-libs/freeimage
media-libs/glew:0=
- >=x11-drivers/nvidia-drivers-396.24[uvm]
+ >=x11-drivers/nvidia-drivers-396.24[uvm(+)]
mpi? ( virtual/mpi )
)"
DEPEND="${RDEPEND}"
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-util/nvidia-cuda-sdk/
@ 2020-12-27 21:10 David Seifert
0 siblings, 0 replies; 27+ messages in thread
From: David Seifert @ 2020-12-27 21:10 UTC (permalink / raw
To: gentoo-commits
commit: 0260d49f0193ad4ffae9a51f0e68cb23f2dc7f37
Author: David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 27 21:10:25 2020 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Dec 27 21:10:25 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0260d49f
dev-util/nvidia-cuda-sdk: Remove old
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: David Seifert <soap <AT> gentoo.org>
dev-util/nvidia-cuda-sdk/Manifest | 7 -
.../nvidia-cuda-sdk-10.1.243.ebuild | 141 -------------------
.../nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.19.ebuild | 156 ---------------------
.../nvidia-cuda-sdk/nvidia-cuda-sdk-7.5.18.ebuild | 143 -------------------
.../nvidia-cuda-sdk-8.0.44-r1.ebuild | 143 -------------------
.../nvidia-cuda-sdk/nvidia-cuda-sdk-9.0.176.ebuild | 144 -------------------
.../nvidia-cuda-sdk/nvidia-cuda-sdk-9.1.85.ebuild | 144 -------------------
7 files changed, 878 deletions(-)
diff --git a/dev-util/nvidia-cuda-sdk/Manifest b/dev-util/nvidia-cuda-sdk/Manifest
index 621bbc65014..6ecb53f880f 100644
--- a/dev-util/nvidia-cuda-sdk/Manifest
+++ b/dev-util/nvidia-cuda-sdk/Manifest
@@ -1,10 +1,3 @@
-DIST cuda_10.1.243_418.87.00_linux.run 2572375299 BLAKE2B df9cb4faeeeeecc536e72697c6c73d544219f1b23cacb7fed646b0908fc7e573e85920861d56f76776ba637d84964cd1c789a0fe0d6541a4e0adf618b6c74d3c SHA512 f92b19d0242969a65a6e6db43bc293e442abc07a9e168c9e995692e1a401679504598c782e511be3879e1650b90f71a50bbc63c9ee45654c26b5007cdf33c4fe
DIST cuda_10.2.89_440.33.01_linux.run 2645419389 BLAKE2B 236aa70a7b45e3636c2c229fffa7d1ca0699ab4365865a73edab607a209c42c2899133dd6a83c61c5929fa754668ad15aec4d847639af1c00a8e6657c8487c77 SHA512 ad8da539ff5df7caf411d1e497ff3d6978cfa8a1fd9150fa4846089e92a604ea56be8631f3efdfe7229a655b8d2d28e6edb32f5731530a77d6f00241cc7aab6e
-DIST cuda_6.5.19_linux_32.run 81882112 BLAKE2B cf55ef7c969503c156431fc56301ed4e9a1234ae0cb867f12649636069f35e56bf6fc9df7482b6baade45d78c8baa2d98c41a28696da59294e0f575c4a0344ce SHA512 1ce9bd6b472b7e4f1fb181eb340dfcb757714d59a89aaa02146cfe1a97c8ccb7eb7699b4ec823276f277eb4d82d95050eaba17e7ed5fd2e47b9b5d78531c5d4e
-DIST cuda_6.5.19_linux_64.run 982446238 BLAKE2B 517ac07d4717f4f5d9427616a387dbe01fe35b7b6845b5d9e29aad18814243d38cc9a3cd0ff9042c027fcb056618e9a8535d560c16a6ac7998ff39fcf3ada654 SHA512 06854f020a5f72cf4bd714859e6966248ac2f589284113674e869fdaa1254cae27d4101940758ecda5df4724ad3e448a1f6d0c053b6cbc28107750872b6a5797
-DIST cuda_7.5.18_linux.run 1195424633 BLAKE2B 35933c3c3355231cd59e579e6ac6a30cca57ed0e3de26ce5cac368ff22595f39cb041c9696415d4d76a49e772b7828eacab24a3e581c1e9a8ef7981e1b044eee SHA512 97459dfd124060200f1c43f763e5bce0bea53e35ed4bef72bee6c8ba1c04ecffb8695af11755443513316f91fdb5cb4d35662f7b87bca7e3de85d562d4e49363
-DIST cuda_8.0.44_linux.run 1457082926 BLAKE2B a6408ddf8984dc4b0725cc4f53549c4d4fc4b3bd4de2771896953dbe023aa6d04ad38f5d6bf1ab3ff5752d2c18b400f478c9dbb263755267836c5de79e4f8f51 SHA512 1bf9d8e6b853c2a971b8d908a043adc5b11ec7033faed04a773c42680882753f98bc33b46f6b301c24c0f780f74bc237dce5766fc857f1a905e6c1f200728d86
DIST cuda_8.0.61_375.26_linux.run 1465528129 BLAKE2B d52ddf1dcf5246f230f210d10d1f6e7b540c892dea5a8cd770f0d062b30b01f5c8467d930430b383464d40a9b4a14eaaf22a365e081955e4452ec4f55e08da0b SHA512 d22303719a9feff64f95bf6a966f1caa2bf0cf8c955e475ce08ce54faa5e098d336c2db223ef0185c1f23b9c52b7d2f81a63515485219cfc016d72bda979248b
-DIST cuda_9.0.176_384.81_linux.run 1643293725 BLAKE2B 4155de544f877f6c420c2463bc68679cc89774f0516d1885d5c3f483ad86e7f25ecf6042b8240431b814230136f3026196a013bb18184fa2ec9af555bb7ea723 SHA512 00e24638c02d049c575732dee5237db21f7c451b606f37cf95e44e89d47d0cb055255e9f70dc013298c9e0d224147f239488558904556b68572e3f31935489a9
-DIST cuda_9.1.85_387.26_linux.run 1639829845 BLAKE2B c9f6544893b8e4d0b4c51d66f1cf17a593e65af6e7748e2994abda8ffcb839a7bb19cb0eebfbc52347293296025f000241d1c9842af0c41d31928770c4639b79 SHA512 492a5fa58fc93ac718ca093f24bb5e74dd2586338c42f2e11e328c7f16756e3511a1c555b12cb1990bb782d0d1600976f4c9e5b3d4857e371b0431daf06b2827
DIST cuda_9.2.88_396.26_linux.run 1758421686 BLAKE2B 5068b2dfae87e43c124a6a72ac98b7c562aebc7161e7c977cfba68342127e99705228be531aa5bb8af0318e17c4ef8fe36257452d0f507fc3b82e3fbd0184bdc SHA512 2d0d87926e11a1b21d6d3377138753df458a53ba9539d8399f9f252e0784cb41e2c63a5c724ca81ded82b9657b97fda51d812b467b0827e7d361aa2ad73b2dba
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-10.1.243.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-10.1.243.ebuild
deleted file mode 100644
index e63a0c26df9..00000000000
--- a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-10.1.243.ebuild
+++ /dev/null
@@ -1,141 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit cuda flag-o-matic portability toolchain-funcs unpacker
-
-MYD=$(ver_cut 1-2 ${PV})
-DRIVER_PV="418.87.00"
-
-DESCRIPTION="NVIDIA CUDA Software Development Kit"
-HOMEPAGE="https://developer.nvidia.com/cuda-zone"
-SRC_URI="https://developer.download.nvidia.com/compute/cuda/${MYD}/Prod/local_installers/cuda_${PV}_${DRIVER_PV}_linux.run -> cuda_${PV}_${DRIVER_PV}_linux.run"
-
-LICENSE="CUDPP"
-SLOT="0/${PV}"
-KEYWORDS="~amd64 ~amd64-linux"
-IUSE="+cuda debug +doc +examples opencl mpi"
-
-RDEPEND="
- ~dev-util/nvidia-cuda-toolkit-${PV}
- media-libs/freeglut
- examples? (
- media-libs/freeimage
- media-libs/glew:0=
- !prefix? ( >=x11-drivers/nvidia-drivers-${DRIVER_PV}[uvm] )
- mpi? ( virtual/mpi )
- )"
-DEPEND="${RDEPEND}"
-
-RESTRICT="test"
-
-S=${WORKDIR}/builds/cuda-samples
-
-QA_EXECSTACK=(
- opt/cuda/sdk/0_Simple/cdpSimplePrint/cdpSimplePrint
- opt/cuda/sdk/0_Simple/cdpSimpleQuicksort/cdpSimpleQuicksort
- opt/cuda/sdk/bin/x86_64/linux/release/cdpSimplePrint
- opt/cuda/sdk/bin/x86_64/linux/release/cdpSimpleQuicksort
- )
-
-src_prepare() {
- cuda_src_prepare
-
- export RAWLDFLAGS="$(raw-ldflags)"
-# epatch "${FILESDIR}"/${P}-asneeded.patch
-
- local file
- while IFS="" read -d $'\0' -r file; do
- sed \
- -e 's:-O[23]::g' \
- -e "/LINK/s:gcc:$(tc-getCC) ${LDFLAGS}:g" \
- -e "/LINK/s:g++:$(tc-getCXX) ${LDFLAGS}:g" \
- -e "/CC/s:gcc:$(tc-getCC):g" \
- -e "/GCC/s:g++:$(tc-getCXX):g" \
- -e "/NVCC /s|\(:=\).*|:= ${EPREFIX}/opt/cuda/bin/nvcc|g" \
- -e "/ CFLAGS/s|\(:=\)|\1 ${CFLAGS}|g" \
- -e "/ CXXFLAGS/s|\(:=\)|\1 ${CXXFLAGS}|g" \
- -e "/NVCCFLAGS/s|\(:=\)|\1 ${NVCCFLAGS} |g" \
- -e 's:-Wimplicit::g' \
- -e "s|../../common/lib/linux/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
- -e "s|../../common/lib/\$(OSLOWER)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
- -e "s|../../common/lib/\$(OSLOWER)/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
- -i "${file}" || die
- # -e "/ALL_LDFLAGS/s|:=|:= ${RAWLDFLAGS} |g" \
- done < <(find . -type f -name 'Makefile' -print0)
-
- rm -rf common/inc/GL || die
- find . -type f -name '*.a' -delete || die
-
- eapply_user
-}
-
-src_compile() {
- use examples || return
- local myopts=("verbose=1")
- use debug && myopts+=("dbg=1")
- export FAKEROOTKEY=1 # Workaround sandbox issue in #462602
- emake \
- cuda-install="${EPREFIX}/opt/cuda" \
- CUDA_PATH="${EPREFIX}/opt/cuda/" \
- MPI_GCC=10 \
- "${myopts[@]}"
-}
-
-src_test() {
- addwrite /dev/nvidiactl
- addwrite /dev/nvidia0
-
- local i
- for i in {0..9}*/*; do
- emake -C "${i}" run
- done
-}
-
-src_install() {
- local f t crap=( *.txt Samples.htm* )
-
- if use doc; then
- ebegin "Installing docs ..."
- while IFS="" read -d $'\0' -r f; do
- treecopy "${f}" "${ED}"/usr/share/doc/${PF}/
- done < <(find -type f \( -name 'readme.txt' -o -name '*.pdf' \) -print0)
-
- while IFS="" read -d $'\0' -r f; do
- docompress -x "${f#${ED}}"
- done < <(find "${ED}"/usr/share/doc/${PF}/ -type f -name 'readme.txt' -print0)
- eend
- fi
-
- ebegin "Cleaning before installation..."
- for f in "${crap[@]}"; do
- rm -f "${f}" || die
- done
- find -type f \( -name '*.o' -o -name '*.pdf' -o -name 'readme.txt' \) -delete || die
- eend
-
- ebegin "Moving files..."
- while IFS="" read -d $'\0' -r f; do
- t="$(dirname ${f})"
- if [[ ${t/obj\/} != ${t} || ${t##*.} == a ]]; then
- continue
- fi
- if [[ -x ${f} ]]; then
- exeinto /opt/cuda/sdk/"${t}"
- doexe "${f}"
- else
- insinto /opt/cuda/sdk/"${t}"
- doins "${f}"
- fi
- done < <(find . -type f -print0)
- eend
-}
-
-pkg_postinst() {
- if use examples && use prefix; then
- ewarn "Gentoo Prefix does not manage kernel modules. You need to make certain"
- ewarn "the function counterpart to >=x11-drivers/nvidia-drivers-${DRIVER_PV}[uvm]"
- ewarn "is available from the host"
- fi
-}
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.19.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.19.ebuild
deleted file mode 100644
index f48ac080ba5..00000000000
--- a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.19.ebuild
+++ /dev/null
@@ -1,156 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit cuda eutils flag-o-matic portability toolchain-funcs unpacker versionator
-
-MYD=$(get_version_component_range 1)_$(get_version_component_range 2)
-
-DESCRIPTION="NVIDIA CUDA Software Development Kit"
-HOMEPAGE="http://developer.nvidia.com/cuda"
-CURI="http://developer.download.nvidia.com/compute/cuda/${MYD}/rel/installers"
-SRC_URI="
- amd64? ( ${CURI}/cuda_${PV}_linux_64.run )
- x86? ( ${CURI}/cuda_${PV}_linux_32.run )"
-
-LICENSE="CUDPP"
-SLOT="0"
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
-IUSE="debug +doc +examples opencl +cuda"
-
-RDEPEND="
- ~dev-util/nvidia-cuda-toolkit-${PV}
- media-libs/freeglut
- examples? (
- media-libs/freeimage
- media-libs/glew:0=
- virtual/mpi
- >=x11-drivers/nvidia-drivers-340.32[uvm]
- x86? ( <x11-drivers/nvidia-drivers-346.35[uvm] )
- )"
-DEPEND="${RDEPEND}"
-
-RESTRICT="test"
-
-S=${WORKDIR}/cuda-samples
-
-QA_EXECSTACK=(
- opt/cuda/sdk/0_Simple/cdpSimplePrint/cdpSimplePrint
- opt/cuda/sdk/0_Simple/cdpSimpleQuicksort/cdpSimpleQuicksort
- opt/cuda/sdk/bin/x86_64/linux/release/cdpSimplePrint
- opt/cuda/sdk/bin/x86_64/linux/release/cdpSimpleQuicksort
- )
-
-src_unpack() {
- unpacker
- unpacker run_files/cuda-samples*run
-}
-
-pkg_setup() {
- if use cuda || use opencl; then
- cuda_pkg_setup
- fi
-
- if use x86; then
- ewarn "Starting with version 6.5 NVIDIA dropped more and more"
- ewarn "the support for 32bit linux."
- ewarn "Be aware that bugfixes and new features may not be available."
- ewarn "https://dev.gentoo.org/~jlec/distfiles/CUDA_Toolkit_Release_Notes.pdf"
- fi
-}
-
-src_prepare() {
- export RAWLDFLAGS="$(raw-ldflags)"
-# epatch "${FILESDIR}"/${P}-asneeded.patch
-
- sed \
- -e 's:-O2::g' \
- -e 's:-O3::g' \
- -e "/LINK/s:gcc:$(tc-getCC) ${LDFLAGS}:g" \
- -e "/LINK/s:g++:$(tc-getCXX) ${LDFLAGS}:g" \
- -e "/CC/s:gcc:$(tc-getCC):g" \
- -e "/GCC/s:g++:$(tc-getCXX):g" \
- -e "/NVCC /s|\(:=\).*|:= ${EPREFIX}/opt/cuda/bin/nvcc|g" \
- -e "/ CFLAGS/s|\(:=\)|\1 ${CFLAGS}|g" \
- -e "/ CXXFLAGS/s|\(:=\)|\1 ${CXXFLAGS}|g" \
- -e "/NVCCFLAGS/s|\(:=\)|\1 ${NVCCFLAGS} |g" \
- -e 's:-Wimplicit::g' \
- -e "s|../../common/lib/linux/\$(OS_ARCH)/libGLEW.a|$(pkg-config --libs glew)|g" \
- -e "s|../../common/lib/\$(OSLOWER)/libGLEW.a|$(pkg-config --libs glew)|g" \
- -e "s|../../common/lib/\$(OSLOWER)/\$(OS_ARCH)/libGLEW.a|$(pkg-config --libs glew)|g" \
- -i $(find . -type f -name "Makefile") || die
-
-# -e "/ALL_LDFLAGS/s|:=|:= ${RAWLDFLAGS} |g" \
- find common/inc/GL -delete || die
- find . -type f -name "*\.a" -delete || die
-
- eapply_user
-}
-
-src_compile() {
- use examples || return
- local myopts verbose="verbose=1"
- use debug && myopts+=" dbg=1"
- export FAKEROOTKEY=1 # Workaround sandbox issue in #462602
- emake \
- cuda-install="${EPREFIX}/opt/cuda" \
- CUDA_PATH="${EPREFIX}/opt/cuda/" \
- MPI_GCC=10 \
- ${myopts} ${verbose}
-}
-
-src_test() {
- local _dir _subdir
-
- addwrite /dev/nvidiactl
- addwrite /dev/nvidia0
-
- for _dir in {0..9}*; do
- pushd ${_dir} > /dev/null
- for _subdir in *; do
- emake -C ${_subdir} run
- done
- popd > /dev/null
- done
-}
-
-src_install() {
- local i j f t crap=""
-
- if use doc; then
- ebegin "Installing docs ..."
- treecopy $(find -type f \( -name readme.txt -o -name "*.pdf" \)) "${ED}"/usr/share/doc/${PF}/
- docompress -x $(find "${ED}"/usr/share/doc/${PF}/ -type f -name readme.txt | sed -e "s:${ED}::")
- eend
- fi
-
- crap+=" *.txt Samples.htm*"
-
- ebegin "Cleaning before installation..."
- for i in ${crap}; do
- if [[ -e ${i} ]]; then
- find ${i} -delete || die
- fi
- done
- find -type f \( -name "*.o" -o -name "*.pdf" -o -name "readme.txt" \) -delete || die
- eend
-
- ebegin "Moving files..."
- for f in $(find .); do
- local t="$(dirname ${f})"
- if [[ ${t/obj\/} != ${t} || ${t##*.} == a ]]; then
- continue
- fi
- if [[ ! -d ${f} ]]; then
- if [[ -x ${f} ]]; then
- exeinto /opt/cuda/sdk/${t}
- doexe ${f}
- else
- insinto /opt/cuda/sdk/${t}
- doins ${f}
- fi
- fi
- done
- eend
-}
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-7.5.18.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-7.5.18.ebuild
deleted file mode 100644
index f3d256ec6cd..00000000000
--- a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-7.5.18.ebuild
+++ /dev/null
@@ -1,143 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-inherit cuda eutils flag-o-matic portability toolchain-funcs unpacker versionator
-
-MYD=$(get_version_component_range 1-2)
-
-DESCRIPTION="NVIDIA CUDA Software Development Kit"
-HOMEPAGE="https://developer.nvidia.com/cuda-downloads"
-SRC_URI="http://developer.download.nvidia.com/compute/cuda/${MYD}/Prod/local_installers/cuda_${PV}_linux.run"
-
-LICENSE="CUDPP"
-SLOT="0"
-KEYWORDS="~amd64 ~amd64-linux"
-IUSE="debug +doc +examples opencl +cuda"
-
-RDEPEND="
- ~dev-util/nvidia-cuda-toolkit-${PV}
- media-libs/freeglut
- examples? (
- media-libs/freeimage
- media-libs/glew:0=
- virtual/mpi
- >=x11-drivers/nvidia-drivers-352.39[uvm]
- )"
-DEPEND="${RDEPEND}"
-
-RESTRICT="test"
-
-S=${WORKDIR}/samples
-
-QA_EXECSTACK=(
- opt/cuda/sdk/0_Simple/cdpSimplePrint/cdpSimplePrint
- opt/cuda/sdk/0_Simple/cdpSimpleQuicksort/cdpSimpleQuicksort
- opt/cuda/sdk/bin/x86_64/linux/release/cdpSimplePrint
- opt/cuda/sdk/bin/x86_64/linux/release/cdpSimpleQuicksort
- )
-
-src_unpack() {
- unpacker
- unpacker run_files/cuda-samples*run
-}
-
-pkg_setup() {
- if use cuda || use opencl; then
- cuda_pkg_setup
- fi
-}
-
-src_prepare() {
- export RAWLDFLAGS="$(raw-ldflags)"
-# epatch "${FILESDIR}"/${P}-asneeded.patch
-
- sed \
- -e 's:-O2::g' \
- -e 's:-O3::g' \
- -e "/LINK/s:gcc:$(tc-getCC) ${LDFLAGS}:g" \
- -e "/LINK/s:g++:$(tc-getCXX) ${LDFLAGS}:g" \
- -e "/CC/s:gcc:$(tc-getCC):g" \
- -e "/GCC/s:g++:$(tc-getCXX):g" \
- -e "/NVCC /s|\(:=\).*|:= ${EPREFIX}/opt/cuda/bin/nvcc|g" \
- -e "/ CFLAGS/s|\(:=\)|\1 ${CFLAGS}|g" \
- -e "/ CXXFLAGS/s|\(:=\)|\1 ${CXXFLAGS}|g" \
- -e "/NVCCFLAGS/s|\(:=\)|\1 ${NVCCFLAGS} |g" \
- -e 's:-Wimplicit::g' \
- -e "s|../../common/lib/linux/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
- -e "s|../../common/lib/\$(OSLOWER)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
- -e "s|../../common/lib/\$(OSLOWER)/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
- -i $(find . -type f -name "Makefile") || die
-
-# -e "/ALL_LDFLAGS/s|:=|:= ${RAWLDFLAGS} |g" \
- find common/inc/GL -delete || die
- find . -type f -name "*\.a" -delete || die
-}
-
-src_compile() {
- use examples || return
- local myopts verbose="verbose=1"
- use debug && myopts+=" dbg=1"
- export FAKEROOTKEY=1 # Workaround sandbox issue in #462602
- emake \
- cuda-install="${EPREFIX}/opt/cuda" \
- CUDA_PATH="${EPREFIX}/opt/cuda/" \
- MPI_GCC=10 \
- ${myopts} ${verbose}
-}
-
-src_test() {
- local _dir _subdir
-
- addwrite /dev/nvidiactl
- addwrite /dev/nvidia0
-
- for _dir in {0..9}*; do
- pushd ${_dir} > /dev/null
- for _subdir in *; do
- emake -C ${_subdir} run
- done
- popd > /dev/null
- done
-}
-
-src_install() {
- local i j f t crap=""
-
- if use doc; then
- ebegin "Installing docs ..."
- treecopy $(find -type f \( -name readme.txt -o -name "*.pdf" \)) "${ED}"/usr/share/doc/${PF}/
- docompress -x $(find "${ED}"/usr/share/doc/${PF}/ -type f -name readme.txt | sed -e "s:${ED}::")
- eend
- fi
-
- crap+=" *.txt Samples.htm*"
-
- ebegin "Cleaning before installation..."
- for i in ${crap}; do
- if [[ -e ${i} ]]; then
- find ${i} -delete || die
- fi
- done
- find -type f \( -name "*.o" -o -name "*.pdf" -o -name "readme.txt" \) -delete || die
- eend
-
- ebegin "Moving files..."
- for f in $(find .); do
- local t="$(dirname ${f})"
- if [[ ${t/obj\/} != ${t} || ${t##*.} == a ]]; then
- continue
- fi
- if [[ ! -d ${f} ]]; then
- if [[ -x ${f} ]]; then
- exeinto /opt/cuda/sdk/${t}
- doexe ${f}
- else
- insinto /opt/cuda/sdk/${t}
- doins ${f}
- fi
- fi
- done
- eend
-}
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.44-r1.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.44-r1.ebuild
deleted file mode 100644
index 4015cff5dca..00000000000
--- a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.44-r1.ebuild
+++ /dev/null
@@ -1,143 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit cuda eutils flag-o-matic portability toolchain-funcs unpacker versionator
-
-MYD=$(get_version_component_range 1-2)
-
-DESCRIPTION="NVIDIA CUDA Software Development Kit"
-HOMEPAGE="https://developer.nvidia.com/cuda-zone"
-SRC_URI="https://developer.nvidia.com/compute/cuda/${MYD}/prod/local_installers/cuda_${PV}_linux-run -> cuda_${PV}_linux.run"
-
-LICENSE="CUDPP"
-SLOT="0"
-KEYWORDS="~amd64 ~amd64-linux"
-IUSE="+cuda debug +doc +examples opencl mpi"
-
-RDEPEND="
- ~dev-util/nvidia-cuda-toolkit-${PV}
- media-libs/freeglut
- examples? (
- media-libs/freeimage
- media-libs/glew:0=
- >=x11-drivers/nvidia-drivers-367.44[uvm]
- mpi? ( virtual/mpi )
- )"
-DEPEND="${RDEPEND}"
-
-RESTRICT="test"
-
-S=${WORKDIR}/samples
-
-QA_EXECSTACK=(
- opt/cuda/sdk/0_Simple/cdpSimplePrint/cdpSimplePrint
- opt/cuda/sdk/0_Simple/cdpSimpleQuicksort/cdpSimpleQuicksort
- opt/cuda/sdk/bin/x86_64/linux/release/cdpSimplePrint
- opt/cuda/sdk/bin/x86_64/linux/release/cdpSimpleQuicksort
- )
-
-src_unpack() {
- # We first need to unpack the cuda_${PV}_linux.run file
- # which includes the cuda-samples*run file.
- unpacker
- unpacker run_files/cuda-samples*run
-}
-
-pkg_setup() {
- if use cuda || use opencl; then
- cuda_pkg_setup
- fi
-}
-
-src_prepare() {
- export RAWLDFLAGS="$(raw-ldflags)"
-# epatch "${FILESDIR}"/${P}-asneeded.patch
-
- local file
- while IFS="" read -d $'\0' -r file; do
- sed \
- -e 's:-O[23]::g' \
- -e "/LINK/s:gcc:$(tc-getCC) ${LDFLAGS}:g" \
- -e "/LINK/s:g++:$(tc-getCXX) ${LDFLAGS}:g" \
- -e "/CC/s:gcc:$(tc-getCC):g" \
- -e "/GCC/s:g++:$(tc-getCXX):g" \
- -e "/NVCC /s|\(:=\).*|:= ${EPREFIX}/opt/cuda/bin/nvcc|g" \
- -e "/ CFLAGS/s|\(:=\)|\1 ${CFLAGS}|g" \
- -e "/ CXXFLAGS/s|\(:=\)|\1 ${CXXFLAGS}|g" \
- -e "/NVCCFLAGS/s|\(:=\)|\1 ${NVCCFLAGS} |g" \
- -e 's:-Wimplicit::g' \
- -e "s|../../common/lib/linux/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
- -e "s|../../common/lib/\$(OSLOWER)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
- -e "s|../../common/lib/\$(OSLOWER)/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
- -i "${file}" || die
- # -e "/ALL_LDFLAGS/s|:=|:= ${RAWLDFLAGS} |g" \
- done < <(find . -type f -name 'Makefile' -print0)
-
- rm -rf common/inc/GL || die
- find . -type f -name '*.a' -delete || die
-
- eapply_user
-}
-
-src_compile() {
- use examples || return
- local myopts=("verbose=1")
- use debug && myopts+=("dbg=1")
- export FAKEROOTKEY=1 # Workaround sandbox issue in #462602
- emake \
- cuda-install="${EPREFIX}/opt/cuda" \
- CUDA_PATH="${EPREFIX}/opt/cuda/" \
- MPI_GCC=10 \
- "${myopts[@]}"
-}
-
-src_test() {
- addwrite /dev/nvidiactl
- addwrite /dev/nvidia0
-
- local i
- for i in {0..9}*/*; do
- emake -C "${i}" run
- done
-}
-
-src_install() {
- local f t crap=( *.txt Samples.htm* )
-
- if use doc; then
- ebegin "Installing docs ..."
- while IFS="" read -d $'\0' -r f; do
- treecopy "${f}" "${ED%/}"/usr/share/doc/${PF}/
- done < <(find -type f \( -name 'readme.txt' -o -name '*.pdf' \) -print0)
-
- while IFS="" read -d $'\0' -r f; do
- docompress -x "${f#${ED%/}}"
- done < <(find "${ED%/}"/usr/share/doc/${PF}/ -type f -name 'readme.txt' -print0)
- eend
- fi
-
- ebegin "Cleaning before installation..."
- for f in "${crap[@]}"; do
- rm -f "${f}" || die
- done
- find -type f \( -name '*.o' -o -name '*.pdf' -o -name 'readme.txt' \) -delete || die
- eend
-
- ebegin "Moving files..."
- while IFS="" read -d $'\0' -r f; do
- t="$(dirname ${f})"
- if [[ ${t/obj\/} != ${t} || ${t##*.} == a ]]; then
- continue
- fi
- if [[ -x ${f} ]]; then
- exeinto /opt/cuda/sdk/"${t}"
- doexe "${f}"
- else
- insinto /opt/cuda/sdk/"${t}"
- doins "${f}"
- fi
- done < <(find . -type f -print0)
- eend
-}
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-9.0.176.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-9.0.176.ebuild
deleted file mode 100644
index d70ad3f42d8..00000000000
--- a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-9.0.176.ebuild
+++ /dev/null
@@ -1,144 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit cuda eutils flag-o-matic portability toolchain-funcs unpacker versionator
-
-MYD=$(get_version_component_range 1-2)
-DRIVER_PV="384.81"
-
-DESCRIPTION="NVIDIA CUDA Software Development Kit"
-HOMEPAGE="https://developer.nvidia.com/cuda-zone"
-SRC_URI="https://developer.nvidia.com/compute/cuda/${MYD}/Prod/local_installers/cuda_${PV}_${DRIVER_PV}_linux-run -> cuda_${PV}_${DRIVER_PV}_linux.run"
-
-LICENSE="CUDPP"
-SLOT="0"
-KEYWORDS="~amd64 ~amd64-linux"
-IUSE="+cuda debug +doc +examples opencl mpi"
-
-RDEPEND="
- ~dev-util/nvidia-cuda-toolkit-${PV}
- media-libs/freeglut
- examples? (
- media-libs/freeimage
- media-libs/glew:0=
- >=x11-drivers/nvidia-drivers-384.81[uvm]
- mpi? ( virtual/mpi )
- )"
-DEPEND="${RDEPEND}"
-
-RESTRICT="test"
-
-S=${WORKDIR}/samples
-
-QA_EXECSTACK=(
- opt/cuda/sdk/0_Simple/cdpSimplePrint/cdpSimplePrint
- opt/cuda/sdk/0_Simple/cdpSimpleQuicksort/cdpSimpleQuicksort
- opt/cuda/sdk/bin/x86_64/linux/release/cdpSimplePrint
- opt/cuda/sdk/bin/x86_64/linux/release/cdpSimpleQuicksort
- )
-
-src_unpack() {
- # We first need to unpack the cuda_${PV}_linux.run file
- # which includes the cuda-samples*run file.
- unpacker
- unpacker run_files/cuda-samples*run
-}
-
-pkg_setup() {
- if use cuda || use opencl; then
- cuda_pkg_setup
- fi
-}
-
-src_prepare() {
- export RAWLDFLAGS="$(raw-ldflags)"
-# epatch "${FILESDIR}"/${P}-asneeded.patch
-
- local file
- while IFS="" read -d $'\0' -r file; do
- sed \
- -e 's:-O[23]::g' \
- -e "/LINK/s:gcc:$(tc-getCC) ${LDFLAGS}:g" \
- -e "/LINK/s:g++:$(tc-getCXX) ${LDFLAGS}:g" \
- -e "/CC/s:gcc:$(tc-getCC):g" \
- -e "/GCC/s:g++:$(tc-getCXX):g" \
- -e "/NVCC /s|\(:=\).*|:= ${EPREFIX}/opt/cuda/bin/nvcc|g" \
- -e "/ CFLAGS/s|\(:=\)|\1 ${CFLAGS}|g" \
- -e "/ CXXFLAGS/s|\(:=\)|\1 ${CXXFLAGS}|g" \
- -e "/NVCCFLAGS/s|\(:=\)|\1 ${NVCCFLAGS} |g" \
- -e 's:-Wimplicit::g' \
- -e "s|../../common/lib/linux/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
- -e "s|../../common/lib/\$(OSLOWER)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
- -e "s|../../common/lib/\$(OSLOWER)/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
- -i "${file}" || die
- # -e "/ALL_LDFLAGS/s|:=|:= ${RAWLDFLAGS} |g" \
- done < <(find . -type f -name 'Makefile' -print0)
-
- rm -rf common/inc/GL || die
- find . -type f -name '*.a' -delete || die
-
- eapply_user
-}
-
-src_compile() {
- use examples || return
- local myopts=("verbose=1")
- use debug && myopts+=("dbg=1")
- export FAKEROOTKEY=1 # Workaround sandbox issue in #462602
- emake \
- cuda-install="${EPREFIX}/opt/cuda" \
- CUDA_PATH="${EPREFIX}/opt/cuda/" \
- MPI_GCC=10 \
- "${myopts[@]}"
-}
-
-src_test() {
- addwrite /dev/nvidiactl
- addwrite /dev/nvidia0
-
- local i
- for i in {0..9}*/*; do
- emake -C "${i}" run
- done
-}
-
-src_install() {
- local f t crap=( *.txt Samples.htm* )
-
- if use doc; then
- ebegin "Installing docs ..."
- while IFS="" read -d $'\0' -r f; do
- treecopy "${f}" "${ED%/}"/usr/share/doc/${PF}/
- done < <(find -type f \( -name 'readme.txt' -o -name '*.pdf' \) -print0)
-
- while IFS="" read -d $'\0' -r f; do
- docompress -x "${f#${ED%/}}"
- done < <(find "${ED%/}"/usr/share/doc/${PF}/ -type f -name 'readme.txt' -print0)
- eend
- fi
-
- ebegin "Cleaning before installation..."
- for f in "${crap[@]}"; do
- rm -f "${f}" || die
- done
- find -type f \( -name '*.o' -o -name '*.pdf' -o -name 'readme.txt' \) -delete || die
- eend
-
- ebegin "Moving files..."
- while IFS="" read -d $'\0' -r f; do
- t="$(dirname ${f})"
- if [[ ${t/obj\/} != ${t} || ${t##*.} == a ]]; then
- continue
- fi
- if [[ -x ${f} ]]; then
- exeinto /opt/cuda/sdk/"${t}"
- doexe "${f}"
- else
- insinto /opt/cuda/sdk/"${t}"
- doins "${f}"
- fi
- done < <(find . -type f -print0)
- eend
-}
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-9.1.85.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-9.1.85.ebuild
deleted file mode 100644
index 1f648f706dc..00000000000
--- a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-9.1.85.ebuild
+++ /dev/null
@@ -1,144 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit cuda flag-o-matic portability toolchain-funcs unpacker versionator
-
-MYD=$(get_version_component_range 1-2)
-DRIVER_PV="387.26"
-
-DESCRIPTION="NVIDIA CUDA Software Development Kit"
-HOMEPAGE="https://developer.nvidia.com/cuda-zone"
-SRC_URI="https://developer.nvidia.com/compute/cuda/${MYD}/Prod2/local_installers/cuda_${PV}_${DRIVER_PV}_linux -> cuda_${PV}_${DRIVER_PV}_linux.run"
-
-LICENSE="CUDPP"
-SLOT="0"
-KEYWORDS="~amd64 ~amd64-linux"
-IUSE="+cuda debug +doc +examples opencl mpi"
-
-RDEPEND="
- ~dev-util/nvidia-cuda-toolkit-${PV}
- media-libs/freeglut
- examples? (
- media-libs/freeimage
- media-libs/glew:0=
- >=x11-drivers/nvidia-drivers-${DRIVER_PV}[uvm]
- mpi? ( virtual/mpi )
- )"
-DEPEND="${RDEPEND}"
-
-RESTRICT="test"
-
-S=${WORKDIR}/samples
-
-QA_EXECSTACK=(
- opt/cuda/sdk/0_Simple/cdpSimplePrint/cdpSimplePrint
- opt/cuda/sdk/0_Simple/cdpSimpleQuicksort/cdpSimpleQuicksort
- opt/cuda/sdk/bin/x86_64/linux/release/cdpSimplePrint
- opt/cuda/sdk/bin/x86_64/linux/release/cdpSimpleQuicksort
- )
-
-src_unpack() {
- # We first need to unpack the cuda_${PV}_linux.run file
- # which includes the cuda-samples*run file.
- unpacker
- unpacker run_files/cuda-samples*run
-}
-
-pkg_setup() {
- if use cuda || use opencl; then
- cuda_pkg_setup
- fi
-}
-
-src_prepare() {
- export RAWLDFLAGS="$(raw-ldflags)"
-# epatch "${FILESDIR}"/${P}-asneeded.patch
-
- local file
- while IFS="" read -d $'\0' -r file; do
- sed \
- -e 's:-O[23]::g' \
- -e "/LINK/s:gcc:$(tc-getCC) ${LDFLAGS}:g" \
- -e "/LINK/s:g++:$(tc-getCXX) ${LDFLAGS}:g" \
- -e "/CC/s:gcc:$(tc-getCC):g" \
- -e "/GCC/s:g++:$(tc-getCXX):g" \
- -e "/NVCC /s|\(:=\).*|:= ${EPREFIX}/opt/cuda/bin/nvcc|g" \
- -e "/ CFLAGS/s|\(:=\)|\1 ${CFLAGS}|g" \
- -e "/ CXXFLAGS/s|\(:=\)|\1 ${CXXFLAGS}|g" \
- -e "/NVCCFLAGS/s|\(:=\)|\1 ${NVCCFLAGS} |g" \
- -e 's:-Wimplicit::g' \
- -e "s|../../common/lib/linux/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
- -e "s|../../common/lib/\$(OSLOWER)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
- -e "s|../../common/lib/\$(OSLOWER)/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
- -i "${file}" || die
- # -e "/ALL_LDFLAGS/s|:=|:= ${RAWLDFLAGS} |g" \
- done < <(find . -type f -name 'Makefile' -print0)
-
- rm -rf common/inc/GL || die
- find . -type f -name '*.a' -delete || die
-
- eapply_user
-}
-
-src_compile() {
- use examples || return
- local myopts=("verbose=1")
- use debug && myopts+=("dbg=1")
- export FAKEROOTKEY=1 # Workaround sandbox issue in #462602
- emake \
- cuda-install="${EPREFIX}/opt/cuda" \
- CUDA_PATH="${EPREFIX}/opt/cuda/" \
- MPI_GCC=10 \
- "${myopts[@]}"
-}
-
-src_test() {
- addwrite /dev/nvidiactl
- addwrite /dev/nvidia0
-
- local i
- for i in {0..9}*/*; do
- emake -C "${i}" run
- done
-}
-
-src_install() {
- local f t crap=( *.txt Samples.htm* )
-
- if use doc; then
- ebegin "Installing docs ..."
- while IFS="" read -d $'\0' -r f; do
- treecopy "${f}" "${ED%/}"/usr/share/doc/${PF}/
- done < <(find -type f \( -name 'readme.txt' -o -name '*.pdf' \) -print0)
-
- while IFS="" read -d $'\0' -r f; do
- docompress -x "${f#${ED%/}}"
- done < <(find "${ED%/}"/usr/share/doc/${PF}/ -type f -name 'readme.txt' -print0)
- eend
- fi
-
- ebegin "Cleaning before installation..."
- for f in "${crap[@]}"; do
- rm -f "${f}" || die
- done
- find -type f \( -name '*.o' -o -name '*.pdf' -o -name 'readme.txt' \) -delete || die
- eend
-
- ebegin "Moving files..."
- while IFS="" read -d $'\0' -r f; do
- t="$(dirname ${f})"
- if [[ ${t/obj\/} != ${t} || ${t##*.} == a ]]; then
- continue
- fi
- if [[ -x ${f} ]]; then
- exeinto /opt/cuda/sdk/"${t}"
- doexe "${f}"
- else
- insinto /opt/cuda/sdk/"${t}"
- doins "${f}"
- fi
- done < <(find . -type f -print0)
- eend
-}
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-util/nvidia-cuda-sdk/
@ 2020-03-25 14:01 Benda XU
0 siblings, 0 replies; 27+ messages in thread
From: Benda XU @ 2020-03-25 14:01 UTC (permalink / raw
To: gentoo-commits
commit: 9d98b48b82da19fc37ac367d3fe51353e65b8850
Author: Benda Xu <heroxbd <AT> gentoo <DOT> org>
AuthorDate: Wed Mar 25 13:47:13 2020 +0000
Commit: Benda XU <heroxbd <AT> gentoo <DOT> org>
CommitDate: Wed Mar 25 14:01:24 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9d98b48b
dev-util/nvidia-cuda-sdk: version bump.
Package-Manager: Portage-2.3.88, Repoman-2.3.18
Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org>
dev-util/nvidia-cuda-sdk/Manifest | 1 +
.../nvidia-cuda-sdk/nvidia-cuda-sdk-10.2.89.ebuild | 141 +++++++++++++++++++++
2 files changed, 142 insertions(+)
diff --git a/dev-util/nvidia-cuda-sdk/Manifest b/dev-util/nvidia-cuda-sdk/Manifest
index 06e7d2ccb9a..621bbc65014 100644
--- a/dev-util/nvidia-cuda-sdk/Manifest
+++ b/dev-util/nvidia-cuda-sdk/Manifest
@@ -1,4 +1,5 @@
DIST cuda_10.1.243_418.87.00_linux.run 2572375299 BLAKE2B df9cb4faeeeeecc536e72697c6c73d544219f1b23cacb7fed646b0908fc7e573e85920861d56f76776ba637d84964cd1c789a0fe0d6541a4e0adf618b6c74d3c SHA512 f92b19d0242969a65a6e6db43bc293e442abc07a9e168c9e995692e1a401679504598c782e511be3879e1650b90f71a50bbc63c9ee45654c26b5007cdf33c4fe
+DIST cuda_10.2.89_440.33.01_linux.run 2645419389 BLAKE2B 236aa70a7b45e3636c2c229fffa7d1ca0699ab4365865a73edab607a209c42c2899133dd6a83c61c5929fa754668ad15aec4d847639af1c00a8e6657c8487c77 SHA512 ad8da539ff5df7caf411d1e497ff3d6978cfa8a1fd9150fa4846089e92a604ea56be8631f3efdfe7229a655b8d2d28e6edb32f5731530a77d6f00241cc7aab6e
DIST cuda_6.5.19_linux_32.run 81882112 BLAKE2B cf55ef7c969503c156431fc56301ed4e9a1234ae0cb867f12649636069f35e56bf6fc9df7482b6baade45d78c8baa2d98c41a28696da59294e0f575c4a0344ce SHA512 1ce9bd6b472b7e4f1fb181eb340dfcb757714d59a89aaa02146cfe1a97c8ccb7eb7699b4ec823276f277eb4d82d95050eaba17e7ed5fd2e47b9b5d78531c5d4e
DIST cuda_6.5.19_linux_64.run 982446238 BLAKE2B 517ac07d4717f4f5d9427616a387dbe01fe35b7b6845b5d9e29aad18814243d38cc9a3cd0ff9042c027fcb056618e9a8535d560c16a6ac7998ff39fcf3ada654 SHA512 06854f020a5f72cf4bd714859e6966248ac2f589284113674e869fdaa1254cae27d4101940758ecda5df4724ad3e448a1f6d0c053b6cbc28107750872b6a5797
DIST cuda_7.5.18_linux.run 1195424633 BLAKE2B 35933c3c3355231cd59e579e6ac6a30cca57ed0e3de26ce5cac368ff22595f39cb041c9696415d4d76a49e772b7828eacab24a3e581c1e9a8ef7981e1b044eee SHA512 97459dfd124060200f1c43f763e5bce0bea53e35ed4bef72bee6c8ba1c04ecffb8695af11755443513316f91fdb5cb4d35662f7b87bca7e3de85d562d4e49363
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-10.2.89.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-10.2.89.ebuild
new file mode 100644
index 00000000000..d51ba03d0bb
--- /dev/null
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-10.2.89.ebuild
@@ -0,0 +1,141 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cuda flag-o-matic portability toolchain-funcs unpacker
+
+MYD=$(ver_cut 1-2 ${PV})
+DRIVER_PV="440.33.01"
+
+DESCRIPTION="NVIDIA CUDA Software Development Kit"
+HOMEPAGE="https://developer.nvidia.com/cuda-zone"
+SRC_URI="https://developer.download.nvidia.com/compute/cuda/${MYD}/Prod/local_installers/cuda_${PV}_${DRIVER_PV}_linux.run"
+
+LICENSE="CUDPP"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~amd64-linux"
+IUSE="+cuda debug +doc +examples opencl mpi"
+
+RDEPEND="
+ ~dev-util/nvidia-cuda-toolkit-${PV}
+ media-libs/freeglut
+ examples? (
+ media-libs/freeimage
+ media-libs/glew:0=
+ !prefix? ( >=x11-drivers/nvidia-drivers-${DRIVER_PV}[uvm] )
+ mpi? ( virtual/mpi )
+ )"
+DEPEND="${RDEPEND}"
+
+RESTRICT="test"
+
+S=${WORKDIR}/builds/cuda-samples
+
+QA_EXECSTACK=(
+ opt/cuda/sdk/0_Simple/cdpSimplePrint/cdpSimplePrint
+ opt/cuda/sdk/0_Simple/cdpSimpleQuicksort/cdpSimpleQuicksort
+ opt/cuda/sdk/bin/x86_64/linux/release/cdpSimplePrint
+ opt/cuda/sdk/bin/x86_64/linux/release/cdpSimpleQuicksort
+ )
+
+src_prepare() {
+ cuda_src_prepare
+
+ export RAWLDFLAGS="$(raw-ldflags)"
+
+ local file
+ while IFS="" read -d $'\0' -r file; do
+ sed \
+ -e 's:-O[23]::g' \
+ -e "/LINK/s:gcc:$(tc-getCC) ${LDFLAGS}:g" \
+ -e "/LINK/s:g++:$(tc-getCXX) ${LDFLAGS}:g" \
+ -e "/CC/s:gcc:$(tc-getCC):g" \
+ -e "/GCC/s:g++:$(tc-getCXX):g" \
+ -e "/NVCC /s|\(:=\).*|:= ${EPREFIX}/opt/cuda/bin/nvcc|g" \
+ -e "/ CFLAGS/s|\(:=\)|\1 ${CFLAGS}|g" \
+ -e "/ CXXFLAGS/s|\(:=\)|\1 ${CXXFLAGS}|g" \
+ -e "/NVCCFLAGS/s|\(:=\)|\1 ${NVCCFLAGS} |g" \
+ -e 's:-Wimplicit::g' \
+ -e "s|../../common/lib/linux/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
+ -e "s|../../common/lib/\$(OSLOWER)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
+ -e "s|../../common/lib/\$(OSLOWER)/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
+ -i "${file}" || die
+ done < <(find . -type f -name 'Makefile' -print0)
+
+ # Upstream suggested us skip cudaNvSci https://github.com/NVIDIA/cuda-samples/issues/22
+ rm -rf 0_Simple/cudaNvSci || die
+ rm -rf common/inc/GL || die
+ find . -type f -name '*.a' -delete || die
+
+ eapply_user
+}
+
+src_compile() {
+ use examples || return
+ local myopts=("verbose=1")
+ use debug && myopts+=("dbg=1")
+ export FAKEROOTKEY=1 # Workaround sandbox issue in #462602
+ emake \
+ cuda-install="${EPREFIX}/opt/cuda" \
+ CUDA_PATH="${EPREFIX}/opt/cuda/" \
+ MPI_GCC=10 \
+ "${myopts[@]}"
+}
+
+src_test() {
+ addwrite /dev/nvidiactl
+ addwrite /dev/nvidia0
+
+ local i
+ for i in {0..9}*/*; do
+ emake -C "${i}" run
+ done
+}
+
+src_install() {
+ local f t crap=( *.txt Samples.htm* )
+
+ if use doc; then
+ ebegin "Installing docs ..."
+ while IFS="" read -d $'\0' -r f; do
+ treecopy "${f}" "${ED}"/usr/share/doc/${PF}/
+ done < <(find -type f \( -name 'readme.txt' -o -name '*.pdf' \) -print0)
+
+ while IFS="" read -d $'\0' -r f; do
+ docompress -x "${f#${ED}}"
+ done < <(find "${ED}"/usr/share/doc/${PF}/ -type f -name 'readme.txt' -print0)
+ eend
+ fi
+
+ ebegin "Cleaning before installation..."
+ for f in "${crap[@]}"; do
+ rm -f "${f}" || die
+ done
+ find -type f \( -name '*.o' -o -name '*.pdf' -o -name 'readme.txt' \) -delete || die
+ eend
+
+ ebegin "Moving files..."
+ while IFS="" read -d $'\0' -r f; do
+ t="$(dirname ${f})"
+ if [[ ${t/obj\/} != ${t} || ${t##*.} == a ]]; then
+ continue
+ fi
+ if [[ -x ${f} ]]; then
+ exeinto /opt/cuda/sdk/"${t}"
+ doexe "${f}"
+ else
+ insinto /opt/cuda/sdk/"${t}"
+ doins "${f}"
+ fi
+ done < <(find . -type f -print0)
+ eend
+}
+
+pkg_postinst() {
+ if use examples && use prefix; then
+ ewarn "Gentoo Prefix does not manage kernel modules. You need to make certain"
+ ewarn "the function counterpart to >=x11-drivers/nvidia-drivers-${DRIVER_PV}[uvm]"
+ ewarn "is available from the host"
+ fi
+}
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-util/nvidia-cuda-sdk/
@ 2019-11-18 11:34 Benda XU
0 siblings, 0 replies; 27+ messages in thread
From: Benda XU @ 2019-11-18 11:34 UTC (permalink / raw
To: gentoo-commits
commit: 9fe9f97114bde369fe8a1527b06f17a262ea5f40
Author: Benda Xu <heroxbd <AT> gentoo <DOT> org>
AuthorDate: Mon Nov 18 11:34:05 2019 +0000
Commit: Benda XU <heroxbd <AT> gentoo <DOT> org>
CommitDate: Mon Nov 18 11:34:28 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9fe9f971
dev-util/nvidia-cuda-sdk: remove unnecessary slash strip.
Package-Manager: Portage-2.3.79, Repoman-2.3.17
Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org>
dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-10.1.243.ebuild | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-10.1.243.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-10.1.243.ebuild
index 3503fb5b2ca..e63a0c26df9 100644
--- a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-10.1.243.ebuild
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-10.1.243.ebuild
@@ -99,12 +99,12 @@ src_install() {
if use doc; then
ebegin "Installing docs ..."
while IFS="" read -d $'\0' -r f; do
- treecopy "${f}" "${ED%/}"/usr/share/doc/${PF}/
+ treecopy "${f}" "${ED}"/usr/share/doc/${PF}/
done < <(find -type f \( -name 'readme.txt' -o -name '*.pdf' \) -print0)
while IFS="" read -d $'\0' -r f; do
- docompress -x "${f#${ED%/}}"
- done < <(find "${ED%/}"/usr/share/doc/${PF}/ -type f -name 'readme.txt' -print0)
+ docompress -x "${f#${ED}}"
+ done < <(find "${ED}"/usr/share/doc/${PF}/ -type f -name 'readme.txt' -print0)
eend
fi
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-util/nvidia-cuda-sdk/
@ 2019-11-14 2:09 Benda XU
0 siblings, 0 replies; 27+ messages in thread
From: Benda XU @ 2019-11-14 2:09 UTC (permalink / raw
To: gentoo-commits
commit: 531f857d27336b63e79a58abcd40c5fdf65ebf32
Author: Benda Xu <heroxbd <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 14 02:08:17 2019 +0000
Commit: Benda XU <heroxbd <AT> gentoo <DOT> org>
CommitDate: Thu Nov 14 02:09:11 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=531f857d
dev-util/nvidia-cuda-sdk: fix use flag "examples" in pkg_postinst().
Suggested-By: Thomas Albers
Closes: https://bugs.gentoo.org/700026
Package-Manager: Portage-2.3.73, Repoman-2.3.17
Signed-off-by: Benda Xu <heroxbd <AT> gentoo.org>
dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-10.1.243.ebuild | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-10.1.243.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-10.1.243.ebuild
index aa1b4bfd2b8..3503fb5b2ca 100644
--- a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-10.1.243.ebuild
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-10.1.243.ebuild
@@ -133,9 +133,9 @@ src_install() {
}
pkg_postinst() {
- if use example && use prefix; then
+ if use examples && use prefix; then
ewarn "Gentoo Prefix does not manage kernel modules. You need to make certain"
- ewarn "the functionality counterpart to >=x11-drivers/nvidia-drivers-${DRIVER_PV}[uvm]"
+ ewarn "the function counterpart to >=x11-drivers/nvidia-drivers-${DRIVER_PV}[uvm]"
ewarn "is available from the host"
fi
}
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-util/nvidia-cuda-sdk/
@ 2019-11-13 16:05 Mike Gilbert
0 siblings, 0 replies; 27+ messages in thread
From: Mike Gilbert @ 2019-11-13 16:05 UTC (permalink / raw
To: gentoo-commits
commit: 76500ca82b27723a91a9a5a7095249137782ba73
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 13 16:05:20 2019 +0000
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Wed Nov 13 16:05:20 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=76500ca8
dev-util/nvidia-cuda-sdk: fix SRC_URI and Manifest
Package-Manager: Portage-2.3.78_p18, Repoman-2.3.17_p114
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
dev-util/nvidia-cuda-sdk/Manifest | 2 +-
dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-10.1.243.ebuild | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dev-util/nvidia-cuda-sdk/Manifest b/dev-util/nvidia-cuda-sdk/Manifest
index e527e6a378e..06e7d2ccb9a 100644
--- a/dev-util/nvidia-cuda-sdk/Manifest
+++ b/dev-util/nvidia-cuda-sdk/Manifest
@@ -1,4 +1,4 @@
-DIST cuda_10.1.243_418.87.00_linux.run 474677248 BLAKE2B cfb999806369641cf4011cc186d90ce9f3c4a60afaa14e7cd81f453659f8fe41166fc2ee3b786d91d35184dd1268406ecaec818f1f3662d3ccbf2118e75dbf33 SHA512 7ef352993596bbcc7835bf096c3ee8d6e37c0acf6a246d76bf3eb7f04e71ec3a3004bff0302a4853df72d6ff5d0934ded1441631fd1933ca8e531c358863bd24
+DIST cuda_10.1.243_418.87.00_linux.run 2572375299 BLAKE2B df9cb4faeeeeecc536e72697c6c73d544219f1b23cacb7fed646b0908fc7e573e85920861d56f76776ba637d84964cd1c789a0fe0d6541a4e0adf618b6c74d3c SHA512 f92b19d0242969a65a6e6db43bc293e442abc07a9e168c9e995692e1a401679504598c782e511be3879e1650b90f71a50bbc63c9ee45654c26b5007cdf33c4fe
DIST cuda_6.5.19_linux_32.run 81882112 BLAKE2B cf55ef7c969503c156431fc56301ed4e9a1234ae0cb867f12649636069f35e56bf6fc9df7482b6baade45d78c8baa2d98c41a28696da59294e0f575c4a0344ce SHA512 1ce9bd6b472b7e4f1fb181eb340dfcb757714d59a89aaa02146cfe1a97c8ccb7eb7699b4ec823276f277eb4d82d95050eaba17e7ed5fd2e47b9b5d78531c5d4e
DIST cuda_6.5.19_linux_64.run 982446238 BLAKE2B 517ac07d4717f4f5d9427616a387dbe01fe35b7b6845b5d9e29aad18814243d38cc9a3cd0ff9042c027fcb056618e9a8535d560c16a6ac7998ff39fcf3ada654 SHA512 06854f020a5f72cf4bd714859e6966248ac2f589284113674e869fdaa1254cae27d4101940758ecda5df4724ad3e448a1f6d0c053b6cbc28107750872b6a5797
DIST cuda_7.5.18_linux.run 1195424633 BLAKE2B 35933c3c3355231cd59e579e6ac6a30cca57ed0e3de26ce5cac368ff22595f39cb041c9696415d4d76a49e772b7828eacab24a3e581c1e9a8ef7981e1b044eee SHA512 97459dfd124060200f1c43f763e5bce0bea53e35ed4bef72bee6c8ba1c04ecffb8695af11755443513316f91fdb5cb4d35662f7b87bca7e3de85d562d4e49363
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-10.1.243.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-10.1.243.ebuild
index 4833f312ec3..aa1b4bfd2b8 100644
--- a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-10.1.243.ebuild
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-10.1.243.ebuild
@@ -10,7 +10,7 @@ DRIVER_PV="418.87.00"
DESCRIPTION="NVIDIA CUDA Software Development Kit"
HOMEPAGE="https://developer.nvidia.com/cuda-zone"
-SRC_URI="https://developer.nvidia.com/compute/cuda/${MYD}/Prod/local_installers/cuda_${PV}_${DRIVER_PV}_linux.run -> cuda_${PV}_${DRIVER_PV}_linux.run"
+SRC_URI="https://developer.download.nvidia.com/compute/cuda/${MYD}/Prod/local_installers/cuda_${PV}_${DRIVER_PV}_linux.run -> cuda_${PV}_${DRIVER_PV}_linux.run"
LICENSE="CUDPP"
SLOT="0/${PV}"
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-util/nvidia-cuda-sdk/
@ 2018-06-07 10:36 Alexey Shvetsov
0 siblings, 0 replies; 27+ messages in thread
From: Alexey Shvetsov @ 2018-06-07 10:36 UTC (permalink / raw
To: gentoo-commits
commit: 8e776b76116a620d3edabf19fd1d14c303ff4130
Author: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 7 10:36:13 2018 +0000
Commit: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
CommitDate: Thu Jun 7 10:36:33 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e776b76
dev-util/nvidia-cuda-sdk: version bump
Package-Manager: Portage-2.3.40, Repoman-2.3.9
dev-util/nvidia-cuda-sdk/Manifest | 1 +
.../nvidia-cuda-sdk/nvidia-cuda-sdk-9.2.88.ebuild | 144 +++++++++++++++++++++
2 files changed, 145 insertions(+)
diff --git a/dev-util/nvidia-cuda-sdk/Manifest b/dev-util/nvidia-cuda-sdk/Manifest
index 840eb14f057..eae1f97f891 100644
--- a/dev-util/nvidia-cuda-sdk/Manifest
+++ b/dev-util/nvidia-cuda-sdk/Manifest
@@ -5,3 +5,4 @@ DIST cuda_8.0.44_linux.run 1457082926 BLAKE2B a6408ddf8984dc4b0725cc4f53549c4d4f
DIST cuda_8.0.61_375.26_linux.run 1465528129 BLAKE2B d52ddf1dcf5246f230f210d10d1f6e7b540c892dea5a8cd770f0d062b30b01f5c8467d930430b383464d40a9b4a14eaaf22a365e081955e4452ec4f55e08da0b SHA512 d22303719a9feff64f95bf6a966f1caa2bf0cf8c955e475ce08ce54faa5e098d336c2db223ef0185c1f23b9c52b7d2f81a63515485219cfc016d72bda979248b
DIST cuda_9.0.176_384.81_linux.run 1643293725 BLAKE2B 4155de544f877f6c420c2463bc68679cc89774f0516d1885d5c3f483ad86e7f25ecf6042b8240431b814230136f3026196a013bb18184fa2ec9af555bb7ea723 SHA512 00e24638c02d049c575732dee5237db21f7c451b606f37cf95e44e89d47d0cb055255e9f70dc013298c9e0d224147f239488558904556b68572e3f31935489a9
DIST cuda_9.1.85_387.26_linux.run 1639829845 BLAKE2B c9f6544893b8e4d0b4c51d66f1cf17a593e65af6e7748e2994abda8ffcb839a7bb19cb0eebfbc52347293296025f000241d1c9842af0c41d31928770c4639b79 SHA512 492a5fa58fc93ac718ca093f24bb5e74dd2586338c42f2e11e328c7f16756e3511a1c555b12cb1990bb782d0d1600976f4c9e5b3d4857e371b0431daf06b2827
+DIST cuda_9.2.88_396.26_linux.run 1758421686 BLAKE2B 5068b2dfae87e43c124a6a72ac98b7c562aebc7161e7c977cfba68342127e99705228be531aa5bb8af0318e17c4ef8fe36257452d0f507fc3b82e3fbd0184bdc SHA512 2d0d87926e11a1b21d6d3377138753df458a53ba9539d8399f9f252e0784cb41e2c63a5c724ca81ded82b9657b97fda51d812b467b0827e7d361aa2ad73b2dba
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-9.2.88.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-9.2.88.ebuild
new file mode 100644
index 00000000000..c37d9578249
--- /dev/null
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-9.2.88.ebuild
@@ -0,0 +1,144 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cuda flag-o-matic portability toolchain-funcs unpacker versionator
+
+MYD=$(get_version_component_range 1-2)
+DRIVER_PV="396.26"
+
+DESCRIPTION="NVIDIA CUDA Software Development Kit"
+HOMEPAGE="https://developer.nvidia.com/cuda-zone"
+SRC_URI="https://developer.nvidia.com/compute/cuda/${MYD}/Prod/local_installers/cuda_${PV}_${DRIVER_PV}_linux -> cuda_${PV}_${DRIVER_PV}_linux.run"
+
+LICENSE="CUDPP"
+SLOT="0"
+KEYWORDS="~amd64 ~amd64-linux"
+IUSE="+cuda debug +doc +examples opencl mpi"
+
+RDEPEND="
+ ~dev-util/nvidia-cuda-toolkit-${PV}
+ media-libs/freeglut
+ examples? (
+ media-libs/freeimage
+ media-libs/glew:0=
+ >=x11-drivers/nvidia-drivers-396.24[uvm]
+ mpi? ( virtual/mpi )
+ )"
+DEPEND="${RDEPEND}"
+
+RESTRICT="test"
+
+S=${WORKDIR}/samples
+
+QA_EXECSTACK=(
+ opt/cuda/sdk/0_Simple/cdpSimplePrint/cdpSimplePrint
+ opt/cuda/sdk/0_Simple/cdpSimpleQuicksort/cdpSimpleQuicksort
+ opt/cuda/sdk/bin/x86_64/linux/release/cdpSimplePrint
+ opt/cuda/sdk/bin/x86_64/linux/release/cdpSimpleQuicksort
+ )
+
+src_unpack() {
+ # We first need to unpack the cuda_${PV}_linux.run file
+ # which includes the cuda-samples*run file.
+ unpacker
+ unpacker run_files/cuda-samples*run
+}
+
+pkg_setup() {
+ if use cuda || use opencl; then
+ cuda_pkg_setup
+ fi
+}
+
+src_prepare() {
+ export RAWLDFLAGS="$(raw-ldflags)"
+# epatch "${FILESDIR}"/${P}-asneeded.patch
+
+ local file
+ while IFS="" read -d $'\0' -r file; do
+ sed \
+ -e 's:-O[23]::g' \
+ -e "/LINK/s:gcc:$(tc-getCC) ${LDFLAGS}:g" \
+ -e "/LINK/s:g++:$(tc-getCXX) ${LDFLAGS}:g" \
+ -e "/CC/s:gcc:$(tc-getCC):g" \
+ -e "/GCC/s:g++:$(tc-getCXX):g" \
+ -e "/NVCC /s|\(:=\).*|:= ${EPREFIX}/opt/cuda/bin/nvcc|g" \
+ -e "/ CFLAGS/s|\(:=\)|\1 ${CFLAGS}|g" \
+ -e "/ CXXFLAGS/s|\(:=\)|\1 ${CXXFLAGS}|g" \
+ -e "/NVCCFLAGS/s|\(:=\)|\1 ${NVCCFLAGS} |g" \
+ -e 's:-Wimplicit::g' \
+ -e "s|../../common/lib/linux/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
+ -e "s|../../common/lib/\$(OSLOWER)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
+ -e "s|../../common/lib/\$(OSLOWER)/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
+ -i "${file}" || die
+ # -e "/ALL_LDFLAGS/s|:=|:= ${RAWLDFLAGS} |g" \
+ done < <(find . -type f -name 'Makefile' -print0)
+
+ rm -rf common/inc/GL || die
+ find . -type f -name '*.a' -delete || die
+
+ eapply_user
+}
+
+src_compile() {
+ use examples || return
+ local myopts=("verbose=1")
+ use debug && myopts+=("dbg=1")
+ export FAKEROOTKEY=1 # Workaround sandbox issue in #462602
+ emake \
+ cuda-install="${EPREFIX}/opt/cuda" \
+ CUDA_PATH="${EPREFIX}/opt/cuda/" \
+ MPI_GCC=10 \
+ "${myopts[@]}"
+}
+
+src_test() {
+ addwrite /dev/nvidiactl
+ addwrite /dev/nvidia0
+
+ local i
+ for i in {0..9}*/*; do
+ emake -C "${i}" run
+ done
+}
+
+src_install() {
+ local f t crap=( *.txt Samples.htm* )
+
+ if use doc; then
+ ebegin "Installing docs ..."
+ while IFS="" read -d $'\0' -r f; do
+ treecopy "${f}" "${ED%/}"/usr/share/doc/${PF}/
+ done < <(find -type f \( -name 'readme.txt' -o -name '*.pdf' \) -print0)
+
+ while IFS="" read -d $'\0' -r f; do
+ docompress -x "${f#${ED%/}}"
+ done < <(find "${ED%/}"/usr/share/doc/${PF}/ -type f -name 'readme.txt' -print0)
+ eend
+ fi
+
+ ebegin "Cleaning before installation..."
+ for f in "${crap[@]}"; do
+ rm -f "${f}" || die
+ done
+ find -type f \( -name '*.o' -o -name '*.pdf' -o -name 'readme.txt' \) -delete || die
+ eend
+
+ ebegin "Moving files..."
+ while IFS="" read -d $'\0' -r f; do
+ t="$(dirname ${f})"
+ if [[ ${t/obj\/} != ${t} || ${t##*.} == a ]]; then
+ continue
+ fi
+ if [[ -x ${f} ]]; then
+ exeinto /opt/cuda/sdk/"${t}"
+ doexe "${f}"
+ else
+ insinto /opt/cuda/sdk/"${t}"
+ doins "${f}"
+ fi
+ done < <(find . -type f -print0)
+ eend
+}
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-util/nvidia-cuda-sdk/
@ 2018-02-18 17:18 Patrice Clement
0 siblings, 0 replies; 27+ messages in thread
From: Patrice Clement @ 2018-02-18 17:18 UTC (permalink / raw
To: gentoo-commits
commit: 483f44fcfa66bfd503423f88eaa33bc55c61a9e4
Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
AuthorDate: Mon Jan 22 08:08:12 2018 +0000
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Sun Feb 18 17:18:30 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=483f44fc
dev-util/nvidia-cuda-sdk: fix SRC_URI.
Package-Manager: Portage-2.3.13, Repoman-2.3.3
Closes: https://bugs.gentoo.org/645086
Closes: https://github.com/gentoo/gentoo/pull/6929
dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-9.0.176.ebuild | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-9.0.176.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-9.0.176.ebuild
index 3353dabc300..d70ad3f42d8 100644
--- a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-9.0.176.ebuild
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-9.0.176.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
@@ -10,7 +10,7 @@ DRIVER_PV="384.81"
DESCRIPTION="NVIDIA CUDA Software Development Kit"
HOMEPAGE="https://developer.nvidia.com/cuda-zone"
-SRC_URI="https://developer.nvidia.com/compute/cuda/${MYD}/Prod2/local_installers/cuda_${PV}_${DRIVER_PV}_linux-run -> cuda_${PV}_${DRIVER_PV}_linux.run"
+SRC_URI="https://developer.nvidia.com/compute/cuda/${MYD}/Prod/local_installers/cuda_${PV}_${DRIVER_PV}_linux-run -> cuda_${PV}_${DRIVER_PV}_linux.run"
LICENSE="CUDPP"
SLOT="0"
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-util/nvidia-cuda-sdk/
@ 2018-01-26 21:42 David Seifert
0 siblings, 0 replies; 27+ messages in thread
From: David Seifert @ 2018-01-26 21:42 UTC (permalink / raw
To: gentoo-commits
commit: f2ea45c99c3e1f165479bbb74e7cb8638711cce4
Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
AuthorDate: Mon Dec 18 09:32:10 2017 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Fri Jan 26 21:41:55 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f2ea45c9
dev-util/nvidia-cuda-sdk: Version bump to 9.1.85
Package-Manager: Portage-2.3.13, Repoman-2.3.3
dev-util/nvidia-cuda-sdk/Manifest | 1 +
.../nvidia-cuda-sdk/nvidia-cuda-sdk-9.1.85.ebuild | 144 +++++++++++++++++++++
2 files changed, 145 insertions(+)
diff --git a/dev-util/nvidia-cuda-sdk/Manifest b/dev-util/nvidia-cuda-sdk/Manifest
index 223e6a74149..840eb14f057 100644
--- a/dev-util/nvidia-cuda-sdk/Manifest
+++ b/dev-util/nvidia-cuda-sdk/Manifest
@@ -4,3 +4,4 @@ DIST cuda_7.5.18_linux.run 1195424633 BLAKE2B 35933c3c3355231cd59e579e6ac6a30cca
DIST cuda_8.0.44_linux.run 1457082926 BLAKE2B a6408ddf8984dc4b0725cc4f53549c4d4fc4b3bd4de2771896953dbe023aa6d04ad38f5d6bf1ab3ff5752d2c18b400f478c9dbb263755267836c5de79e4f8f51 SHA512 1bf9d8e6b853c2a971b8d908a043adc5b11ec7033faed04a773c42680882753f98bc33b46f6b301c24c0f780f74bc237dce5766fc857f1a905e6c1f200728d86
DIST cuda_8.0.61_375.26_linux.run 1465528129 BLAKE2B d52ddf1dcf5246f230f210d10d1f6e7b540c892dea5a8cd770f0d062b30b01f5c8467d930430b383464d40a9b4a14eaaf22a365e081955e4452ec4f55e08da0b SHA512 d22303719a9feff64f95bf6a966f1caa2bf0cf8c955e475ce08ce54faa5e098d336c2db223ef0185c1f23b9c52b7d2f81a63515485219cfc016d72bda979248b
DIST cuda_9.0.176_384.81_linux.run 1643293725 BLAKE2B 4155de544f877f6c420c2463bc68679cc89774f0516d1885d5c3f483ad86e7f25ecf6042b8240431b814230136f3026196a013bb18184fa2ec9af555bb7ea723 SHA512 00e24638c02d049c575732dee5237db21f7c451b606f37cf95e44e89d47d0cb055255e9f70dc013298c9e0d224147f239488558904556b68572e3f31935489a9
+DIST cuda_9.1.85_387.26_linux.run 1639829845 BLAKE2B c9f6544893b8e4d0b4c51d66f1cf17a593e65af6e7748e2994abda8ffcb839a7bb19cb0eebfbc52347293296025f000241d1c9842af0c41d31928770c4639b79 SHA512 492a5fa58fc93ac718ca093f24bb5e74dd2586338c42f2e11e328c7f16756e3511a1c555b12cb1990bb782d0d1600976f4c9e5b3d4857e371b0431daf06b2827
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-9.1.85.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-9.1.85.ebuild
new file mode 100644
index 00000000000..9db5be5f3f5
--- /dev/null
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-9.1.85.ebuild
@@ -0,0 +1,144 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cuda eutils flag-o-matic portability toolchain-funcs unpacker versionator
+
+MYD=$(get_version_component_range 1-2)
+DRIVER_PV="387.26"
+
+DESCRIPTION="NVIDIA CUDA Software Development Kit"
+HOMEPAGE="https://developer.nvidia.com/cuda-zone"
+SRC_URI="https://developer.nvidia.com/compute/cuda/${MYD}/Prod2/local_installers/cuda_${PV}_${DRIVER_PV}_linux -> cuda_${PV}_${DRIVER_PV}_linux.run"
+
+LICENSE="CUDPP"
+SLOT="0"
+KEYWORDS="~amd64 ~amd64-linux"
+IUSE="+cuda debug +doc +examples opencl mpi"
+
+RDEPEND="
+ ~dev-util/nvidia-cuda-toolkit-${PV}
+ media-libs/freeglut
+ examples? (
+ media-libs/freeimage
+ media-libs/glew:0=
+ >=x11-drivers/nvidia-drivers-${DRIVER_PV}[uvm]
+ mpi? ( virtual/mpi )
+ )"
+DEPEND="${RDEPEND}"
+
+RESTRICT="test"
+
+S=${WORKDIR}/samples
+
+QA_EXECSTACK=(
+ opt/cuda/sdk/0_Simple/cdpSimplePrint/cdpSimplePrint
+ opt/cuda/sdk/0_Simple/cdpSimpleQuicksort/cdpSimpleQuicksort
+ opt/cuda/sdk/bin/x86_64/linux/release/cdpSimplePrint
+ opt/cuda/sdk/bin/x86_64/linux/release/cdpSimpleQuicksort
+ )
+
+src_unpack() {
+ # We first need to unpack the cuda_${PV}_linux.run file
+ # which includes the cuda-samples*run file.
+ unpacker
+ unpacker run_files/cuda-samples*run
+}
+
+pkg_setup() {
+ if use cuda || use opencl; then
+ cuda_pkg_setup
+ fi
+}
+
+src_prepare() {
+ export RAWLDFLAGS="$(raw-ldflags)"
+# epatch "${FILESDIR}"/${P}-asneeded.patch
+
+ local file
+ while IFS="" read -d $'\0' -r file; do
+ sed \
+ -e 's:-O[23]::g' \
+ -e "/LINK/s:gcc:$(tc-getCC) ${LDFLAGS}:g" \
+ -e "/LINK/s:g++:$(tc-getCXX) ${LDFLAGS}:g" \
+ -e "/CC/s:gcc:$(tc-getCC):g" \
+ -e "/GCC/s:g++:$(tc-getCXX):g" \
+ -e "/NVCC /s|\(:=\).*|:= ${EPREFIX}/opt/cuda/bin/nvcc|g" \
+ -e "/ CFLAGS/s|\(:=\)|\1 ${CFLAGS}|g" \
+ -e "/ CXXFLAGS/s|\(:=\)|\1 ${CXXFLAGS}|g" \
+ -e "/NVCCFLAGS/s|\(:=\)|\1 ${NVCCFLAGS} |g" \
+ -e 's:-Wimplicit::g' \
+ -e "s|../../common/lib/linux/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
+ -e "s|../../common/lib/\$(OSLOWER)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
+ -e "s|../../common/lib/\$(OSLOWER)/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
+ -i "${file}" || die
+ # -e "/ALL_LDFLAGS/s|:=|:= ${RAWLDFLAGS} |g" \
+ done < <(find . -type f -name 'Makefile' -print0)
+
+ rm -rf common/inc/GL || die
+ find . -type f -name '*.a' -delete || die
+
+ eapply_user
+}
+
+src_compile() {
+ use examples || return
+ local myopts=("verbose=1")
+ use debug && myopts+=("dbg=1")
+ export FAKEROOTKEY=1 # Workaround sandbox issue in #462602
+ emake \
+ cuda-install="${EPREFIX}/opt/cuda" \
+ CUDA_PATH="${EPREFIX}/opt/cuda/" \
+ MPI_GCC=10 \
+ "${myopts[@]}"
+}
+
+src_test() {
+ addwrite /dev/nvidiactl
+ addwrite /dev/nvidia0
+
+ local i
+ for i in {0..9}*/*; do
+ emake -C "${i}" run
+ done
+}
+
+src_install() {
+ local f t crap=( *.txt Samples.htm* )
+
+ if use doc; then
+ ebegin "Installing docs ..."
+ while IFS="" read -d $'\0' -r f; do
+ treecopy "${f}" "${ED%/}"/usr/share/doc/${PF}/
+ done < <(find -type f \( -name 'readme.txt' -o -name '*.pdf' \) -print0)
+
+ while IFS="" read -d $'\0' -r f; do
+ docompress -x "${f#${ED%/}}"
+ done < <(find "${ED%/}"/usr/share/doc/${PF}/ -type f -name 'readme.txt' -print0)
+ eend
+ fi
+
+ ebegin "Cleaning before installation..."
+ for f in "${crap[@]}"; do
+ rm -f "${f}" || die
+ done
+ find -type f \( -name '*.o' -o -name '*.pdf' -o -name 'readme.txt' \) -delete || die
+ eend
+
+ ebegin "Moving files..."
+ while IFS="" read -d $'\0' -r f; do
+ t="$(dirname ${f})"
+ if [[ ${t/obj\/} != ${t} || ${t##*.} == a ]]; then
+ continue
+ fi
+ if [[ -x ${f} ]]; then
+ exeinto /opt/cuda/sdk/"${t}"
+ doexe "${f}"
+ else
+ insinto /opt/cuda/sdk/"${t}"
+ doins "${f}"
+ fi
+ done < <(find . -type f -print0)
+ eend
+}
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-util/nvidia-cuda-sdk/
@ 2018-01-26 21:42 David Seifert
0 siblings, 0 replies; 27+ messages in thread
From: David Seifert @ 2018-01-26 21:42 UTC (permalink / raw
To: gentoo-commits
commit: d845a553872141451cf906797b919f0ebb35a371
Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
AuthorDate: Thu Jan 4 09:04:56 2018 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Fri Jan 26 21:41:59 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d845a553
dev-util/nvidia-cuda-sdk: Drop unused eutils.eclass from 9.1.85
Package-Manager: Portage-2.3.13, Repoman-2.3.3
dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-9.1.85.ebuild | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-9.1.85.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-9.1.85.ebuild
index 9db5be5f3f5..1f648f706dc 100644
--- a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-9.1.85.ebuild
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-9.1.85.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
-inherit cuda eutils flag-o-matic portability toolchain-funcs unpacker versionator
+inherit cuda flag-o-matic portability toolchain-funcs unpacker versionator
MYD=$(get_version_component_range 1-2)
DRIVER_PV="387.26"
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-util/nvidia-cuda-sdk/
@ 2017-12-10 14:51 Ulrich Müller
0 siblings, 0 replies; 27+ messages in thread
From: Ulrich Müller @ 2017-12-10 14:51 UTC (permalink / raw
To: gentoo-commits
commit: 39ab576f7c8a819bdcf4098929b92bd000934432
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 10 14:50:07 2017 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sun Dec 10 14:50:42 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39ab576f
dev-util/nvidia-cuda-sdk: Update Manifest hashes.
dev-util/nvidia-cuda-sdk/Manifest | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/dev-util/nvidia-cuda-sdk/Manifest b/dev-util/nvidia-cuda-sdk/Manifest
index 3483e7de8f7..223e6a74149 100644
--- a/dev-util/nvidia-cuda-sdk/Manifest
+++ b/dev-util/nvidia-cuda-sdk/Manifest
@@ -1,6 +1,6 @@
-DIST cuda_6.5.19_linux_32.run 81882112 SHA256 9f767f38b84f52c097bec81669f99e4a6c4c9c09b5da1bc09fe49e0f804bc7a6 SHA512 1ce9bd6b472b7e4f1fb181eb340dfcb757714d59a89aaa02146cfe1a97c8ccb7eb7699b4ec823276f277eb4d82d95050eaba17e7ed5fd2e47b9b5d78531c5d4e WHIRLPOOL ac94b4e7f29811b4240623fb69b3c54214e7f0c60a286d899944dbab9da7fd3c122760199a3357667e33879bd48fbf352d5d39029acca6021e7caf21785557ed
-DIST cuda_6.5.19_linux_64.run 982446238 SHA256 5279bc159b72b7445d8aae5f289d24bb4042c35422ef32da68049d8f666d3ff5 SHA512 06854f020a5f72cf4bd714859e6966248ac2f589284113674e869fdaa1254cae27d4101940758ecda5df4724ad3e448a1f6d0c053b6cbc28107750872b6a5797 WHIRLPOOL 6ae8e53719e12997de60ec3688167f3fe33b1145d01217182e39ac386c25b358c8ba6cee45ad6c80e33ef66fd9a511338dce4589f10a31635b8437b6e528fd7a
-DIST cuda_7.5.18_linux.run 1195424633 SHA256 08411d536741075131a1858a68615b8b73c51988e616e83b835e4632eea75eec SHA512 97459dfd124060200f1c43f763e5bce0bea53e35ed4bef72bee6c8ba1c04ecffb8695af11755443513316f91fdb5cb4d35662f7b87bca7e3de85d562d4e49363 WHIRLPOOL 59d186f5e9176db25e5991e8088417ac778953c3ed2f0dcef034968f7ea695c5d4cfea81759ac0f7f1290c3842d9d0339b5b74d2d90ec8b333135aa1b986ca10
-DIST cuda_8.0.44_linux.run 1457082926 SHA256 64dc4ab867261a0d690735c46d7cc9fc60d989da0d69dc04d1714e409cacbdf0 SHA512 1bf9d8e6b853c2a971b8d908a043adc5b11ec7033faed04a773c42680882753f98bc33b46f6b301c24c0f780f74bc237dce5766fc857f1a905e6c1f200728d86 WHIRLPOOL e90fa2088cd70aef2794c1ce2db126d6186bc3c44d14c1cf7cb4a66f889cbb4799485d1d71ab045e2dfaed9bfabcea224ca04b7f97e9bce061ac9fbd31c62fdd
-DIST cuda_8.0.61_375.26_linux.run 1465528129 SHA256 9ceca9c2397f841024e03410bfd6eabfd72b384256fbed1c1e4834b5b0ce9dc4 SHA512 d22303719a9feff64f95bf6a966f1caa2bf0cf8c955e475ce08ce54faa5e098d336c2db223ef0185c1f23b9c52b7d2f81a63515485219cfc016d72bda979248b WHIRLPOOL 650a0e8bc9ad2d0637cd4a82a057bf77e613559d1080a86009f594c73adb8879de62b26dac9d8e3f572806556bf878505382479e596d4ce91929ab94b882489a
-DIST cuda_9.0.176_384.81_linux.run 1643293725 SHA256 96863423feaa50b5c1c5e1b9ec537ef7ba77576a3986652351ae43e66bcd080c SHA512 00e24638c02d049c575732dee5237db21f7c451b606f37cf95e44e89d47d0cb055255e9f70dc013298c9e0d224147f239488558904556b68572e3f31935489a9 WHIRLPOOL 714b4dea7cae742a97898bd9377e821a4448504119589e10bcdabce1f7f82a87a9f30f6e9291041f0d038eab70326893772859ee09891d62632afefac2e9240a
+DIST cuda_6.5.19_linux_32.run 81882112 BLAKE2B cf55ef7c969503c156431fc56301ed4e9a1234ae0cb867f12649636069f35e56bf6fc9df7482b6baade45d78c8baa2d98c41a28696da59294e0f575c4a0344ce SHA512 1ce9bd6b472b7e4f1fb181eb340dfcb757714d59a89aaa02146cfe1a97c8ccb7eb7699b4ec823276f277eb4d82d95050eaba17e7ed5fd2e47b9b5d78531c5d4e
+DIST cuda_6.5.19_linux_64.run 982446238 BLAKE2B 517ac07d4717f4f5d9427616a387dbe01fe35b7b6845b5d9e29aad18814243d38cc9a3cd0ff9042c027fcb056618e9a8535d560c16a6ac7998ff39fcf3ada654 SHA512 06854f020a5f72cf4bd714859e6966248ac2f589284113674e869fdaa1254cae27d4101940758ecda5df4724ad3e448a1f6d0c053b6cbc28107750872b6a5797
+DIST cuda_7.5.18_linux.run 1195424633 BLAKE2B 35933c3c3355231cd59e579e6ac6a30cca57ed0e3de26ce5cac368ff22595f39cb041c9696415d4d76a49e772b7828eacab24a3e581c1e9a8ef7981e1b044eee SHA512 97459dfd124060200f1c43f763e5bce0bea53e35ed4bef72bee6c8ba1c04ecffb8695af11755443513316f91fdb5cb4d35662f7b87bca7e3de85d562d4e49363
+DIST cuda_8.0.44_linux.run 1457082926 BLAKE2B a6408ddf8984dc4b0725cc4f53549c4d4fc4b3bd4de2771896953dbe023aa6d04ad38f5d6bf1ab3ff5752d2c18b400f478c9dbb263755267836c5de79e4f8f51 SHA512 1bf9d8e6b853c2a971b8d908a043adc5b11ec7033faed04a773c42680882753f98bc33b46f6b301c24c0f780f74bc237dce5766fc857f1a905e6c1f200728d86
+DIST cuda_8.0.61_375.26_linux.run 1465528129 BLAKE2B d52ddf1dcf5246f230f210d10d1f6e7b540c892dea5a8cd770f0d062b30b01f5c8467d930430b383464d40a9b4a14eaaf22a365e081955e4452ec4f55e08da0b SHA512 d22303719a9feff64f95bf6a966f1caa2bf0cf8c955e475ce08ce54faa5e098d336c2db223ef0185c1f23b9c52b7d2f81a63515485219cfc016d72bda979248b
+DIST cuda_9.0.176_384.81_linux.run 1643293725 BLAKE2B 4155de544f877f6c420c2463bc68679cc89774f0516d1885d5c3f483ad86e7f25ecf6042b8240431b814230136f3026196a013bb18184fa2ec9af555bb7ea723 SHA512 00e24638c02d049c575732dee5237db21f7c451b606f37cf95e44e89d47d0cb055255e9f70dc013298c9e0d224147f239488558904556b68572e3f31935489a9
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-util/nvidia-cuda-sdk/
@ 2017-11-26 11:39 David Seifert
0 siblings, 0 replies; 27+ messages in thread
From: David Seifert @ 2017-11-26 11:39 UTC (permalink / raw
To: gentoo-commits
commit: a51cb78aa9f424f1470a7a17abfbd56055a0dcd0
Author: David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 25 22:43:29 2017 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Nov 26 11:37:51 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a51cb78a
dev-util/nvidia-cuda-sdk: [QA] Consistent whitespace in metadata.xml
dev-util/nvidia-cuda-sdk/metadata.xml | 20 ++++++++------------
1 file changed, 8 insertions(+), 12 deletions(-)
diff --git a/dev-util/nvidia-cuda-sdk/metadata.xml b/dev-util/nvidia-cuda-sdk/metadata.xml
index 9ab4f583a9c..f8631dbfe7a 100644
--- a/dev-util/nvidia-cuda-sdk/metadata.xml
+++ b/dev-util/nvidia-cuda-sdk/metadata.xml
@@ -1,16 +1,12 @@
<?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>
- <use>
- <flag name="opencl">
- Build OpenCL binaries.
- </flag>
- <flag name="cuda">
- Build CUDA binaries.
- </flag>
- </use>
+ <maintainer type="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+ <use>
+ <flag name="opencl">Build OpenCL binaries</flag>
+ <flag name="cuda">Build CUDA binaries</flag>
+ </use>
</pkgmetadata>
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-util/nvidia-cuda-sdk/
@ 2017-11-10 13:25 Guilherme Amadio
0 siblings, 0 replies; 27+ messages in thread
From: Guilherme Amadio @ 2017-11-10 13:25 UTC (permalink / raw
To: gentoo-commits
commit: 9974fd94f4fdc69679834e441c7f86a787effe8e
Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
AuthorDate: Thu Oct 19 08:58:27 2017 +0000
Commit: Guilherme Amadio <amadio <AT> gentoo <DOT> org>
CommitDate: Fri Nov 10 13:23:18 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9974fd94
dev-util/nvidia-cuda-sdk: Version bump to 9.0.176
Gentoo-Bug: https://bugs.gentoo.org/633440
Package-Manager: Portage-2.3.8, Repoman-2.3.3
dev-util/nvidia-cuda-sdk/Manifest | 1 +
.../nvidia-cuda-sdk/nvidia-cuda-sdk-9.0.176.ebuild | 144 +++++++++++++++++++++
2 files changed, 145 insertions(+)
diff --git a/dev-util/nvidia-cuda-sdk/Manifest b/dev-util/nvidia-cuda-sdk/Manifest
index 16e212e90b0..3483e7de8f7 100644
--- a/dev-util/nvidia-cuda-sdk/Manifest
+++ b/dev-util/nvidia-cuda-sdk/Manifest
@@ -3,3 +3,4 @@ DIST cuda_6.5.19_linux_64.run 982446238 SHA256 5279bc159b72b7445d8aae5f289d24bb4
DIST cuda_7.5.18_linux.run 1195424633 SHA256 08411d536741075131a1858a68615b8b73c51988e616e83b835e4632eea75eec SHA512 97459dfd124060200f1c43f763e5bce0bea53e35ed4bef72bee6c8ba1c04ecffb8695af11755443513316f91fdb5cb4d35662f7b87bca7e3de85d562d4e49363 WHIRLPOOL 59d186f5e9176db25e5991e8088417ac778953c3ed2f0dcef034968f7ea695c5d4cfea81759ac0f7f1290c3842d9d0339b5b74d2d90ec8b333135aa1b986ca10
DIST cuda_8.0.44_linux.run 1457082926 SHA256 64dc4ab867261a0d690735c46d7cc9fc60d989da0d69dc04d1714e409cacbdf0 SHA512 1bf9d8e6b853c2a971b8d908a043adc5b11ec7033faed04a773c42680882753f98bc33b46f6b301c24c0f780f74bc237dce5766fc857f1a905e6c1f200728d86 WHIRLPOOL e90fa2088cd70aef2794c1ce2db126d6186bc3c44d14c1cf7cb4a66f889cbb4799485d1d71ab045e2dfaed9bfabcea224ca04b7f97e9bce061ac9fbd31c62fdd
DIST cuda_8.0.61_375.26_linux.run 1465528129 SHA256 9ceca9c2397f841024e03410bfd6eabfd72b384256fbed1c1e4834b5b0ce9dc4 SHA512 d22303719a9feff64f95bf6a966f1caa2bf0cf8c955e475ce08ce54faa5e098d336c2db223ef0185c1f23b9c52b7d2f81a63515485219cfc016d72bda979248b WHIRLPOOL 650a0e8bc9ad2d0637cd4a82a057bf77e613559d1080a86009f594c73adb8879de62b26dac9d8e3f572806556bf878505382479e596d4ce91929ab94b882489a
+DIST cuda_9.0.176_384.81_linux.run 1643293725 SHA256 96863423feaa50b5c1c5e1b9ec537ef7ba77576a3986652351ae43e66bcd080c SHA512 00e24638c02d049c575732dee5237db21f7c451b606f37cf95e44e89d47d0cb055255e9f70dc013298c9e0d224147f239488558904556b68572e3f31935489a9 WHIRLPOOL 714b4dea7cae742a97898bd9377e821a4448504119589e10bcdabce1f7f82a87a9f30f6e9291041f0d038eab70326893772859ee09891d62632afefac2e9240a
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-9.0.176.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-9.0.176.ebuild
new file mode 100644
index 00000000000..3353dabc300
--- /dev/null
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-9.0.176.ebuild
@@ -0,0 +1,144 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cuda eutils flag-o-matic portability toolchain-funcs unpacker versionator
+
+MYD=$(get_version_component_range 1-2)
+DRIVER_PV="384.81"
+
+DESCRIPTION="NVIDIA CUDA Software Development Kit"
+HOMEPAGE="https://developer.nvidia.com/cuda-zone"
+SRC_URI="https://developer.nvidia.com/compute/cuda/${MYD}/Prod2/local_installers/cuda_${PV}_${DRIVER_PV}_linux-run -> cuda_${PV}_${DRIVER_PV}_linux.run"
+
+LICENSE="CUDPP"
+SLOT="0"
+KEYWORDS="~amd64 ~amd64-linux"
+IUSE="+cuda debug +doc +examples opencl mpi"
+
+RDEPEND="
+ ~dev-util/nvidia-cuda-toolkit-${PV}
+ media-libs/freeglut
+ examples? (
+ media-libs/freeimage
+ media-libs/glew:0=
+ >=x11-drivers/nvidia-drivers-384.81[uvm]
+ mpi? ( virtual/mpi )
+ )"
+DEPEND="${RDEPEND}"
+
+RESTRICT="test"
+
+S=${WORKDIR}/samples
+
+QA_EXECSTACK=(
+ opt/cuda/sdk/0_Simple/cdpSimplePrint/cdpSimplePrint
+ opt/cuda/sdk/0_Simple/cdpSimpleQuicksort/cdpSimpleQuicksort
+ opt/cuda/sdk/bin/x86_64/linux/release/cdpSimplePrint
+ opt/cuda/sdk/bin/x86_64/linux/release/cdpSimpleQuicksort
+ )
+
+src_unpack() {
+ # We first need to unpack the cuda_${PV}_linux.run file
+ # which includes the cuda-samples*run file.
+ unpacker
+ unpacker run_files/cuda-samples*run
+}
+
+pkg_setup() {
+ if use cuda || use opencl; then
+ cuda_pkg_setup
+ fi
+}
+
+src_prepare() {
+ export RAWLDFLAGS="$(raw-ldflags)"
+# epatch "${FILESDIR}"/${P}-asneeded.patch
+
+ local file
+ while IFS="" read -d $'\0' -r file; do
+ sed \
+ -e 's:-O[23]::g' \
+ -e "/LINK/s:gcc:$(tc-getCC) ${LDFLAGS}:g" \
+ -e "/LINK/s:g++:$(tc-getCXX) ${LDFLAGS}:g" \
+ -e "/CC/s:gcc:$(tc-getCC):g" \
+ -e "/GCC/s:g++:$(tc-getCXX):g" \
+ -e "/NVCC /s|\(:=\).*|:= ${EPREFIX}/opt/cuda/bin/nvcc|g" \
+ -e "/ CFLAGS/s|\(:=\)|\1 ${CFLAGS}|g" \
+ -e "/ CXXFLAGS/s|\(:=\)|\1 ${CXXFLAGS}|g" \
+ -e "/NVCCFLAGS/s|\(:=\)|\1 ${NVCCFLAGS} |g" \
+ -e 's:-Wimplicit::g' \
+ -e "s|../../common/lib/linux/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
+ -e "s|../../common/lib/\$(OSLOWER)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
+ -e "s|../../common/lib/\$(OSLOWER)/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
+ -i "${file}" || die
+ # -e "/ALL_LDFLAGS/s|:=|:= ${RAWLDFLAGS} |g" \
+ done < <(find . -type f -name 'Makefile' -print0)
+
+ rm -rf common/inc/GL || die
+ find . -type f -name '*.a' -delete || die
+
+ eapply_user
+}
+
+src_compile() {
+ use examples || return
+ local myopts=("verbose=1")
+ use debug && myopts+=("dbg=1")
+ export FAKEROOTKEY=1 # Workaround sandbox issue in #462602
+ emake \
+ cuda-install="${EPREFIX}/opt/cuda" \
+ CUDA_PATH="${EPREFIX}/opt/cuda/" \
+ MPI_GCC=10 \
+ "${myopts[@]}"
+}
+
+src_test() {
+ addwrite /dev/nvidiactl
+ addwrite /dev/nvidia0
+
+ local i
+ for i in {0..9}*/*; do
+ emake -C "${i}" run
+ done
+}
+
+src_install() {
+ local f t crap=( *.txt Samples.htm* )
+
+ if use doc; then
+ ebegin "Installing docs ..."
+ while IFS="" read -d $'\0' -r f; do
+ treecopy "${f}" "${ED%/}"/usr/share/doc/${PF}/
+ done < <(find -type f \( -name 'readme.txt' -o -name '*.pdf' \) -print0)
+
+ while IFS="" read -d $'\0' -r f; do
+ docompress -x "${f#${ED%/}}"
+ done < <(find "${ED%/}"/usr/share/doc/${PF}/ -type f -name 'readme.txt' -print0)
+ eend
+ fi
+
+ ebegin "Cleaning before installation..."
+ for f in "${crap[@]}"; do
+ rm -f "${f}" || die
+ done
+ find -type f \( -name '*.o' -o -name '*.pdf' -o -name 'readme.txt' \) -delete || die
+ eend
+
+ ebegin "Moving files..."
+ while IFS="" read -d $'\0' -r f; do
+ t="$(dirname ${f})"
+ if [[ ${t/obj\/} != ${t} || ${t##*.} == a ]]; then
+ continue
+ fi
+ if [[ -x ${f} ]]; then
+ exeinto /opt/cuda/sdk/"${t}"
+ doexe "${f}"
+ else
+ insinto /opt/cuda/sdk/"${t}"
+ doins "${f}"
+ fi
+ done < <(find . -type f -print0)
+ eend
+}
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-util/nvidia-cuda-sdk/
@ 2017-05-20 21:24 Michał Górny
0 siblings, 0 replies; 27+ messages in thread
From: Michał Górny @ 2017-05-20 21:24 UTC (permalink / raw
To: gentoo-commits
commit: 377cb034758bc2e1db2839cc4659e6c55a13fc68
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun May 7 10:57:30 2017 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat May 20 21:24:51 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=377cb034
dev-util/nvidia-cuda-sdk: Drop to ~arch
dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.19.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.19.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.19.ebuild
index 0d960081529..f48ac080ba5 100644
--- a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.19.ebuild
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.19.ebuild
@@ -16,7 +16,7 @@ SRC_URI="
LICENSE="CUDPP"
SLOT="0"
-KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="debug +doc +examples opencl +cuda"
RDEPEND="
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-util/nvidia-cuda-sdk/
@ 2017-03-02 7:50 David Seifert
0 siblings, 0 replies; 27+ messages in thread
From: David Seifert @ 2017-03-02 7:50 UTC (permalink / raw
To: gentoo-commits
commit: 730b55deb7d5b3112a50b83758c972234af2d22b
Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
AuthorDate: Wed Mar 1 07:56:02 2017 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Thu Mar 2 07:50:41 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=730b55de
dev-util/nvidia-cuda-sdk: Version bump to 8.0.61
Gentoo-Bug: https://bugs.gentoo.org/611202
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Closes: https://github.com/gentoo/gentoo/pull/4088
dev-util/nvidia-cuda-sdk/Manifest | 1 +
.../nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.61.ebuild | 144 +++++++++++++++++++++
2 files changed, 145 insertions(+)
diff --git a/dev-util/nvidia-cuda-sdk/Manifest b/dev-util/nvidia-cuda-sdk/Manifest
index c2e10a6fa2f..16e212e90b0 100644
--- a/dev-util/nvidia-cuda-sdk/Manifest
+++ b/dev-util/nvidia-cuda-sdk/Manifest
@@ -2,3 +2,4 @@ DIST cuda_6.5.19_linux_32.run 81882112 SHA256 9f767f38b84f52c097bec81669f99e4a6c
DIST cuda_6.5.19_linux_64.run 982446238 SHA256 5279bc159b72b7445d8aae5f289d24bb4042c35422ef32da68049d8f666d3ff5 SHA512 06854f020a5f72cf4bd714859e6966248ac2f589284113674e869fdaa1254cae27d4101940758ecda5df4724ad3e448a1f6d0c053b6cbc28107750872b6a5797 WHIRLPOOL 6ae8e53719e12997de60ec3688167f3fe33b1145d01217182e39ac386c25b358c8ba6cee45ad6c80e33ef66fd9a511338dce4589f10a31635b8437b6e528fd7a
DIST cuda_7.5.18_linux.run 1195424633 SHA256 08411d536741075131a1858a68615b8b73c51988e616e83b835e4632eea75eec SHA512 97459dfd124060200f1c43f763e5bce0bea53e35ed4bef72bee6c8ba1c04ecffb8695af11755443513316f91fdb5cb4d35662f7b87bca7e3de85d562d4e49363 WHIRLPOOL 59d186f5e9176db25e5991e8088417ac778953c3ed2f0dcef034968f7ea695c5d4cfea81759ac0f7f1290c3842d9d0339b5b74d2d90ec8b333135aa1b986ca10
DIST cuda_8.0.44_linux.run 1457082926 SHA256 64dc4ab867261a0d690735c46d7cc9fc60d989da0d69dc04d1714e409cacbdf0 SHA512 1bf9d8e6b853c2a971b8d908a043adc5b11ec7033faed04a773c42680882753f98bc33b46f6b301c24c0f780f74bc237dce5766fc857f1a905e6c1f200728d86 WHIRLPOOL e90fa2088cd70aef2794c1ce2db126d6186bc3c44d14c1cf7cb4a66f889cbb4799485d1d71ab045e2dfaed9bfabcea224ca04b7f97e9bce061ac9fbd31c62fdd
+DIST cuda_8.0.61_375.26_linux.run 1465528129 SHA256 9ceca9c2397f841024e03410bfd6eabfd72b384256fbed1c1e4834b5b0ce9dc4 SHA512 d22303719a9feff64f95bf6a966f1caa2bf0cf8c955e475ce08ce54faa5e098d336c2db223ef0185c1f23b9c52b7d2f81a63515485219cfc016d72bda979248b WHIRLPOOL 650a0e8bc9ad2d0637cd4a82a057bf77e613559d1080a86009f594c73adb8879de62b26dac9d8e3f572806556bf878505382479e596d4ce91929ab94b882489a
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.61.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.61.ebuild
new file mode 100644
index 00000000000..0f301935641
--- /dev/null
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.61.ebuild
@@ -0,0 +1,144 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cuda eutils flag-o-matic portability toolchain-funcs unpacker versionator
+
+MYD=$(get_version_component_range 1-2)
+DRIVER_PV="375.26"
+
+DESCRIPTION="NVIDIA CUDA Software Development Kit"
+HOMEPAGE="https://developer.nvidia.com/cuda-zone"
+SRC_URI="https://developer.nvidia.com/compute/cuda/${MYD}/Prod2/local_installers/cuda_${PV}_${DRIVER_PV}_linux-run -> cuda_${PV}_${DRIVER_PV}_linux.run"
+
+LICENSE="CUDPP"
+SLOT="0"
+KEYWORDS="~amd64 ~amd64-linux"
+IUSE="+cuda debug +doc +examples opencl mpi"
+
+RDEPEND="
+ ~dev-util/nvidia-cuda-toolkit-${PV}
+ media-libs/freeglut
+ examples? (
+ media-libs/freeimage
+ media-libs/glew:0=
+ >=x11-drivers/nvidia-drivers-375.26[uvm]
+ mpi? ( virtual/mpi )
+ )"
+DEPEND="${RDEPEND}"
+
+RESTRICT="test"
+
+S=${WORKDIR}/samples
+
+QA_EXECSTACK=(
+ opt/cuda/sdk/0_Simple/cdpSimplePrint/cdpSimplePrint
+ opt/cuda/sdk/0_Simple/cdpSimpleQuicksort/cdpSimpleQuicksort
+ opt/cuda/sdk/bin/x86_64/linux/release/cdpSimplePrint
+ opt/cuda/sdk/bin/x86_64/linux/release/cdpSimpleQuicksort
+ )
+
+src_unpack() {
+ # We first need to unpack the cuda_${PV}_linux.run file
+ # which includes the cuda-samples*run file.
+ unpacker
+ unpacker run_files/cuda-samples*run
+}
+
+pkg_setup() {
+ if use cuda || use opencl; then
+ cuda_pkg_setup
+ fi
+}
+
+src_prepare() {
+ export RAWLDFLAGS="$(raw-ldflags)"
+# epatch "${FILESDIR}"/${P}-asneeded.patch
+
+ local file
+ while IFS="" read -d $'\0' -r file; do
+ sed \
+ -e 's:-O[23]::g' \
+ -e "/LINK/s:gcc:$(tc-getCC) ${LDFLAGS}:g" \
+ -e "/LINK/s:g++:$(tc-getCXX) ${LDFLAGS}:g" \
+ -e "/CC/s:gcc:$(tc-getCC):g" \
+ -e "/GCC/s:g++:$(tc-getCXX):g" \
+ -e "/NVCC /s|\(:=\).*|:= ${EPREFIX}/opt/cuda/bin/nvcc|g" \
+ -e "/ CFLAGS/s|\(:=\)|\1 ${CFLAGS}|g" \
+ -e "/ CXXFLAGS/s|\(:=\)|\1 ${CXXFLAGS}|g" \
+ -e "/NVCCFLAGS/s|\(:=\)|\1 ${NVCCFLAGS} |g" \
+ -e 's:-Wimplicit::g' \
+ -e "s|../../common/lib/linux/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
+ -e "s|../../common/lib/\$(OSLOWER)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
+ -e "s|../../common/lib/\$(OSLOWER)/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
+ -i "${file}" || die
+ # -e "/ALL_LDFLAGS/s|:=|:= ${RAWLDFLAGS} |g" \
+ done < <(find . -type f -name 'Makefile' -print0)
+
+ rm -rf common/inc/GL || die
+ find . -type f -name '*.a' -delete || die
+
+ eapply_user
+}
+
+src_compile() {
+ use examples || return
+ local myopts=("verbose=1")
+ use debug && myopts+=("dbg=1")
+ export FAKEROOTKEY=1 # Workaround sandbox issue in #462602
+ emake \
+ cuda-install="${EPREFIX}/opt/cuda" \
+ CUDA_PATH="${EPREFIX}/opt/cuda/" \
+ MPI_GCC=10 \
+ "${myopts[@]}"
+}
+
+src_test() {
+ addwrite /dev/nvidiactl
+ addwrite /dev/nvidia0
+
+ local i
+ for i in {0..9}*/*; do
+ emake -C "${i}" run
+ done
+}
+
+src_install() {
+ local f t crap=( *.txt Samples.htm* )
+
+ if use doc; then
+ ebegin "Installing docs ..."
+ while IFS="" read -d $'\0' -r f; do
+ treecopy "${f}" "${ED%/}"/usr/share/doc/${PF}/
+ done < <(find -type f \( -name 'readme.txt' -o -name '*.pdf' \) -print0)
+
+ while IFS="" read -d $'\0' -r f; do
+ docompress -x "${f#${ED%/}}"
+ done < <(find "${ED%/}"/usr/share/doc/${PF}/ -type f -name 'readme.txt' -print0)
+ eend
+ fi
+
+ ebegin "Cleaning before installation..."
+ for f in "${crap[@]}"; do
+ rm -f "${f}" || die
+ done
+ find -type f \( -name '*.o' -o -name '*.pdf' -o -name 'readme.txt' \) -delete || die
+ eend
+
+ ebegin "Moving files..."
+ while IFS="" read -d $'\0' -r f; do
+ t="$(dirname ${f})"
+ if [[ ${t/obj\/} != ${t} || ${t##*.} == a ]]; then
+ continue
+ fi
+ if [[ -x ${f} ]]; then
+ exeinto /opt/cuda/sdk/"${t}"
+ doexe "${f}"
+ else
+ insinto /opt/cuda/sdk/"${t}"
+ doins "${f}"
+ fi
+ done < <(find . -type f -print0)
+ eend
+}
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-util/nvidia-cuda-sdk/
@ 2017-01-20 19:42 Justin Lecher
0 siblings, 0 replies; 27+ messages in thread
From: Justin Lecher @ 2017-01-20 19:42 UTC (permalink / raw
To: gentoo-commits
commit: 5afa176331c32f936d594e32bac415c62f91b952
Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 20 19:31:47 2017 +0000
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Fri Jan 20 19:42:23 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5afa1763
dev-util/nvidia-cuda-sdk: Drop old
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
dev-util/nvidia-cuda-sdk/Manifest | 2 -
.../nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.14.ebuild | 155 ---------------------
2 files changed, 157 deletions(-)
diff --git a/dev-util/nvidia-cuda-sdk/Manifest b/dev-util/nvidia-cuda-sdk/Manifest
index 73fcfaa..c2e10a6 100644
--- a/dev-util/nvidia-cuda-sdk/Manifest
+++ b/dev-util/nvidia-cuda-sdk/Manifest
@@ -1,5 +1,3 @@
-DIST cuda_6.5.14_linux_32.run 76788277 SHA256 63fa1fe5d013e9944d6c1a3a71768fa4dcb35d6a157c1b06765bb56198c205c5 SHA512 89649ee0f4543b37037b7c8f5ed0b8bd502512afb4d93e3158b3df4786123be05a5288986b5abbfe15c14eb010777d2527b715225bea96a354a898c34e4a2fcc WHIRLPOOL c1094dd84883ef08d91c6eec3634a285496418db1e76b70f449f833dcb01069a620af504b6df7fe2752559688ed1f60f4adda8c97d849d648cba1be0f8196954
-DIST cuda_6.5.14_linux_64.run 972320904 SHA256 f3e527f34f317314fe8fcd8c85f10560729069298c0f73105ba89225db69da48 SHA512 fecca731b86955f5bc7b09d88b02951e3ee5d4b1f1cf5f92658227a029b87cd35d6ac22956a5fa0afe62dcdc57191f1d12bb08c9f7cc05128727cd8455947b1e WHIRLPOOL 0b890771dcca352168fed1b1df9b29504b03f8c29da59cec29914c541283998edf65f5ca6a41362143a2d5d7359822b036894f563c56b39583b1ac4c64e35180
DIST cuda_6.5.19_linux_32.run 81882112 SHA256 9f767f38b84f52c097bec81669f99e4a6c4c9c09b5da1bc09fe49e0f804bc7a6 SHA512 1ce9bd6b472b7e4f1fb181eb340dfcb757714d59a89aaa02146cfe1a97c8ccb7eb7699b4ec823276f277eb4d82d95050eaba17e7ed5fd2e47b9b5d78531c5d4e WHIRLPOOL ac94b4e7f29811b4240623fb69b3c54214e7f0c60a286d899944dbab9da7fd3c122760199a3357667e33879bd48fbf352d5d39029acca6021e7caf21785557ed
DIST cuda_6.5.19_linux_64.run 982446238 SHA256 5279bc159b72b7445d8aae5f289d24bb4042c35422ef32da68049d8f666d3ff5 SHA512 06854f020a5f72cf4bd714859e6966248ac2f589284113674e869fdaa1254cae27d4101940758ecda5df4724ad3e448a1f6d0c053b6cbc28107750872b6a5797 WHIRLPOOL 6ae8e53719e12997de60ec3688167f3fe33b1145d01217182e39ac386c25b358c8ba6cee45ad6c80e33ef66fd9a511338dce4589f10a31635b8437b6e528fd7a
DIST cuda_7.5.18_linux.run 1195424633 SHA256 08411d536741075131a1858a68615b8b73c51988e616e83b835e4632eea75eec SHA512 97459dfd124060200f1c43f763e5bce0bea53e35ed4bef72bee6c8ba1c04ecffb8695af11755443513316f91fdb5cb4d35662f7b87bca7e3de85d562d4e49363 WHIRLPOOL 59d186f5e9176db25e5991e8088417ac778953c3ed2f0dcef034968f7ea695c5d4cfea81759ac0f7f1290c3842d9d0339b5b74d2d90ec8b333135aa1b986ca10
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.14.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.14.ebuild
deleted file mode 100644
index f5ffe2c..00000000
--- a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.14.ebuild
+++ /dev/null
@@ -1,155 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI=5
-
-inherit cuda eutils flag-o-matic portability toolchain-funcs unpacker versionator
-
-MYD=$(get_version_component_range 1)_$(get_version_component_range 2)
-
-DESCRIPTION="NVIDIA CUDA Software Development Kit"
-HOMEPAGE="http://developer.nvidia.com/cuda"
-CURI="http://developer.download.nvidia.com/compute/cuda/${MYD}/rel/installers"
-SRC_URI="
- amd64? ( ${CURI}/cuda_${PV}_linux_64.run )
- x86? ( ${CURI}/cuda_${PV}_linux_32.run )"
-
-LICENSE="CUDPP"
-SLOT="0"
-KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
-IUSE="debug +doc +examples opencl +cuda"
-
-RDEPEND="
- ~dev-util/nvidia-cuda-toolkit-${PV}
- media-libs/freeglut
- examples? (
- media-libs/freeimage
- media-libs/glew:0=
- virtual/mpi
- >=x11-drivers/nvidia-drivers-340.32[uvm]
- x86? ( <x11-drivers/nvidia-drivers-346.35[uvm] )
- )"
-DEPEND="${RDEPEND}"
-
-RESTRICT="test"
-
-S=${WORKDIR}/cuda-samples
-
-QA_EXECSTACK=(
- opt/cuda/sdk/0_Simple/cdpSimplePrint/cdpSimplePrint
- opt/cuda/sdk/0_Simple/cdpSimpleQuicksort/cdpSimpleQuicksort
- opt/cuda/sdk/bin/x86_64/linux/release/cdpSimplePrint
- opt/cuda/sdk/bin/x86_64/linux/release/cdpSimpleQuicksort
- )
-
-src_unpack() {
- unpacker
- unpacker run_files/cuda-samples*run
-}
-
-pkg_setup() {
- if use cuda || use opencl; then
- cuda_pkg_setup
- fi
-
- if use x86; then
- ewarn "Starting with version 6.5 NVIDIA dropped more and more"
- ewarn "the support for 32bit linux."
- ewarn "Be aware that bugfixes and new features may not be available."
- ewarn "https://dev.gentoo.org/~jlec/distfiles/CUDA_Toolkit_Release_Notes.pdf"
- fi
-}
-
-src_prepare() {
- export RAWLDFLAGS="$(raw-ldflags)"
-# epatch "${FILESDIR}"/${P}-asneeded.patch
-
- sed \
- -e 's:-O2::g' \
- -e 's:-O3::g' \
- -e "/LINK/s:gcc:$(tc-getCC) ${LDFLAGS}:g" \
- -e "/LINK/s:g++:$(tc-getCXX) ${LDFLAGS}:g" \
- -e "/CC/s:gcc:$(tc-getCC):g" \
- -e "/GCC/s:g++:$(tc-getCXX):g" \
- -e "/NVCC /s|\(:=\).*|:= ${EPREFIX}/opt/cuda/bin/nvcc|g" \
- -e "/ CFLAGS/s|\(:=\)|\1 ${CFLAGS}|g" \
- -e "/ CXXFLAGS/s|\(:=\)|\1 ${CXXFLAGS}|g" \
- -e "/NVCCFLAGS/s|\(:=\)|\1 ${NVCCFLAGS} |g" \
- -e 's:-Wimplicit::g' \
- -e "s|../../common/lib/linux/\$(OS_ARCH)/libGLEW.a|$(pkg-config --libs glew)|g" \
- -e "s|../../common/lib/\$(OSLOWER)/libGLEW.a|$(pkg-config --libs glew)|g" \
- -e "s|../../common/lib/\$(OSLOWER)/\$(OS_ARCH)/libGLEW.a|$(pkg-config --libs glew)|g" \
- -i $(find . -type f -name "Makefile") || die
-
-# -e "/ALL_LDFLAGS/s|:=|:= ${RAWLDFLAGS} |g" \
- find common/inc/GL -delete || die
- find . -type f -name "*\.a" -delete || die
-}
-
-src_compile() {
- use examples || return
- local myopts verbose="verbose=1"
- use debug && myopts+=" dbg=1"
- export FAKEROOTKEY=1 # Workaround sandbox issue in #462602
- emake \
- cuda-install="${EPREFIX}/opt/cuda" \
- CUDA_PATH="${EPREFIX}/opt/cuda/" \
- MPI_GCC=10 \
- ${myopts} ${verbose}
-}
-
-src_test() {
- local _dir _subdir
-
- addwrite /dev/nvidiactl
- addwrite /dev/nvidia0
-
- for _dir in {0..9}*; do
- pushd ${_dir} > /dev/null
- for _subdir in *; do
- emake -C ${_subdir} run
- done
- popd > /dev/null
- done
-}
-
-src_install() {
- local i j f t crap=""
-
- if use doc; then
- ebegin "Installing docs ..."
- treecopy $(find -type f \( -name readme.txt -o -name "*.pdf" \)) "${ED}"/usr/share/doc/${PF}/
- docompress -x $(find "${ED}"/usr/share/doc/${PF}/ -type f -name readme.txt | sed -e "s:${ED}::")
- eend
- fi
-
- crap+=" *.txt Samples.htm*"
-
- ebegin "Cleaning before installation..."
- for i in ${crap}; do
- if [[ -e ${i} ]]; then
- find ${i} -delete || die
- fi
- done
- find -type f \( -name "*.o" -o -name "*.pdf" -o -name "readme.txt" \) -delete || die
- eend
-
- ebegin "Moving files..."
- for f in $(find .); do
- local t="$(dirname ${f})"
- if [[ ${t/obj\/} != ${t} || ${t##*.} == a ]]; then
- continue
- fi
- if [[ ! -d ${f} ]]; then
- if [[ -x ${f} ]]; then
- exeinto /opt/cuda/sdk/${t}
- doexe ${f}
- else
- insinto /opt/cuda/sdk/${t}
- doins ${f}
- fi
- fi
- done
- eend
-}
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-util/nvidia-cuda-sdk/
@ 2017-01-19 21:45 Lars Wendler
0 siblings, 0 replies; 27+ messages in thread
From: Lars Wendler @ 2017-01-19 21:45 UTC (permalink / raw
To: gentoo-commits
commit: afc28598d0a683287de951754e0736bb74e037ff
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 19 21:45:28 2017 +0000
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Thu Jan 19 21:45:28 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=afc28598
dev-util/nvidia-cuda-sdk: Fixed incomplete EAPI-6 conversion (bug #606546)
Package-Manager: Portage-2.3.3, Repoman-2.3.1
dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.19.ebuild | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.19.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.19.ebuild
index 028bf36..eed597d 100644
--- a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.19.ebuild
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.19.ebuild
@@ -85,6 +85,8 @@ src_prepare() {
# -e "/ALL_LDFLAGS/s|:=|:= ${RAWLDFLAGS} |g" \
find common/inc/GL -delete || die
find . -type f -name "*\.a" -delete || die
+
+ eapply_user
}
src_compile() {
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-util/nvidia-cuda-sdk/
@ 2017-01-19 10:37 Agostino Sarubbo
0 siblings, 0 replies; 27+ messages in thread
From: Agostino Sarubbo @ 2017-01-19 10:37 UTC (permalink / raw
To: gentoo-commits
commit: 0371e83d073c7f3f887d69ec45f0a7264340515f
Author: Agostino Sarubbo <ago <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 19 10:36:49 2017 +0000
Commit: Agostino Sarubbo <ago <AT> gentoo <DOT> org>
CommitDate: Thu Jan 19 10:36:49 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0371e83d
dev-util/nvidia-cuda-sdk: amd64 stable wrt bug #604476
Package-Manager: portage-2.3.0
RepoMan-Options: --include-arches="amd64"
Signed-off-by: Agostino Sarubbo <ago <AT> gentoo.org>
dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.19.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.19.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.19.ebuild
index 093865d..028bf36 100644
--- a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.19.ebuild
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.19.ebuild
@@ -17,7 +17,7 @@ SRC_URI="
LICENSE="CUDPP"
SLOT="0"
-KEYWORDS="~amd64 x86 ~amd64-linux ~x86-linux"
+KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
IUSE="debug +doc +examples opencl +cuda"
RDEPEND="
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-util/nvidia-cuda-sdk/
@ 2017-01-03 7:39 Justin Lecher
0 siblings, 0 replies; 27+ messages in thread
From: Justin Lecher @ 2017-01-03 7:39 UTC (permalink / raw
To: gentoo-commits
commit: 372e3a22e25baf13fa46bda1afd755fcbbaca550
Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 3 07:36:33 2017 +0000
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Tue Jan 3 07:39:07 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=372e3a22
dev-util/nvidia-cuda-sdk: Version Bump
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
dev-util/nvidia-cuda-sdk/Manifest | 2 +
.../nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.19.ebuild | 155 +++++++++++++++++++++
2 files changed, 157 insertions(+)
diff --git a/dev-util/nvidia-cuda-sdk/Manifest b/dev-util/nvidia-cuda-sdk/Manifest
index ed2b862..73fcfaa 100644
--- a/dev-util/nvidia-cuda-sdk/Manifest
+++ b/dev-util/nvidia-cuda-sdk/Manifest
@@ -1,4 +1,6 @@
DIST cuda_6.5.14_linux_32.run 76788277 SHA256 63fa1fe5d013e9944d6c1a3a71768fa4dcb35d6a157c1b06765bb56198c205c5 SHA512 89649ee0f4543b37037b7c8f5ed0b8bd502512afb4d93e3158b3df4786123be05a5288986b5abbfe15c14eb010777d2527b715225bea96a354a898c34e4a2fcc WHIRLPOOL c1094dd84883ef08d91c6eec3634a285496418db1e76b70f449f833dcb01069a620af504b6df7fe2752559688ed1f60f4adda8c97d849d648cba1be0f8196954
DIST cuda_6.5.14_linux_64.run 972320904 SHA256 f3e527f34f317314fe8fcd8c85f10560729069298c0f73105ba89225db69da48 SHA512 fecca731b86955f5bc7b09d88b02951e3ee5d4b1f1cf5f92658227a029b87cd35d6ac22956a5fa0afe62dcdc57191f1d12bb08c9f7cc05128727cd8455947b1e WHIRLPOOL 0b890771dcca352168fed1b1df9b29504b03f8c29da59cec29914c541283998edf65f5ca6a41362143a2d5d7359822b036894f563c56b39583b1ac4c64e35180
+DIST cuda_6.5.19_linux_32.run 81882112 SHA256 9f767f38b84f52c097bec81669f99e4a6c4c9c09b5da1bc09fe49e0f804bc7a6 SHA512 1ce9bd6b472b7e4f1fb181eb340dfcb757714d59a89aaa02146cfe1a97c8ccb7eb7699b4ec823276f277eb4d82d95050eaba17e7ed5fd2e47b9b5d78531c5d4e WHIRLPOOL ac94b4e7f29811b4240623fb69b3c54214e7f0c60a286d899944dbab9da7fd3c122760199a3357667e33879bd48fbf352d5d39029acca6021e7caf21785557ed
+DIST cuda_6.5.19_linux_64.run 982446238 SHA256 5279bc159b72b7445d8aae5f289d24bb4042c35422ef32da68049d8f666d3ff5 SHA512 06854f020a5f72cf4bd714859e6966248ac2f589284113674e869fdaa1254cae27d4101940758ecda5df4724ad3e448a1f6d0c053b6cbc28107750872b6a5797 WHIRLPOOL 6ae8e53719e12997de60ec3688167f3fe33b1145d01217182e39ac386c25b358c8ba6cee45ad6c80e33ef66fd9a511338dce4589f10a31635b8437b6e528fd7a
DIST cuda_7.5.18_linux.run 1195424633 SHA256 08411d536741075131a1858a68615b8b73c51988e616e83b835e4632eea75eec SHA512 97459dfd124060200f1c43f763e5bce0bea53e35ed4bef72bee6c8ba1c04ecffb8695af11755443513316f91fdb5cb4d35662f7b87bca7e3de85d562d4e49363 WHIRLPOOL 59d186f5e9176db25e5991e8088417ac778953c3ed2f0dcef034968f7ea695c5d4cfea81759ac0f7f1290c3842d9d0339b5b74d2d90ec8b333135aa1b986ca10
DIST cuda_8.0.44_linux.run 1457082926 SHA256 64dc4ab867261a0d690735c46d7cc9fc60d989da0d69dc04d1714e409cacbdf0 SHA512 1bf9d8e6b853c2a971b8d908a043adc5b11ec7033faed04a773c42680882753f98bc33b46f6b301c24c0f780f74bc237dce5766fc857f1a905e6c1f200728d86 WHIRLPOOL e90fa2088cd70aef2794c1ce2db126d6186bc3c44d14c1cf7cb4a66f889cbb4799485d1d71ab045e2dfaed9bfabcea224ca04b7f97e9bce061ac9fbd31c62fdd
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.19.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.19.ebuild
new file mode 100644
index 00000000..38be6ad
--- /dev/null
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.19.ebuild
@@ -0,0 +1,155 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit cuda eutils flag-o-matic portability toolchain-funcs unpacker versionator
+
+MYD=$(get_version_component_range 1)_$(get_version_component_range 2)
+
+DESCRIPTION="NVIDIA CUDA Software Development Kit"
+HOMEPAGE="http://developer.nvidia.com/cuda"
+CURI="http://developer.download.nvidia.com/compute/cuda/${MYD}/rel/installers"
+SRC_URI="
+ amd64? ( ${CURI}/cuda_${PV}_linux_64.run )
+ x86? ( ${CURI}/cuda_${PV}_linux_32.run )"
+
+LICENSE="CUDPP"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="debug +doc +examples opencl +cuda"
+
+RDEPEND="
+ ~dev-util/nvidia-cuda-toolkit-${PV}
+ media-libs/freeglut
+ examples? (
+ media-libs/freeimage
+ media-libs/glew
+ virtual/mpi
+ >=x11-drivers/nvidia-drivers-340.32[uvm]
+ x86? ( <x11-drivers/nvidia-drivers-346.35[uvm] )
+ )"
+DEPEND="${RDEPEND}"
+
+RESTRICT="test"
+
+S=${WORKDIR}/cuda-samples
+
+QA_EXECSTACK=(
+ opt/cuda/sdk/0_Simple/cdpSimplePrint/cdpSimplePrint
+ opt/cuda/sdk/0_Simple/cdpSimpleQuicksort/cdpSimpleQuicksort
+ opt/cuda/sdk/bin/x86_64/linux/release/cdpSimplePrint
+ opt/cuda/sdk/bin/x86_64/linux/release/cdpSimpleQuicksort
+ )
+
+src_unpack() {
+ unpacker
+ unpacker run_files/cuda-samples*run
+}
+
+pkg_setup() {
+ if use cuda || use opencl; then
+ cuda_pkg_setup
+ fi
+
+ if use x86; then
+ ewarn "Starting with version 6.5 NVIDIA dropped more and more"
+ ewarn "the support for 32bit linux."
+ ewarn "Be aware that bugfixes and new features may not be available."
+ ewarn "https://dev.gentoo.org/~jlec/distfiles/CUDA_Toolkit_Release_Notes.pdf"
+ fi
+}
+
+src_prepare() {
+ export RAWLDFLAGS="$(raw-ldflags)"
+# epatch "${FILESDIR}"/${P}-asneeded.patch
+
+ sed \
+ -e 's:-O2::g' \
+ -e 's:-O3::g' \
+ -e "/LINK/s:gcc:$(tc-getCC) ${LDFLAGS}:g" \
+ -e "/LINK/s:g++:$(tc-getCXX) ${LDFLAGS}:g" \
+ -e "/CC/s:gcc:$(tc-getCC):g" \
+ -e "/GCC/s:g++:$(tc-getCXX):g" \
+ -e "/NVCC /s|\(:=\).*|:= ${EPREFIX}/opt/cuda/bin/nvcc|g" \
+ -e "/ CFLAGS/s|\(:=\)|\1 ${CFLAGS}|g" \
+ -e "/ CXXFLAGS/s|\(:=\)|\1 ${CXXFLAGS}|g" \
+ -e "/NVCCFLAGS/s|\(:=\)|\1 ${NVCCFLAGS} |g" \
+ -e 's:-Wimplicit::g' \
+ -e "s|../../common/lib/linux/\$(OS_ARCH)/libGLEW.a|$(pkg-config --libs glew)|g" \
+ -e "s|../../common/lib/\$(OSLOWER)/libGLEW.a|$(pkg-config --libs glew)|g" \
+ -e "s|../../common/lib/\$(OSLOWER)/\$(OS_ARCH)/libGLEW.a|$(pkg-config --libs glew)|g" \
+ -i $(find . -type f -name "Makefile") || die
+
+# -e "/ALL_LDFLAGS/s|:=|:= ${RAWLDFLAGS} |g" \
+ find common/inc/GL -delete || die
+ find . -type f -name "*\.a" -delete || die
+}
+
+src_compile() {
+ use examples || return
+ local myopts verbose="verbose=1"
+ use debug && myopts+=" dbg=1"
+ export FAKEROOTKEY=1 # Workaround sandbox issue in #462602
+ emake \
+ cuda-install="${EPREFIX}/opt/cuda" \
+ CUDA_PATH="${EPREFIX}/opt/cuda/" \
+ MPI_GCC=10 \
+ ${myopts} ${verbose}
+}
+
+src_test() {
+ local _dir _subdir
+
+ addwrite /dev/nvidiactl
+ addwrite /dev/nvidia0
+
+ for _dir in {0..9}*; do
+ pushd ${_dir} > /dev/null
+ for _subdir in *; do
+ emake -C ${_subdir} run
+ done
+ popd > /dev/null
+ done
+}
+
+src_install() {
+ local i j f t crap=""
+
+ if use doc; then
+ ebegin "Installing docs ..."
+ treecopy $(find -type f \( -name readme.txt -o -name "*.pdf" \)) "${ED}"/usr/share/doc/${PF}/
+ docompress -x $(find "${ED}"/usr/share/doc/${PF}/ -type f -name readme.txt | sed -e "s:${ED}::")
+ eend
+ fi
+
+ crap+=" *.txt Samples.htm*"
+
+ ebegin "Cleaning before installation..."
+ for i in ${crap}; do
+ if [[ -e ${i} ]]; then
+ find ${i} -delete || die
+ fi
+ done
+ find -type f \( -name "*.o" -o -name "*.pdf" -o -name "readme.txt" \) -delete || die
+ eend
+
+ ebegin "Moving files..."
+ for f in $(find .); do
+ local t="$(dirname ${f})"
+ if [[ ${t/obj\/} != ${t} || ${t##*.} == a ]]; then
+ continue
+ fi
+ if [[ ! -d ${f} ]]; then
+ if [[ -x ${f} ]]; then
+ exeinto /opt/cuda/sdk/${t}
+ doexe ${f}
+ else
+ insinto /opt/cuda/sdk/${t}
+ doins ${f}
+ fi
+ fi
+ done
+ eend
+}
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-util/nvidia-cuda-sdk/
@ 2017-01-03 7:39 Justin Lecher
0 siblings, 0 replies; 27+ messages in thread
From: Justin Lecher @ 2017-01-03 7:39 UTC (permalink / raw
To: gentoo-commits
commit: 5e25842b665568c1f38890ba0dc6f1f355102ea2
Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 3 07:38:56 2017 +0000
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Tue Jan 3 07:39:07 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5e25842b
dev-util/nvidia-cuda-sdk: Add slot operators
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.14.ebuild | 4 ++--
dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.19.ebuild | 2 +-
dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-7.5.18.ebuild | 4 ++--
dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.44-r1.ebuild | 4 ++--
4 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.14.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.14.ebuild
index a37d1d0..f5ffe2c 100644
--- a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.14.ebuild
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.14.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@@ -25,7 +25,7 @@ RDEPEND="
media-libs/freeglut
examples? (
media-libs/freeimage
- media-libs/glew
+ media-libs/glew:0=
virtual/mpi
>=x11-drivers/nvidia-drivers-340.32[uvm]
x86? ( <x11-drivers/nvidia-drivers-346.35[uvm] )
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.19.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.19.ebuild
index 38be6ad..758ae84 100644
--- a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.19.ebuild
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-6.5.19.ebuild
@@ -25,7 +25,7 @@ RDEPEND="
media-libs/freeglut
examples? (
media-libs/freeimage
- media-libs/glew
+ media-libs/glew:0=
virtual/mpi
>=x11-drivers/nvidia-drivers-340.32[uvm]
x86? ( <x11-drivers/nvidia-drivers-346.35[uvm] )
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-7.5.18.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-7.5.18.ebuild
index 22e02d7..5d2031c 100644
--- a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-7.5.18.ebuild
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-7.5.18.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@@ -22,7 +22,7 @@ RDEPEND="
media-libs/freeglut
examples? (
media-libs/freeimage
- media-libs/glew
+ media-libs/glew:0=
virtual/mpi
>=x11-drivers/nvidia-drivers-352.39[uvm]
)"
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.44-r1.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.44-r1.ebuild
index 004acc0..0ba088a 100644
--- a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.44-r1.ebuild
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.44-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@@ -22,7 +22,7 @@ RDEPEND="
media-libs/freeglut
examples? (
media-libs/freeimage
- media-libs/glew:=
+ media-libs/glew:0=
>=x11-drivers/nvidia-drivers-367.44[uvm]
mpi? ( virtual/mpi )
)"
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-util/nvidia-cuda-sdk/
@ 2016-11-03 17:37 David Seifert
0 siblings, 0 replies; 27+ messages in thread
From: David Seifert @ 2016-11-03 17:37 UTC (permalink / raw
To: gentoo-commits
commit: 6269fb24068730c5b128235508c21097a38dedfd
Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
AuthorDate: Thu Nov 3 12:16:55 2016 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Thu Nov 3 17:37:18 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6269fb24
dev-util/nvidia-cuda-sdk: Add mpi use flag, fix sample installation
Gentoo-bug: 598486
Package-Manager: portage-2.3.0
Closes: https://github.com/gentoo/gentoo/pull/2729
Signed-off-by: David Seifert <soap <AT> gentoo.org>
...idia-cuda-sdk-8.0.44.ebuild => nvidia-cuda-sdk-8.0.44-r1.ebuild} | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.44.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.44-r1.ebuild
similarity index 97%
rename from dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.44.ebuild
rename to dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.44-r1.ebuild
index c1d14f7..004acc0 100644
--- a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.44.ebuild
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.44-r1.ebuild
@@ -15,7 +15,7 @@ SRC_URI="https://developer.nvidia.com/compute/cuda/${MYD}/prod/local_installers/
LICENSE="CUDPP"
SLOT="0"
KEYWORDS="~amd64 ~amd64-linux"
-IUSE="+cuda debug +doc +examples opencl"
+IUSE="+cuda debug +doc +examples opencl mpi"
RDEPEND="
~dev-util/nvidia-cuda-toolkit-${PV}
@@ -23,8 +23,8 @@ RDEPEND="
examples? (
media-libs/freeimage
media-libs/glew:=
- virtual/mpi
>=x11-drivers/nvidia-drivers-367.44[uvm]
+ mpi? ( virtual/mpi )
)"
DEPEND="${RDEPEND}"
@@ -139,6 +139,6 @@ src_install() {
insinto /opt/cuda/sdk/"${t}"
doins "${f}"
fi
- done < <(find -type f . -print0)
+ done < <(find . -type f -print0)
eend
}
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-util/nvidia-cuda-sdk/
@ 2016-10-26 21:32 David Seifert
0 siblings, 0 replies; 27+ messages in thread
From: David Seifert @ 2016-10-26 21:32 UTC (permalink / raw
To: gentoo-commits
commit: 80350501bad9472202b8c0c947e624b820df7047
Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
AuthorDate: Wed Oct 12 11:11:32 2016 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Wed Oct 26 21:32:25 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80350501
dev-util/nvidia-cuda-sdk: Version bump to 8.0.44
Gentoo-bug: 595640
Package-Manager: portage-2.2.28
Closes: https://github.com/gentoo/gentoo/pull/2445
Signed-off-by: David Seifert <soap <AT> gentoo.org>
dev-util/nvidia-cuda-sdk/Manifest | 1 +
.../nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.44.ebuild | 144 +++++++++++++++++++++
2 files changed, 145 insertions(+)
diff --git a/dev-util/nvidia-cuda-sdk/Manifest b/dev-util/nvidia-cuda-sdk/Manifest
index c9fc55c..ed2b862 100644
--- a/dev-util/nvidia-cuda-sdk/Manifest
+++ b/dev-util/nvidia-cuda-sdk/Manifest
@@ -1,3 +1,4 @@
DIST cuda_6.5.14_linux_32.run 76788277 SHA256 63fa1fe5d013e9944d6c1a3a71768fa4dcb35d6a157c1b06765bb56198c205c5 SHA512 89649ee0f4543b37037b7c8f5ed0b8bd502512afb4d93e3158b3df4786123be05a5288986b5abbfe15c14eb010777d2527b715225bea96a354a898c34e4a2fcc WHIRLPOOL c1094dd84883ef08d91c6eec3634a285496418db1e76b70f449f833dcb01069a620af504b6df7fe2752559688ed1f60f4adda8c97d849d648cba1be0f8196954
DIST cuda_6.5.14_linux_64.run 972320904 SHA256 f3e527f34f317314fe8fcd8c85f10560729069298c0f73105ba89225db69da48 SHA512 fecca731b86955f5bc7b09d88b02951e3ee5d4b1f1cf5f92658227a029b87cd35d6ac22956a5fa0afe62dcdc57191f1d12bb08c9f7cc05128727cd8455947b1e WHIRLPOOL 0b890771dcca352168fed1b1df9b29504b03f8c29da59cec29914c541283998edf65f5ca6a41362143a2d5d7359822b036894f563c56b39583b1ac4c64e35180
DIST cuda_7.5.18_linux.run 1195424633 SHA256 08411d536741075131a1858a68615b8b73c51988e616e83b835e4632eea75eec SHA512 97459dfd124060200f1c43f763e5bce0bea53e35ed4bef72bee6c8ba1c04ecffb8695af11755443513316f91fdb5cb4d35662f7b87bca7e3de85d562d4e49363 WHIRLPOOL 59d186f5e9176db25e5991e8088417ac778953c3ed2f0dcef034968f7ea695c5d4cfea81759ac0f7f1290c3842d9d0339b5b74d2d90ec8b333135aa1b986ca10
+DIST cuda_8.0.44_linux.run 1457082926 SHA256 64dc4ab867261a0d690735c46d7cc9fc60d989da0d69dc04d1714e409cacbdf0 SHA512 1bf9d8e6b853c2a971b8d908a043adc5b11ec7033faed04a773c42680882753f98bc33b46f6b301c24c0f780f74bc237dce5766fc857f1a905e6c1f200728d86 WHIRLPOOL e90fa2088cd70aef2794c1ce2db126d6186bc3c44d14c1cf7cb4a66f889cbb4799485d1d71ab045e2dfaed9bfabcea224ca04b7f97e9bce061ac9fbd31c62fdd
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.44.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.44.ebuild
new file mode 100644
index 00000000..c1d14f7
--- /dev/null
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-8.0.44.ebuild
@@ -0,0 +1,144 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit cuda eutils flag-o-matic portability toolchain-funcs unpacker versionator
+
+MYD=$(get_version_component_range 1-2)
+
+DESCRIPTION="NVIDIA CUDA Software Development Kit"
+HOMEPAGE="https://developer.nvidia.com/cuda-zone"
+SRC_URI="https://developer.nvidia.com/compute/cuda/${MYD}/prod/local_installers/cuda_${PV}_linux-run -> cuda_${PV}_linux.run"
+
+LICENSE="CUDPP"
+SLOT="0"
+KEYWORDS="~amd64 ~amd64-linux"
+IUSE="+cuda debug +doc +examples opencl"
+
+RDEPEND="
+ ~dev-util/nvidia-cuda-toolkit-${PV}
+ media-libs/freeglut
+ examples? (
+ media-libs/freeimage
+ media-libs/glew:=
+ virtual/mpi
+ >=x11-drivers/nvidia-drivers-367.44[uvm]
+ )"
+DEPEND="${RDEPEND}"
+
+RESTRICT="test"
+
+S=${WORKDIR}/samples
+
+QA_EXECSTACK=(
+ opt/cuda/sdk/0_Simple/cdpSimplePrint/cdpSimplePrint
+ opt/cuda/sdk/0_Simple/cdpSimpleQuicksort/cdpSimpleQuicksort
+ opt/cuda/sdk/bin/x86_64/linux/release/cdpSimplePrint
+ opt/cuda/sdk/bin/x86_64/linux/release/cdpSimpleQuicksort
+ )
+
+src_unpack() {
+ # We first need to unpack the cuda_${PV}_linux.run file
+ # which includes the cuda-samples*run file.
+ unpacker
+ unpacker run_files/cuda-samples*run
+}
+
+pkg_setup() {
+ if use cuda || use opencl; then
+ cuda_pkg_setup
+ fi
+}
+
+src_prepare() {
+ export RAWLDFLAGS="$(raw-ldflags)"
+# epatch "${FILESDIR}"/${P}-asneeded.patch
+
+ local file
+ while IFS="" read -d $'\0' -r file; do
+ sed \
+ -e 's:-O[23]::g' \
+ -e "/LINK/s:gcc:$(tc-getCC) ${LDFLAGS}:g" \
+ -e "/LINK/s:g++:$(tc-getCXX) ${LDFLAGS}:g" \
+ -e "/CC/s:gcc:$(tc-getCC):g" \
+ -e "/GCC/s:g++:$(tc-getCXX):g" \
+ -e "/NVCC /s|\(:=\).*|:= ${EPREFIX}/opt/cuda/bin/nvcc|g" \
+ -e "/ CFLAGS/s|\(:=\)|\1 ${CFLAGS}|g" \
+ -e "/ CXXFLAGS/s|\(:=\)|\1 ${CXXFLAGS}|g" \
+ -e "/NVCCFLAGS/s|\(:=\)|\1 ${NVCCFLAGS} |g" \
+ -e 's:-Wimplicit::g' \
+ -e "s|../../common/lib/linux/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
+ -e "s|../../common/lib/\$(OSLOWER)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
+ -e "s|../../common/lib/\$(OSLOWER)/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
+ -i "${file}" || die
+ # -e "/ALL_LDFLAGS/s|:=|:= ${RAWLDFLAGS} |g" \
+ done < <(find . -type f -name 'Makefile' -print0)
+
+ rm -rf common/inc/GL || die
+ find . -type f -name '*.a' -delete || die
+
+ eapply_user
+}
+
+src_compile() {
+ use examples || return
+ local myopts=("verbose=1")
+ use debug && myopts+=("dbg=1")
+ export FAKEROOTKEY=1 # Workaround sandbox issue in #462602
+ emake \
+ cuda-install="${EPREFIX}/opt/cuda" \
+ CUDA_PATH="${EPREFIX}/opt/cuda/" \
+ MPI_GCC=10 \
+ "${myopts[@]}"
+}
+
+src_test() {
+ addwrite /dev/nvidiactl
+ addwrite /dev/nvidia0
+
+ local i
+ for i in {0..9}*/*; do
+ emake -C "${i}" run
+ done
+}
+
+src_install() {
+ local f t crap=( *.txt Samples.htm* )
+
+ if use doc; then
+ ebegin "Installing docs ..."
+ while IFS="" read -d $'\0' -r f; do
+ treecopy "${f}" "${ED%/}"/usr/share/doc/${PF}/
+ done < <(find -type f \( -name 'readme.txt' -o -name '*.pdf' \) -print0)
+
+ while IFS="" read -d $'\0' -r f; do
+ docompress -x "${f#${ED%/}}"
+ done < <(find "${ED%/}"/usr/share/doc/${PF}/ -type f -name 'readme.txt' -print0)
+ eend
+ fi
+
+ ebegin "Cleaning before installation..."
+ for f in "${crap[@]}"; do
+ rm -f "${f}" || die
+ done
+ find -type f \( -name '*.o' -o -name '*.pdf' -o -name 'readme.txt' \) -delete || die
+ eend
+
+ ebegin "Moving files..."
+ while IFS="" read -d $'\0' -r f; do
+ t="$(dirname ${f})"
+ if [[ ${t/obj\/} != ${t} || ${t##*.} == a ]]; then
+ continue
+ fi
+ if [[ -x ${f} ]]; then
+ exeinto /opt/cuda/sdk/"${t}"
+ doexe "${f}"
+ else
+ insinto /opt/cuda/sdk/"${t}"
+ doins "${f}"
+ fi
+ done < <(find -type f . -print0)
+ eend
+}
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-util/nvidia-cuda-sdk/
@ 2015-10-12 11:43 Justin Lecher
0 siblings, 0 replies; 27+ messages in thread
From: Justin Lecher @ 2015-10-12 11:43 UTC (permalink / raw
To: gentoo-commits
commit: 4fd9ccf7f361689b2272dd77956213497763c131
Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de>
AuthorDate: Mon Oct 12 08:40:54 2015 +0000
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Mon Oct 12 08:40:54 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4fd9ccf7
dev-util/nvidia-cuda-sdk: Fix SRC_URI by correcting MYD
Package-Manager: portage-2.2.20.1
dev-util/nvidia-cuda-sdk/Manifest | 2 +-
dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-7.5.18.ebuild | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dev-util/nvidia-cuda-sdk/Manifest b/dev-util/nvidia-cuda-sdk/Manifest
index 98d73d6..c9fc55c 100644
--- a/dev-util/nvidia-cuda-sdk/Manifest
+++ b/dev-util/nvidia-cuda-sdk/Manifest
@@ -1,3 +1,3 @@
DIST cuda_6.5.14_linux_32.run 76788277 SHA256 63fa1fe5d013e9944d6c1a3a71768fa4dcb35d6a157c1b06765bb56198c205c5 SHA512 89649ee0f4543b37037b7c8f5ed0b8bd502512afb4d93e3158b3df4786123be05a5288986b5abbfe15c14eb010777d2527b715225bea96a354a898c34e4a2fcc WHIRLPOOL c1094dd84883ef08d91c6eec3634a285496418db1e76b70f449f833dcb01069a620af504b6df7fe2752559688ed1f60f4adda8c97d849d648cba1be0f8196954
DIST cuda_6.5.14_linux_64.run 972320904 SHA256 f3e527f34f317314fe8fcd8c85f10560729069298c0f73105ba89225db69da48 SHA512 fecca731b86955f5bc7b09d88b02951e3ee5d4b1f1cf5f92658227a029b87cd35d6ac22956a5fa0afe62dcdc57191f1d12bb08c9f7cc05128727cd8455947b1e WHIRLPOOL 0b890771dcca352168fed1b1df9b29504b03f8c29da59cec29914c541283998edf65f5ca6a41362143a2d5d7359822b036894f563c56b39583b1ac4c64e35180
-DIST cuda_7.5.18_linux.run 1195431560 SHA256 245ffb6c1e2b69d323f8ae3a1b63d3384fec3934222e56e9d801ecc0d6e919c5 SHA512 cb933512fde09376b1d6040c72d24c4f91dc44f73322ca87aa7d1f34156c9c87feea41f9a00f1a403cfb89645b5e7a6a5f2bfe4933703ba81f0cf94968d430fd WHIRLPOOL b1a06acba02043fabf496ba683fb984b1c90df2cd71396457f664beb8cb26b2e3074c8568ec6ce0cfe565721986670c7a40351a29a4856a7e03268c14d545247
+DIST cuda_7.5.18_linux.run 1195424633 SHA256 08411d536741075131a1858a68615b8b73c51988e616e83b835e4632eea75eec SHA512 97459dfd124060200f1c43f763e5bce0bea53e35ed4bef72bee6c8ba1c04ecffb8695af11755443513316f91fdb5cb4d35662f7b87bca7e3de85d562d4e49363 WHIRLPOOL 59d186f5e9176db25e5991e8088417ac778953c3ed2f0dcef034968f7ea695c5d4cfea81759ac0f7f1290c3842d9d0339b5b74d2d90ec8b333135aa1b986ca10
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-7.5.18.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-7.5.18.ebuild
index 3b7b211..22e02d7 100644
--- a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-7.5.18.ebuild
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-7.5.18.ebuild
@@ -6,7 +6,7 @@ EAPI=5
inherit cuda eutils flag-o-matic portability toolchain-funcs unpacker versionator
-MYD=$(get_version_component_range 1)_$(get_version_component_range 2)
+MYD=$(get_version_component_range 1-2)
DESCRIPTION="NVIDIA CUDA Software Development Kit"
HOMEPAGE="https://developer.nvidia.com/cuda-downloads"
^ permalink raw reply related [flat|nested] 27+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-util/nvidia-cuda-sdk/
@ 2015-09-09 9:49 Justin Lecher
0 siblings, 0 replies; 27+ messages in thread
From: Justin Lecher @ 2015-09-09 9:49 UTC (permalink / raw
To: gentoo-commits
commit: faa7062b76adeceb6bd183bbe77e512446b2dc55
Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 9 08:05:43 2015 +0000
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Wed Sep 9 09:49:31 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=faa7062b
dev-util/nvidia-cuda-sdk: Version Bump
respect platforms pkg-config
Package-Manager: portage-2.2.20.1
Signed-off-by: Justin Lecher <jlec <AT> gentoo.org>
dev-util/nvidia-cuda-sdk/Manifest | 1 +
.../nvidia-cuda-sdk/nvidia-cuda-sdk-7.5.18.ebuild | 144 +++++++++++++++++++++
2 files changed, 145 insertions(+)
diff --git a/dev-util/nvidia-cuda-sdk/Manifest b/dev-util/nvidia-cuda-sdk/Manifest
index bac0174..dcbfa74 100644
--- a/dev-util/nvidia-cuda-sdk/Manifest
+++ b/dev-util/nvidia-cuda-sdk/Manifest
@@ -5,3 +5,4 @@ DIST cuda_6.5.14_linux_64.run 972320904 SHA256 f3e527f34f317314fe8fcd8c85f105607
DIST cuda_6.5.19_linux_32.run 81882112 SHA256 9f767f38b84f52c097bec81669f99e4a6c4c9c09b5da1bc09fe49e0f804bc7a6 SHA512 1ce9bd6b472b7e4f1fb181eb340dfcb757714d59a89aaa02146cfe1a97c8ccb7eb7699b4ec823276f277eb4d82d95050eaba17e7ed5fd2e47b9b5d78531c5d4e WHIRLPOOL ac94b4e7f29811b4240623fb69b3c54214e7f0c60a286d899944dbab9da7fd3c122760199a3357667e33879bd48fbf352d5d39029acca6021e7caf21785557ed
DIST cuda_6.5.19_linux_64.run 982446238 SHA256 5279bc159b72b7445d8aae5f289d24bb4042c35422ef32da68049d8f666d3ff5 SHA512 06854f020a5f72cf4bd714859e6966248ac2f589284113674e869fdaa1254cae27d4101940758ecda5df4724ad3e448a1f6d0c053b6cbc28107750872b6a5797 WHIRLPOOL 6ae8e53719e12997de60ec3688167f3fe33b1145d01217182e39ac386c25b358c8ba6cee45ad6c80e33ef66fd9a511338dce4589f10a31635b8437b6e528fd7a
DIST cuda_7.0.28_linux.run 1118797679 SHA256 d1292e9c2bbaddad24c46e0b0d15a7130831bfac0382f7159321f41ae385a5ce SHA512 f002433133e40000cbb78283e08c25f7397612957c0440605311f8921bcebd54a808069ca36b218be66a054e8afab4871b2bf1bd4d419c6f98a0d74b00a9bc78 WHIRLPOOL dcf21d2e356a1797b9e79ac9edfb3924a1d4a2914382dbe21b2172c200dd4f7d93905ac44fbc2e994ce14b7ab28e78163f4c81ddcc6cbb97e4ce085efd2d8475
+DIST cuda_7.5.18_linux.run 1195431560 SHA256 245ffb6c1e2b69d323f8ae3a1b63d3384fec3934222e56e9d801ecc0d6e919c5 SHA512 cb933512fde09376b1d6040c72d24c4f91dc44f73322ca87aa7d1f34156c9c87feea41f9a00f1a403cfb89645b5e7a6a5f2bfe4933703ba81f0cf94968d430fd WHIRLPOOL b1a06acba02043fabf496ba683fb984b1c90df2cd71396457f664beb8cb26b2e3074c8568ec6ce0cfe565721986670c7a40351a29a4856a7e03268c14d545247
diff --git a/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-7.5.18.ebuild b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-7.5.18.ebuild
new file mode 100644
index 0000000..3b7b211
--- /dev/null
+++ b/dev-util/nvidia-cuda-sdk/nvidia-cuda-sdk-7.5.18.ebuild
@@ -0,0 +1,144 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit cuda eutils flag-o-matic portability toolchain-funcs unpacker versionator
+
+MYD=$(get_version_component_range 1)_$(get_version_component_range 2)
+
+DESCRIPTION="NVIDIA CUDA Software Development Kit"
+HOMEPAGE="https://developer.nvidia.com/cuda-downloads"
+SRC_URI="http://developer.download.nvidia.com/compute/cuda/${MYD}/Prod/local_installers/cuda_${PV}_linux.run"
+
+LICENSE="CUDPP"
+SLOT="0"
+KEYWORDS="~amd64 ~amd64-linux"
+IUSE="debug +doc +examples opencl +cuda"
+
+RDEPEND="
+ ~dev-util/nvidia-cuda-toolkit-${PV}
+ media-libs/freeglut
+ examples? (
+ media-libs/freeimage
+ media-libs/glew
+ virtual/mpi
+ >=x11-drivers/nvidia-drivers-352.39[uvm]
+ )"
+DEPEND="${RDEPEND}"
+
+RESTRICT="test"
+
+S=${WORKDIR}/samples
+
+QA_EXECSTACK=(
+ opt/cuda/sdk/0_Simple/cdpSimplePrint/cdpSimplePrint
+ opt/cuda/sdk/0_Simple/cdpSimpleQuicksort/cdpSimpleQuicksort
+ opt/cuda/sdk/bin/x86_64/linux/release/cdpSimplePrint
+ opt/cuda/sdk/bin/x86_64/linux/release/cdpSimpleQuicksort
+ )
+
+src_unpack() {
+ unpacker
+ unpacker run_files/cuda-samples*run
+}
+
+pkg_setup() {
+ if use cuda || use opencl; then
+ cuda_pkg_setup
+ fi
+}
+
+src_prepare() {
+ export RAWLDFLAGS="$(raw-ldflags)"
+# epatch "${FILESDIR}"/${P}-asneeded.patch
+
+ sed \
+ -e 's:-O2::g' \
+ -e 's:-O3::g' \
+ -e "/LINK/s:gcc:$(tc-getCC) ${LDFLAGS}:g" \
+ -e "/LINK/s:g++:$(tc-getCXX) ${LDFLAGS}:g" \
+ -e "/CC/s:gcc:$(tc-getCC):g" \
+ -e "/GCC/s:g++:$(tc-getCXX):g" \
+ -e "/NVCC /s|\(:=\).*|:= ${EPREFIX}/opt/cuda/bin/nvcc|g" \
+ -e "/ CFLAGS/s|\(:=\)|\1 ${CFLAGS}|g" \
+ -e "/ CXXFLAGS/s|\(:=\)|\1 ${CXXFLAGS}|g" \
+ -e "/NVCCFLAGS/s|\(:=\)|\1 ${NVCCFLAGS} |g" \
+ -e 's:-Wimplicit::g' \
+ -e "s|../../common/lib/linux/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
+ -e "s|../../common/lib/\$(OSLOWER)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
+ -e "s|../../common/lib/\$(OSLOWER)/\$(OS_ARCH)/libGLEW.a|$($(tc-getPKG_CONFIG) --libs glew)|g" \
+ -i $(find . -type f -name "Makefile") || die
+
+# -e "/ALL_LDFLAGS/s|:=|:= ${RAWLDFLAGS} |g" \
+ find common/inc/GL -delete || die
+ find . -type f -name "*\.a" -delete || die
+}
+
+src_compile() {
+ use examples || return
+ local myopts verbose="verbose=1"
+ use debug && myopts+=" dbg=1"
+ export FAKEROOTKEY=1 # Workaround sandbox issue in #462602
+ emake \
+ cuda-install="${EPREFIX}/opt/cuda" \
+ CUDA_PATH="${EPREFIX}/opt/cuda/" \
+ MPI_GCC=10 \
+ ${myopts} ${verbose}
+}
+
+src_test() {
+ local _dir _subdir
+
+ addwrite /dev/nvidiactl
+ addwrite /dev/nvidia0
+
+ for _dir in {0..9}*; do
+ pushd ${_dir} > /dev/null
+ for _subdir in *; do
+ emake -C ${_subdir} run
+ done
+ popd > /dev/null
+ done
+}
+
+src_install() {
+ local i j f t crap=""
+
+ if use doc; then
+ ebegin "Installing docs ..."
+ treecopy $(find -type f \( -name readme.txt -o -name "*.pdf" \)) "${ED}"/usr/share/doc/${PF}/
+ docompress -x $(find "${ED}"/usr/share/doc/${PF}/ -type f -name readme.txt | sed -e "s:${ED}::")
+ eend
+ fi
+
+ crap+=" *.txt Samples.htm*"
+
+ ebegin "Cleaning before installation..."
+ for i in ${crap}; do
+ if [[ -e ${i} ]]; then
+ find ${i} -delete || die
+ fi
+ done
+ find -type f \( -name "*.o" -o -name "*.pdf" -o -name "readme.txt" \) -delete || die
+ eend
+
+ ebegin "Moving files..."
+ for f in $(find .); do
+ local t="$(dirname ${f})"
+ if [[ ${t/obj\/} != ${t} || ${t##*.} == a ]]; then
+ continue
+ fi
+ if [[ ! -d ${f} ]]; then
+ if [[ -x ${f} ]]; then
+ exeinto /opt/cuda/sdk/${t}
+ doexe ${f}
+ else
+ insinto /opt/cuda/sdk/${t}
+ doins ${f}
+ fi
+ fi
+ done
+ eend
+}
^ permalink raw reply related [flat|nested] 27+ messages in thread
end of thread, other threads:[~2022-01-11 13:26 UTC | newest]
Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-13 8:44 [gentoo-commits] repo/gentoo:master commit in: dev-util/nvidia-cuda-sdk/ Benda XU
-- strict thread matches above, loose matches on Subject: below --
2022-01-11 13:26 Andrew Ammerlaan
2021-07-14 22:45 Marek Szuba
2021-03-21 15:53 David Seifert
2020-12-27 21:10 David Seifert
2020-03-25 14:01 Benda XU
2019-11-18 11:34 Benda XU
2019-11-14 2:09 Benda XU
2019-11-13 16:05 Mike Gilbert
2018-06-07 10:36 Alexey Shvetsov
2018-02-18 17:18 Patrice Clement
2018-01-26 21:42 David Seifert
2018-01-26 21:42 David Seifert
2017-12-10 14:51 Ulrich Müller
2017-11-26 11:39 David Seifert
2017-11-10 13:25 Guilherme Amadio
2017-05-20 21:24 Michał Górny
2017-03-02 7:50 David Seifert
2017-01-20 19:42 Justin Lecher
2017-01-19 21:45 Lars Wendler
2017-01-19 10:37 Agostino Sarubbo
2017-01-03 7:39 Justin Lecher
2017-01-03 7:39 Justin Lecher
2016-11-03 17:37 David Seifert
2016-10-26 21:32 David Seifert
2015-10-12 11:43 Justin Lecher
2015-09-09 9:49 Justin Lecher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox