public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Jason Zaman" <perfinion@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/nvidia-cuda-toolkit/
Date: Mon, 24 Jun 2019 13:28:17 +0000 (UTC)	[thread overview]
Message-ID: <1561382825.79c4c9ffcbdecef4bf36a914cb7ecf9cf16ffcfe.perfinion@gentoo> (raw)

commit:     79c4c9ffcbdecef4bf36a914cb7ecf9cf16ffcfe
Author:     Jason Zaman <perfinion <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 23 12:23:02 2019 +0000
Commit:     Jason Zaman <perfinion <AT> gentoo <DOT> org>
CommitDate: Mon Jun 24 13:27:05 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79c4c9ff

dev-util/nvidia-cuda-toolkit: bump 10.1.168

Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org>
Package-Manager: Portage-2.3.66, Repoman-2.3.11

 dev-util/nvidia-cuda-toolkit/Manifest              |   1 +
 .../nvidia-cuda-toolkit-10.1.168.ebuild            | 148 +++++++++++++++++++++
 2 files changed, 149 insertions(+)

diff --git a/dev-util/nvidia-cuda-toolkit/Manifest b/dev-util/nvidia-cuda-toolkit/Manifest
index c6ef0b44ee5..33a355068f4 100644
--- a/dev-util/nvidia-cuda-toolkit/Manifest
+++ b/dev-util/nvidia-cuda-toolkit/Manifest
@@ -1,5 +1,6 @@
 DIST cuda_10.0.130_410.48_linux.run 2020126691 BLAKE2B f784f41c06d81b6f89d07e756347fb94148f79e5fd50650fc340feb6b49dcc2bedd05cf4c7c2662da39955f9393efc048aa17fa921aad86e182186fb6d98ec50 SHA512 409ea4cc6aa0fe7063450e77c3b67b9b41aab1bbe556db673fb1a80610b20bd52e2020bf94034a92ab68c721d3d5739500bae4bd7a3558b2d8e73730a3b4ea25
 DIST cuda_10.1.105_418.39_linux.run 2423314285 BLAKE2B 924872eaaa4e8ecd6b81765c91d5e538d968e4fc88792a805339dd9cae15dd70372f310d39b9668d76cadbab875e3c4abcfca5a5cf71e4d83c9db056dc02f51c SHA512 07cdc053989758e4cdccaad566cae7127fa79780ad85033ea52d33cc4c43c9de08e88dd087390c58b542e51703f256859cdf51a018ee57e6a412f45fb9561622
+DIST cuda_10.1.168_418.67_linux.run 2526901749 BLAKE2B ed2207400730600c63895cc894e02a14dce59c6293f198ea2a94f6dd0fab25a005d4754f91376c267cb95f3fdc66ee08e4353ec17b69d28881c59190b9eb4746 SHA512 85635012ec7081e200fb46f973852939f9709e802f495c288d5f31ff1fbd283a578fdaca0afa8955e6e0c7ca6c4862428da5168e0938b48390952d8633350910
 DIST cuda_6.5.14_linux_32.run 76788277 BLAKE2B 75e79dce6cac5155bde8a3cafa945047c489b10272f8a3b94bf55d499df4b9c8b82506a81a20f9fd816bd4fd0514e515a6435399db1cb62b027c76490bd4dfae SHA512 89649ee0f4543b37037b7c8f5ed0b8bd502512afb4d93e3158b3df4786123be05a5288986b5abbfe15c14eb010777d2527b715225bea96a354a898c34e4a2fcc
 DIST cuda_6.5.14_linux_64.run 972320904 BLAKE2B 4a4361fb7a90989ec4b4aa433189e7b358e5a2272fb9b9c59429e0014ac14e3b8de1b247ee98dc30c3f3ee4cc009eca4fdd86027bd3b9527a683353d60bdf5c6 SHA512 fecca731b86955f5bc7b09d88b02951e3ee5d4b1f1cf5f92658227a029b87cd35d6ac22956a5fa0afe62dcdc57191f1d12bb08c9f7cc05128727cd8455947b1e
 DIST cuda_6.5.19_linux_32.run 81882112 BLAKE2B cf55ef7c969503c156431fc56301ed4e9a1234ae0cb867f12649636069f35e56bf6fc9df7482b6baade45d78c8baa2d98c41a28696da59294e0f575c4a0344ce SHA512 1ce9bd6b472b7e4f1fb181eb340dfcb757714d59a89aaa02146cfe1a97c8ccb7eb7699b4ec823276f277eb4d82d95050eaba17e7ed5fd2e47b9b5d78531c5d4e

