diff options
Diffstat (limited to 'dev-util/nvidia-cuda-toolkit')
-rw-r--r-- | dev-util/nvidia-cuda-toolkit/Manifest | 4 | ||||
-rw-r--r-- | dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-10.1.243-r1.ebuild | 162 | ||||
-rw-r--r-- | dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-10.2.89.ebuild (renamed from dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-10.1.243.ebuild) | 14 |
3 files changed, 175 insertions, 5 deletions
diff --git a/dev-util/nvidia-cuda-toolkit/Manifest b/dev-util/nvidia-cuda-toolkit/Manifest index b451db039347..eea66d1488a9 100644 --- a/dev-util/nvidia-cuda-toolkit/Manifest +++ b/dev-util/nvidia-cuda-toolkit/Manifest @@ -3,6 +3,7 @@ DIST cuda_10.0.130_410.48_linux.run 2020126691 BLAKE2B f784f41c06d81b6f89d07e756 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_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.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 @@ -16,7 +17,8 @@ DIST cuda_9.2.88_396.26_linux.run 1758421686 BLAKE2B 5068b2dfae87e43c124a6a72ac9 EBUILD nvidia-cuda-toolkit-10.0.130.ebuild 3349 BLAKE2B 19495576988f7e01178ecef6117b4e1a1186ec98174ab77bc14233ba55b199c4ac7068e4f734eba984f6546883aa8dd1787c1eda7b40c60829a0587d8286ba9c SHA512 719f934f1acf7599405a910be3b14f5888583eadc281bc93599ab8441b82c1fca6147d904a8622495c5410a86897c4acb45b3907bf44cc9e00ac9cde905e61fa EBUILD nvidia-cuda-toolkit-10.1.105-r1.ebuild 3768 BLAKE2B 3e0a0527e9f174452d27f4072bee45036737a6f4b1615ffdddd99eb1dcd65ee31ade936088c1df8596cdeb4b8b2c165a45753b213f3a9ba90ec0dae58470e29e SHA512 d833f528da327e9478c3ee1bcff3dd722f9a165f45907fd82079d4380aa627ae0e88c684a1c5c37b6397ef30428f01343b16465edeb0144322bfd2accc8f79c4 EBUILD nvidia-cuda-toolkit-10.1.168.ebuild 3768 BLAKE2B 1499833ee57cd8f57243f1a4c7f2db7d5288945a217a8f56ce345b23ab820d2098f1d2b22a35550146e9f6a2a4806902556dce661acc2c83d358c6c6a4b77c2d SHA512 6737ffda572af284a65c07727dd4d7e67081e7aae3e7d656c3d4c5db7d9ef0f17ffbde069d7fc936d909881670ea34dc2025147741146a59a0330b16cc42444c -EBUILD nvidia-cuda-toolkit-10.1.243.ebuild 3753 BLAKE2B a6965247c07c75262a50d968f3a76ece7d693912ed76aa1c52c37bed7f9c09ce625945a333c186d45ca68f082ef44777e0877df8d6288f9f78cb3d3f94e508f1 SHA512 b0fa77b925abc516f9e036fb8b67383e2ec0bfdda85bb41506cec2d6e851aac016d118c12fe11ea80694f0e390cdba388aa6aedef7fc9f5ecfacf43ecf9d76fe +EBUILD nvidia-cuda-toolkit-10.1.243-r1.ebuild 4068 BLAKE2B 8a0aed8f0b383064af4e78382e26c3d1b30148b2a952943cf24b04094a7fc7cada59df9a5073ccf49b409b79af2773aa5629b45bcb8d3b22bdcbc337fb425aef SHA512 9454e7b8b9e1078cf52f06ae297a9cdb5943368d51437c000a369aeecaf90d639f944039ec3deb194d9d83527efdf03b99e00b14a91169975720a6cda16e5385 +EBUILD nvidia-cuda-toolkit-10.2.89.ebuild 3821 BLAKE2B 002b8907aaf2b16f96f69ec692c4245ec0a1722a5bc017067cac8c465fb2e4381863385265a8b5799f43edc51522a3b2f50b2225b0d15f14481a27c6aa17d383 SHA512 b7df4abffcfc02732e66ae97ef1736362e9eb8d46a655a43b2b145cc04dc7cf1c08739782e5972d58c5dbacf9828f4a32fe124016d0265e60d43cf3604a18fdf EBUILD nvidia-cuda-toolkit-6.5.14.ebuild 3818 BLAKE2B e368a3fa7258a86f920f53da56039b940cc84e551265d458e1a3c7bc7b9321c4020e5ada9b56fc588ef4708acc4cfe9a8d2e259ad12b0c71fb57635b05b873bf SHA512 7f73c4e321234f6a19166e6e28719f6c98cecb809f9878ee1182b812e18fcc6f8c29fb2ebd0ed520847f38bfddd6a0bc60fae6b711b75f563ab39a9b322468b2 EBUILD nvidia-cuda-toolkit-6.5.19-r1.ebuild 3844 BLAKE2B 42603527c1f012d49c98026d3f96f5ecd832cc4f31fd1afcf6738dd4e3e2aeee0ac55beeae994bbff4f48562adfe11b72270e516f8fb70d32cf00ae59f55bd78 SHA512 f40103348972041a9d6c09a8c129b68603ce0fafa29df1fdf6b13014bb97156a44881161d4668beef8af9b77adea9df8034c88d6413a6ac2ad709285f785df79 EBUILD nvidia-cuda-toolkit-7.5.18-r2.ebuild 3355 BLAKE2B 07076b6506902bcadb8f7b6430db04beb380b76da35c5745e313910518855bb7e4c5d746d880bf7f3bbd07fc06cbb17f0d7d76bb267f9679c3d8099e398f7d35 SHA512 4e8070e399766796b1589329db4de04fc0fda0cbd1dc8ec1984b8550f1bc10d490fed7b085066f4419d5cbdf98ea2ae8202b29a9d360fe3b2a3be6e20bc802be diff --git a/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-10.1.243-r1.ebuild b/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-10.1.243-r1.ebuild new file mode 100644 index 000000000000..375c8aa7bc1a --- /dev/null +++ b/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-10.1.243-r1.ebuild @@ -0,0 +1,162 @@ +# 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.87.00" + +DESCRIPTION="NVIDIA CUDA Toolkit (compiler and friends)" +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="NVIDIA-CUDA" +SLOT="0/${PV}" +KEYWORDS="-* ~amd64 ~amd64-linux" +IUSE="debugger doc eclipse profiler" +RESTRICT="bindist mirror" + +BDEPEND="" +RDEPEND=" + <sys-devel/gcc-9[cxx] + !prefix? ( >=x11-drivers/nvidia-drivers-${DRIVER_PV}[X,uvm] ) + debugger? ( + dev-libs/openssl-compat:1.0.0 + sys-libs/libtermcap-compat + sys-libs/ncurses-compat:5[tinfo] + ) + eclipse? ( + dev-libs/openssl-compat:1.0.0 + >=virtual/jre-1.6 + ) + profiler? ( + dev-libs/openssl-compat:1.0.0 + >=virtual/jre-1.6 + )" + +S="${WORKDIR}" + +QA_PREBUILT="opt/cuda/*" + +CHECKREQS_DISK_BUILD="6800M" + +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 ) + 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 nsight-compute-2019.4.0 nsight-systems-2019.3.7.5 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 -r "${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 + + if 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}[X,uvm]" + ewarn "is available from the host" + fi +} diff --git a/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-10.1.243.ebuild b/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-10.2.89.ebuild index 306345210681..ca7089f105fc 100644 --- a/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-10.1.243.ebuild +++ b/dev-util/nvidia-cuda-toolkit/nvidia-cuda-toolkit-10.2.89.ebuild @@ -6,7 +6,7 @@ EAPI=7 inherit check-reqs cuda toolchain-funcs unpacker MYD=$(ver_cut 1-2 ${PV}) -DRIVER_PV="418.87.00" +DRIVER_PV="440.33.01" DESCRIPTION="NVIDIA CUDA Toolkit (compiler and friends)" HOMEPAGE="https://developer.nvidia.com/cuda-zone" @@ -27,8 +27,14 @@ RDEPEND=" sys-libs/libtermcap-compat sys-libs/ncurses-compat:5[tinfo] ) - eclipse? ( >=virtual/jre-1.6 ) - profiler? ( >=virtual/jre-1.6 )" + eclipse? ( + dev-libs/openssl-compat:1.0.0 + >=virtual/jre-1.6 + ) + profiler? ( + dev-libs/openssl-compat:1.0.0 + >=virtual/jre-1.6 + )" S="${WORKDIR}" @@ -82,7 +88,7 @@ src_install() { chmod a+x bin/${i} || die done else - use eclipse || remove+=( libnvvp libnsight nsightee_plugins nsight-compute-2019.4.0 nsight-systems-2019.3.7.5 bin/nsight bin/nsight_ee_plugins_manage.sh bin/nvvp bin/computeprof ) + use eclipse || remove+=( libnvvp libnsight nsightee_plugins nsight-compute-2019.5.0 nsight-systems-2019.5.2 bin/nsight bin/nsight_ee_plugins_manage.sh bin/nvvp bin/computeprof ) remove+=( extras/CUPTI bin/nvprof ) fi |