diff --git a/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-10.1.168.ebuild b/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-10.1.168.ebuild
new file mode 100644
index 00000000000..d71931efe5e
--- /dev/null
+++ b/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-10.1.168.ebuild
@@ -0,0 +1,148 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit check-reqs cuda toolchain-funcs unpacker
+
+MYD=$(ver_cut 1-2 ${PV})
+DRIVER_PV="418.67"
+
+DESCRIPTION="NVIDIA CUDA Toolkit (compiler and friends)"
+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="NVIDIA-CUDA"
+SLOT="0/${PV}"
+KEYWORDS="-* ~amd64 ~amd64-linux"
+IUSE="debugger doc eclipse profiler"
+
+DEPEND=""
+RDEPEND="${DEPEND}
+	<sys-devel/gcc-9[cxx]
+	>=x11-drivers/nvidia-drivers-396.24[X,uvm]
+	debugger? (
+		sys-libs/libtermcap-compat
+		sys-libs/ncurses:5/5[tinfo]
+		)
+	eclipse? ( >=virtual/jre-1.6 )
+	profiler? ( >=virtual/jre-1.6 )"
+
+S="${WORKDIR}"
+
+QA_PREBUILT="opt/cuda/*"
+
+CHECKREQS_DISK_BUILD="6100M"
+
+pkg_setup() {
+	# We don't like to run cuda_pkg_setup as it depends on us
+	check-reqs_pkg_setup
+}
+
+src_prepare() {
+	local cuda_supported_gcc
+
+	cuda_supported_gcc="4.7 4.8 4.9 5.3 5.4 6.3 6.4 7.2 7.3 8.2 8.3"
+
+	sed \
+		-e "s:CUDA_SUPPORTED_GCC:${cuda_supported_gcc}:g" \
+		"${FILESDIR}"/cuda-config.in > "${T}"/cuda-config || die
+
+	default
+}
+
+src_install() {
+	local i remove=( doc jre run_files install-linux.pl cuda-installer.pl )
+	local cudadir=/opt/cuda
+	local ecudadir="${EPREFIX}${cudadir}"
+
+	cd builds/cuda-toolkit
+	if use doc; then
+		DOCS+=( doc/pdf/. )
+		HTML_DOCS+=( doc/html/. )
+	fi
+	einstalldocs
+
+	mv doc/man/man3/{,cuda-}deprecated.3 || die
+	doman doc/man/man*/*
+
+	use debugger || remove+=( bin/cuda-gdb bin/cuda-gdbserver extras/Debugger share/gdb extras/cuda-gdb-${PV}.src.tar.gz )
+
+	if use profiler; then
+		# hack found in install-linux.pl
+		for i in nvvp nsight; do
+			cat > bin/${i} <<- EOF || die
+				#!/usr/bin/env sh
+				LD_LIBRARY_PATH=\${LD_LIBRARY_PATH}:${ecudadir}/lib:${ecudadir}/lib64 \
+					UBUNTU_MENUPROXY=0 LIBOVERLAY_SCROLLBAR=0 \
+					${ecudadir}/lib${i}/${i} -vm ${EPREFIX}/usr/bin/java
+			EOF
+			chmod a+x bin/${i} || die
+		done
+	else
+		use eclipse || remove+=( libnvvp libnsight nsightee_plugins NsightCompute-2019.1 NsightSystems-2018.3 bin/nsight bin/nsight_ee_plugins_manage.sh bin/nvvp bin/computeprof )
+		remove+=( extras/CUPTI bin/nvprof )
+	fi
+
+	for i in "${remove[@]}"; do
+		ebegin "Cleaning ${i}..."
+		rm -rf "${i}" || die
+		eend
+	done
+
+	dodir ${cudadir}
+	into ${cudadir}
+
+	# Install binaries separately to make sure the X permission is set
+	local bindirs=( bin nvvm/bin extras/demo_suite )
+	for i in $(find "${bindirs[@]}" -maxdepth 1 -type f); do
+		exeinto ${cudadir}/${i%/*}
+		doexe ${i}
+		rm ${i} || die
+	done
+
+	# Install the rest
+	insinto ${cudadir}
+	doins -r *
+
+	cat > "${T}"/99cuda <<- EOF || die
+		PATH=${ecudadir}/bin$(usex profiler ":${ecudadir}/libnvvp" "")
+		ROOTPATH=${ecudadir}/bin
+		LDPATH=${ecudadir}/lib64:${ecudadir}/lib:${ecudadir}/nvvm/lib64
+	EOF
+	doenvd "${T}"/99cuda
+
+	use profiler && \
+		make_wrapper nvprof "${ecudadir}/bin/nvprof" "." "${ecudadir}/lib64:${ecudadir}/lib"
+
+	dobin "${T}"/cuda-config
+}
+
+pkg_postinst_check() {
+	local a b
+	a="$(${EROOT%/}/opt/cuda/bin/cuda-config -s)"
+	b="0.0"
+	for v in $a; do
+		if ver_test "${v}" -gt "${b}"; then
+			b="${v}"
+		fi
+	done
+
+	# if gcc and if not gcc-version is at least greatest supported
+	if tc-is-gcc && \
+		ver_test $(gcc-version) -gt ${b}; then
+			ewarn ""
+			ewarn "gcc >= ${b} will not work with CUDA"
+			ewarn "Make sure you set an earlier version of gcc with gcc-config"
+			ewarn "or append --compiler-bindir= pointing to a gcc bindir like"
+			ewarn "--compiler-bindir=${EPREFIX}/usr/*pc-linux-gnu/gcc-bin/gcc${b}"
+			ewarn "to the nvcc compiler flags"
+			ewarn ""
+	fi
+}
+
+pkg_postinst() {
+	if [[ ${MERGE_TYPE} != binary ]]; then
+		pkg_postinst_check
+	fi
+}


             reply	other threads:[~2019-06-24 13:28 UTC|newest]

Thread overview: 129+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-24 13:28 Jason Zaman [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-07  3:40 [gentoo-commits] repo/gentoo:master commit in: dev-util/nvidia-cuda-toolkit/ Sam James
2025-02-23 21:59 Sam James
2024-09-11  9:59 David Seifert
2024-08-27 15:49 David Seifert
2024-07-19  7:25 David Seifert
2024-06-30 14:46 David Seifert
2024-06-06 12:50 David Seifert
2024-06-06  9:38 David Seifert
2024-04-07  9:37 David Seifert
2024-04-07  9:37 David Seifert
2024-03-30 18:35 David Seifert
2024-02-02 10:35 David Seifert
2024-01-03 21:15 David Seifert
2023-12-03 16:49 David Seifert
2023-11-21 12:37 David Seifert
2023-10-31 14:59 David Seifert
2023-10-31 14:59 David Seifert
2023-09-23  9:37 David Seifert
2023-09-04 14:28 David Seifert
2023-08-23  9:02 David Seifert
2023-08-14  7:57 Benda XU
2023-08-11 11:57 David Seifert
2023-07-29  9:41 David Seifert
2023-07-08 12:24 Andreas K. Hüttel
2023-06-29 10:18 David Seifert
2023-06-29 10:18 David Seifert
2023-06-27 14:26 David Seifert
2023-06-27 14:26 David Seifert
2023-06-27 13:11 David Seifert
2023-06-07  6:47 Guilherme Amadio
2023-05-14 21:13 David Seifert
2023-04-18  7:14 Guilherme Amadio
2023-03-30  8:52 David Seifert
2023-02-19 12:24 David Seifert
2023-02-13  9:56 Guilherme Amadio
2022-12-17 19:55 Sam James
2022-11-22 20:52 Sam James
2022-11-19  7:52 Sam James
2022-11-19  7:52 Sam James
2022-11-19  7:44 Sam James
2022-11-19  4:48 David Seifert
2022-11-10  5:06 Arthur Zamarin
2022-10-23 19:57 David Seifert
2022-10-18 18:43 David Seifert
2022-08-22 12:30 David Seifert
2022-06-17 12:55 David Seifert
2022-06-16 16:30 Sam James
2022-06-09  9:28 Guilherme Amadio
2022-03-28 12:43 Guilherme Amadio
2022-02-23  9:48 Guilherme Amadio
2022-01-14 14:02 David Seifert
2021-12-20 10:57 David Seifert
2021-12-05 20:55 David Seifert
2021-12-04 16:37 David Seifert
2021-11-26 20:17 David Seifert
2021-11-09 15:59 Guilherme Amadio
2021-10-21 11:58 David Seifert
2021-10-21 11:58 David Seifert
2021-09-24  9:26 David Seifert
2021-09-09 20:04 David Seifert
2021-08-23 14:23 David Seifert
2021-08-23  8:57 David Seifert
2021-08-13 16:51 David Seifert
2021-08-10 22:03 David Seifert
2021-08-01  4:14 Sam James
2021-07-14 22:45 Marek Szuba
2021-07-14 22:45 Marek Szuba
2021-06-30 21:21 David Seifert
2021-06-28  8:46 David Seifert
2021-04-30 14:54 David Seifert
2021-04-29  9:14 Guilherme Amadio
2021-04-29  8:47 Guilherme Amadio
2021-04-29  8:42 Guilherme Amadio
2021-04-29  8:42 Guilherme Amadio
2021-04-24 13:24 David Seifert
2021-04-09 15:15 David Seifert
2021-03-21 15:53 David Seifert
2021-02-14 15:49 David Seifert
2021-01-10 20:51 David Seifert
2020-12-27 20:09 David Seifert
2020-12-27 20:09 David Seifert
2020-12-07 11:05 David Seifert
2020-10-24  8:38 Jason Zaman
2020-09-29  7:29 Guilherme Amadio
2020-09-20 13:27 David Seifert
2020-06-27 11:04 Andreas Sturmlechner
2020-06-27 10:21 Pacho Ramos
2020-05-13  4:00 Benda XU
2020-02-16 20:35 David Seifert
2020-02-16 20:35 David Seifert
2020-02-16 20:24 David Seifert
2020-02-16 13:35 Jason Zaman
2019-12-05 17:02 Jason Zaman
2019-12-02 14:50 Jason Zaman
2019-12-02 14:50 Jason Zaman
2019-12-01 12:04 Benda XU
2019-11-13  8:44 Benda XU
2019-10-09 18:31 Jason Zaman
2019-10-01 19:14 Michał Górny
2019-04-29 13:29 Jason Zaman
2019-04-05 15:41 Jason Zaman
2019-04-05 15:41 Jason Zaman
2018-11-30 15:26 Jason Zaman
2018-06-07 10:36 Alexey Shvetsov
2018-01-26 21:42 David Seifert
2017-12-10 14:13 Michał Górny
2017-11-26 11:39 David Seifert
2017-11-13 14:30 Guilherme Amadio
2017-11-10 13:25 Guilherme Amadio
2017-07-06  8:56 Guilherme Amadio
2017-05-20 21:24 Michał Górny
2017-03-02  7:50 David Seifert
2017-01-02 23:00 Justin Lecher
2017-01-02 22:09 Justin Lecher
2016-12-21 16:24 Tobias Klausmann
2016-12-11 15:11 Justin Lecher
2016-12-11 12:58 Justin Lecher
2016-12-11 11:21 Justin Lecher
2016-10-27 12:33 Mikhail Pukhlikov
2016-10-26 21:32 David Seifert
2016-04-20 15:19 Ian Stakenvicius
2016-01-11  8:27 Justin Lecher
2015-10-12 11:43 Justin Lecher
2015-09-17 18:28 Justin Lecher
2015-09-17  7:31 Justin Lecher
2015-09-17  7:30 Justin Lecher
2015-09-17  7:17 Justin Lecher
2015-09-09  9:49 Justin Lecher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1561382825.79c4c9ffcbdecef4bf36a914cb7ecf9cf16ffcfe.perfinion@gentoo \
    --to=perfinion@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox