[arch-commits] Commit in cuda/repos (6 files)
Date: Saturday, December 7, 2019 @ 18:05:14 Author: kgizdov Revision: 536293 archrelease: copy trunk to community-staging-x86_64 Added: cuda/repos/community-staging-x86_64/ cuda/repos/community-staging-x86_64/PKGBUILD (from rev 536292, cuda/trunk/PKGBUILD) cuda/repos/community-staging-x86_64/cuda-findgllib_mk.diff (from rev 536292, cuda/trunk/cuda-findgllib_mk.diff) cuda/repos/community-staging-x86_64/cuda.conf (from rev 536292, cuda/trunk/cuda.conf) cuda/repos/community-staging-x86_64/cuda.install (from rev 536292, cuda/trunk/cuda.install) cuda/repos/community-staging-x86_64/cuda.sh (from rev 536292, cuda/trunk/cuda.sh) + PKGBUILD | 88 +++ cuda-findgllib_mk.diff | 22 +++ cuda.conf |3 + cuda.install | 11 + cuda.sh|2 + 5 files changed, 126 insertions(+) Copied: cuda/repos/community-staging-x86_64/PKGBUILD (from rev 536292, cuda/trunk/PKGBUILD) === --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2019-12-07 18:05:14 UTC (rev 536293) @@ -0,0 +1,88 @@ +# Maintainer: Sven-Hendrik Haase +# Maintainer: Konstantin Gizdov +pkgname=cuda +pkgver=10.2.89 +_driverver=440.33.01 +pkgrel=2 +pkgdesc="NVIDIA's GPU programming toolkit" +arch=('x86_64') +url="https://developer.nvidia.com/cuda-zone"; +license=('custom:NVIDIA') +depends=('gcc8-libs' 'gcc8' 'opencl-nvidia' 'nvidia-utils') +replaces=('cuda-toolkit' 'cuda-sdk') +provides=('cuda-toolkit' 'cuda-sdk') +optdepends=('gdb: for cuda-gdb' +'java-runtime=8: for nsight and nvvp') +options=(!strip staticlibs) +install=cuda.install +source=(http://developer.download.nvidia.com/compute/cuda/10.2/Prod/local_installers/cuda_${pkgver}_${_driverver}_linux.run +cuda.sh +cuda.conf +cuda-findgllib_mk.diff) +sha512sums=('ad8da539ff5df7caf411d1e497ff3d6978cfa8a1fd9150fa4846089e92a604ea56be8631f3efdfe7229a655b8d2d28e6edb32f5731530a77d6f00241cc7aab6e' + 'b3691913027b8390161c7412d87a905712d90434cc82027a52f203f8ae3dda755738f734f8190277471e4541d685b524568ad03af58d4b7ebad346eee11c10e4' + '714d973bc79446f73bebe85306b3566fe25b554bcbcba2fcbe76709a3eca71fb5d183ab4da2d3b5e9326cb9cd8d13a93f6d4a005ea5a41f7ef8e6c6e81e06b5e' + '41d6b6cad934f135eafde610d1cbd862033977fd4416a4b6abaa47709a70bab7fcf6f8377c21329084fb9db13f2a8c8c20e93c15292d7d4a6448d70a33b23f1b') + +prepare() { + sh cuda_${pkgver}_${_driverver}_linux.run --target "${srcdir}" --noexec + + # Fix up samples tht use findgllib_mk + for f in builds/cuda-samples/*/*/findgllib.mk; do +patch $f cuda-findgllib_mk.diff + done +} + +package() { + mkdir -p "${pkgdir}/opt/" + + cd "${srcdir}/builds" + cp -r cuda-toolkit "${pkgdir}/opt/cuda" + cp -r cublas/include/* "${pkgdir}/opt/cuda/include/" + cp -r cublas/lib64/* "${pkgdir}/opt/cuda/lib64/" + cp -r cuda-samples "${pkgdir}/opt/cuda/samples" + ln -s /opt/cuda/targets/x86_64-linux/lib "${pkgdir}/opt/cuda/lib" + ln -s /opt/cuda/nvvm/lib64 "${pkgdir}/opt/cuda/nvvm/lib" + + # Define compilers for CUDA to use. + # This allows us to use older versions of GCC if we have to. + ln -s /usr/bin/gcc-8 "${pkgdir}/opt/cuda/bin/gcc" + ln -s /usr/bin/g++-8 "${pkgdir}/opt/cuda/bin/g++" + + # Create soname links. + # We have to be weird about this since for some reason the ELF SONAME is incorrect or at least partially incorrect for some libs. + # Best we can do is create all symlinks and hope for the best. + # Their installer used to perform this for us but now it's all manual and I think this is what we'll be stuck with for now. + find cuda-toolkit/targets -type f -name '*.so*' ! -path '*stubs/*' -print0 | while read -rd $'\0' _lib; do +_base=${_lib%.so.*} +_current_soname=$(basename ${_lib%.*}) +while [[ $_current_soname != $(basename $_base) ]]; do + ln -sf ${_lib##*/} ${pkgdir}/opt/cuda/lib64/$_current_soname + _current_soname=${_current_soname%.*} +done + done + + # Install profile and ld.so.config files + install -Dm755 "${srcdir}/cuda.sh" "${pkgdir}/etc/profile.d/cuda.sh" + install -Dm644 "${srcdir}/cuda.conf" "${pkgdir}/etc/ld.so.conf.d/cuda.conf" + + mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}" + ln -s /opt/cuda/doc/pdf/EULA.pdf "${pkgdir}/usr/share/licenses/${pkgname}/EULA.pdf" + + # Remove included copy of java and link to system java 8 + rm -fr "${pkgdir}/opt/cuda/jre" + sed 's|../jre/bin/java|/usr/lib/jvm/java-8-openjdk/jre/bin/java|g' \ +-i "${pkgdir}/opt/cuda/libnsight/nsight.ini" \ +-i "${pkgdir}/opt/cuda/libnvvp/nvvp.ini" + + # Allow GCC 9 to work + sed -i "/.*unsupported GNU version.*/d" "${pkgdir}"/opt/cuda/targets/x86_64-linux/include/crt/host_config.h + + # Fix Makefile paths to CUDA + for f in $(find "$pkgdir"/opt/cuda -name
[arch-commits] Commit in cuda/repos (6 files)
Date: Thursday, November 21, 2019 @ 00:57:24 Author: svenstaro Revision: 530976 archrelease: copy trunk to community-testing-x86_64 Added: cuda/repos/community-testing-x86_64/ cuda/repos/community-testing-x86_64/PKGBUILD (from rev 530975, cuda/trunk/PKGBUILD) cuda/repos/community-testing-x86_64/cuda-findgllib_mk.diff (from rev 530975, cuda/trunk/cuda-findgllib_mk.diff) cuda/repos/community-testing-x86_64/cuda.conf (from rev 530975, cuda/trunk/cuda.conf) cuda/repos/community-testing-x86_64/cuda.install (from rev 530975, cuda/trunk/cuda.install) cuda/repos/community-testing-x86_64/cuda.sh (from rev 530975, cuda/trunk/cuda.sh) + PKGBUILD | 88 +++ cuda-findgllib_mk.diff | 22 +++ cuda.conf |3 + cuda.install | 11 + cuda.sh|2 + 5 files changed, 126 insertions(+) Copied: cuda/repos/community-testing-x86_64/PKGBUILD (from rev 530975, cuda/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2019-11-21 00:57:24 UTC (rev 530976) @@ -0,0 +1,88 @@ +# Maintainer: Sven-Hendrik Haase +# Maintainer: Konstantin Gizdov +pkgname=cuda +pkgver=10.2.89 +_driverver=440.33.01 +pkgrel=1 +pkgdesc="NVIDIA's GPU programming toolkit" +arch=('x86_64') +url="https://developer.nvidia.com/cuda-zone"; +license=('custom:NVIDIA') +depends=('gcc8-libs' 'gcc8' 'opencl-nvidia' 'nvidia-utils') +replaces=('cuda-toolkit' 'cuda-sdk') +provides=('cuda-toolkit' 'cuda-sdk') +optdepends=('gdb: for cuda-gdb' +'java-runtime=8: for nsight and nvvp') +options=(!strip staticlibs) +install=cuda.install +source=(http://developer.download.nvidia.com/compute/cuda/10.2/Prod/local_installers/cuda_${pkgver}_${_driverver}_linux.run +cuda.sh +cuda.conf +cuda-findgllib_mk.diff) +sha512sums=('ad8da539ff5df7caf411d1e497ff3d6978cfa8a1fd9150fa4846089e92a604ea56be8631f3efdfe7229a655b8d2d28e6edb32f5731530a77d6f00241cc7aab6e' + 'b3691913027b8390161c7412d87a905712d90434cc82027a52f203f8ae3dda755738f734f8190277471e4541d685b524568ad03af58d4b7ebad346eee11c10e4' + '714d973bc79446f73bebe85306b3566fe25b554bcbcba2fcbe76709a3eca71fb5d183ab4da2d3b5e9326cb9cd8d13a93f6d4a005ea5a41f7ef8e6c6e81e06b5e' + '41d6b6cad934f135eafde610d1cbd862033977fd4416a4b6abaa47709a70bab7fcf6f8377c21329084fb9db13f2a8c8c20e93c15292d7d4a6448d70a33b23f1b') + +prepare() { + sh cuda_${pkgver}_${_driverver}_linux.run --target "${srcdir}" --noexec + + # Fix up samples tht use findgllib_mk + for f in builds/cuda-samples/*/*/findgllib.mk; do +patch $f cuda-findgllib_mk.diff + done +} + +package() { + mkdir -p "${pkgdir}/opt/" + + cd "${srcdir}/builds" + cp -r cuda-toolkit "${pkgdir}/opt/cuda" + cp -r cublas/include/* "${pkgdir}/opt/cuda/include/" + cp -r cublas/lib64/* "${pkgdir}/opt/cuda/lib64/" + cp -r cuda-samples "${pkgdir}/opt/cuda/samples" + ln -s /opt/cuda/targets/x86_64-linux/lib "${pkgdir}/opt/cuda/lib" + ln -s /opt/cuda/nvvm/lib64 "${pkgdir}/opt/cuda/nvvm/lib" + + # Define compilers for CUDA to use. + # This allows us to use older versions of GCC if we have to. + ln -s /usr/bin/gcc-8 "${pkgdir}/opt/cuda/bin/gcc" + ln -s /usr/bin/g++-8 "${pkgdir}/opt/cuda/bin/g++" + + # Create soname links. + # We have to be weird about this since for some reason the ELF SONAME is incorrect or at least partially incorrect for some libs. + # Best we can do is create all symlinks and hope for the best. + # Their installer used to perform this for us but now it's all manual and I think this is what we'll be stuck with for now. + find cuda-toolkit/targets -type f -name '*.so*' ! -path '*stubs/*' -print0 | while read -rd $'\0' _lib; do +_base=${_lib%.so.*} +_current_soname=$(basename ${_lib%.*}) +while [[ $_current_soname != $(basename $_base) ]]; do + ln -sf ${_lib##*/} ${pkgdir}/opt/cuda/lib64/$_current_soname + _current_soname=${_current_soname%.*} +done + done + + # Install profile and ld.so.config files + install -Dm755 "${srcdir}/cuda.sh" "${pkgdir}/etc/profile.d/cuda.sh" + install -Dm644 "${srcdir}/cuda.conf" "${pkgdir}/etc/ld.so.conf.d/cuda.conf" + + mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}" + ln -s /opt/cuda/doc/pdf/EULA.pdf "${pkgdir}/usr/share/licenses/${pkgname}/EULA.pdf" + + # Remove included copy of java and link to system java 8 + rm -fr "${pkgdir}/opt/cuda/jre" + sed 's|../jre/bin/java|/usr/lib/jvm/java-8-openjdk/jre/bin/java|g' \ +-i "${pkgdir}/opt/cuda/libnsight/nsight.ini" \ +-i "${pkgdir}/opt/cuda/libnvvp/nvvp.ini" + + # Allow GCC 9 to work + sed -i "/.*unsupported GNU version.*/d" "${pkgdir}"/opt/cuda/targets/x86_64-linux/include/crt/host_config.h + + # Fix Makefile paths to CUDA + for f in $(find "$pkgdir"/opt/cuda -na
[arch-commits] Commit in cuda/repos (6 files)
Date: Tuesday, April 23, 2019 @ 14:51:17 Author: kgizdov Revision: 453157 archrelease: copy trunk to community-testing-x86_64 Added: cuda/repos/community-testing-x86_64/ cuda/repos/community-testing-x86_64/PKGBUILD (from rev 453156, cuda/trunk/PKGBUILD) cuda/repos/community-testing-x86_64/cuda-findgllib_mk.diff (from rev 453156, cuda/trunk/cuda-findgllib_mk.diff) cuda/repos/community-testing-x86_64/cuda.conf (from rev 453156, cuda/trunk/cuda.conf) cuda/repos/community-testing-x86_64/cuda.install (from rev 453156, cuda/trunk/cuda.install) cuda/repos/community-testing-x86_64/cuda.sh (from rev 453156, cuda/trunk/cuda.sh) + PKGBUILD | 80 +++ cuda-findgllib_mk.diff | 22 cuda.conf |3 + cuda.install | 11 ++ cuda.sh|1 5 files changed, 117 insertions(+) Copied: cuda/repos/community-testing-x86_64/PKGBUILD (from rev 453156, cuda/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2019-04-23 14:51:17 UTC (rev 453157) @@ -0,0 +1,80 @@ +# Maintainer: Sven-Hendrik Haase +# Co-Maintainer: Konstantin Gizdov +pkgname=cuda +pkgver=10.1.105 +_basever=10.1.105 +_driverver=418.39 +pkgrel=12 +pkgdesc="NVIDIA's GPU programming toolkit" +arch=('x86_64') +url="http://www.nvidia.com/object/cuda_home.html"; +license=('custom:NVIDIA') +depends=('gcc-libs' 'opencl-nvidia' 'nvidia-utils' 'gcc') +replaces=('cuda-toolkit' 'cuda-sdk') +provides=('cuda-toolkit' 'cuda-sdk') +optdepends=('gdb: for cuda-gdb' +'java-runtime=8: for nsight and nvvp') +options=(!strip staticlibs) +install=cuda.install +source=(https://developer.nvidia.com/compute/cuda/10.1/Prod/local_installers/cuda_${_basever}_${_driverver}_linux.run +cuda.sh +cuda.conf +cuda-findgllib_mk.diff) +sha512sums=('07cdc053989758e4cdccaad566cae7127fa79780ad85033ea52d33cc4c43c9de08e88dd087390c58b542e51703f256859cdf51a018ee57e6a412f45fb9561622' + 'ce0b8df5d918ec8429da4ab8f9dee463ac04055ee5b0beeb0386b67d765a4c892d314995776a0d695cd06bcfbaf996e4904935ddc898a9d774f6bf965d989dea' + '714d973bc79446f73bebe85306b3566fe25b554bcbcba2fcbe76709a3eca71fb5d183ab4da2d3b5e9326cb9cd8d13a93f6d4a005ea5a41f7ef8e6c6e81e06b5e' + '41d6b6cad934f135eafde610d1cbd862033977fd4416a4b6abaa47709a70bab7fcf6f8377c21329084fb9db13f2a8c8c20e93c15292d7d4a6448d70a33b23f1b') + +prepare() { + sh cuda_${_basever}_${_driverver}_linux.run --target ${srcdir} --noexec + + # Fix up samples tht use findgllib_mk + for f in builds/cuda-samples/*/*/findgllib.mk; do +patch $f cuda-findgllib_mk.diff + done +} + +package() { + mkdir -p "${pkgdir}/opt/" + + cd "${srcdir}/builds" + cp -r cuda-toolkit "${pkgdir}/opt/cuda" + cp -r cublas/include/* "${pkgdir}/opt/cuda/include/" + cp -r cublas/lib64/* "${pkgdir}/opt/cuda/lib64/" + cp -r cuda-samples "${pkgdir}/opt/cuda/samples" + ln -s /opt/cuda/targets/x86_64-linux/lib "${pkgdir}/opt/cuda/lib" + ln -s /opt/cuda/nvvm/lib64 "${pkgdir}/opt/cuda/nvvm/lib" + + # Use GCC 8 + ln -s /usr/bin/gcc "${pkgdir}/opt/cuda/bin/gcc" + ln -s /usr/bin/g++ "${pkgdir}/opt/cuda/bin/g++" + + # Create soname links. + # We have to be weird about this since for some reason the ELF SONAME is incorrect or at least partially incorrect for some libs. + # Best we can do is create all symlinks and hope for the best. + # Their installer used to perform this for us but now it's all manual and I think this is what we'll be stuck with for now. + find cuda-toolkit/targets -type f -name '*.so*' ! -path '*stubs/*' -print0 | while read -rd $'\0' _lib; do +_base=${_lib%.so.*} +_current_soname=$(basename ${_lib%.*}) +while [[ $_current_soname != $(basename $_base) ]]; do + ln -sf ${_lib##*/} ${pkgdir}/opt/cuda/lib64/$_current_soname + _current_soname=${_current_soname%.*} +done + done + + # Install profile and ld.so.config files + install -Dm755 "${srcdir}/cuda.sh" "${pkgdir}/etc/profile.d/cuda.sh" + install -Dm644 "${srcdir}/cuda.conf" "${pkgdir}/etc/ld.so.conf.d/cuda.conf" + + mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}" + ln -s /opt/cuda/doc/pdf/EULA.pdf "${pkgdir}/usr/share/licenses/${pkgname}/EULA.pdf" + + # Remove included copy of java and link to system java 8 + rm -fr "${pkgdir}/opt/cuda/jre" + sed 's|../jre/bin/java|/usr/lib/jvm/java-8-openjdk/jre/bin/java|g' \ +-i "${pkgdir}/opt/cuda/libnsight/nsight.ini" \ +-i "${pkgdir}/opt/cuda/libnvvp/nvvp.ini" +} + +# vim:set ts=2 sw=2 et: + Copied: cuda/repos/community-testing-x86_64/cuda-findgllib_mk.diff (from rev 453156, cuda/trunk/cuda-findgllib_mk.diff) === --- community-testing-x86_64/cuda-findgllib_mk.diff
[arch-commits] Commit in cuda/repos (6 files)
Date: Thursday, April 11, 2019 @ 00:15:30 Author: kgizdov Revision: 450923 archrelease: copy trunk to community-testing-x86_64 Added: cuda/repos/community-testing-x86_64/ cuda/repos/community-testing-x86_64/PKGBUILD (from rev 450922, cuda/trunk/PKGBUILD) cuda/repos/community-testing-x86_64/cuda-findgllib_mk.diff (from rev 450922, cuda/trunk/cuda-findgllib_mk.diff) cuda/repos/community-testing-x86_64/cuda.conf (from rev 450922, cuda/trunk/cuda.conf) cuda/repos/community-testing-x86_64/cuda.install (from rev 450922, cuda/trunk/cuda.install) cuda/repos/community-testing-x86_64/cuda.sh (from rev 450922, cuda/trunk/cuda.sh) + PKGBUILD | 98 +++ cuda-findgllib_mk.diff | 22 ++ cuda.conf |3 + cuda.install | 11 + cuda.sh|1 5 files changed, 135 insertions(+) Copied: cuda/repos/community-testing-x86_64/PKGBUILD (from rev 450922, cuda/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2019-04-11 00:15:30 UTC (rev 450923) @@ -0,0 +1,98 @@ +# Maintainer: Sven-Hendrik Haase +# Co-Maintainer: Konstantin Gizdov +pkgname=cuda +pkgver=10.1.105 +_basever=10.1.105 +_driverver=418.39 +pkgrel=7 +pkgdesc="NVIDIA's GPU programming toolkit" +arch=('x86_64') +url="http://www.nvidia.com/object/cuda_home.html"; +license=('custom:NVIDIA') +makedepends=('patchelf') +depends=('gcc-libs' 'opencl-nvidia' 'nvidia-utils' 'gcc') +replaces=('cuda-toolkit' 'cuda-sdk') +provides=('cuda-toolkit' 'cuda-sdk') +optdepends=('gdb: for cuda-gdb' +'java-runtime: for nsight and nvvp') +options=(!strip staticlibs) +install=cuda.install +source=(https://developer.nvidia.com/compute/cuda/10.1/Prod/local_installers/cuda_${_basever}_${_driverver}_linux.run +cuda.sh +cuda.conf +cuda-findgllib_mk.diff) +sha512sums=('07cdc053989758e4cdccaad566cae7127fa79780ad85033ea52d33cc4c43c9de08e88dd087390c58b542e51703f256859cdf51a018ee57e6a412f45fb9561622' + 'ce0b8df5d918ec8429da4ab8f9dee463ac04055ee5b0beeb0386b67d765a4c892d314995776a0d695cd06bcfbaf996e4904935ddc898a9d774f6bf965d989dea' + '714d973bc79446f73bebe85306b3566fe25b554bcbcba2fcbe76709a3eca71fb5d183ab4da2d3b5e9326cb9cd8d13a93f6d4a005ea5a41f7ef8e6c6e81e06b5e' + '41d6b6cad934f135eafde610d1cbd862033977fd4416a4b6abaa47709a70bab7fcf6f8377c21329084fb9db13f2a8c8c20e93c15292d7d4a6448d70a33b23f1b') + +prepare() { + sh cuda_${_basever}_${_driverver}_linux.run --target ${srcdir} --noexec + + # Fix up samples tht use findgllib_mk + for f in builds/cuda-samples/*/*/findgllib.mk; do +patch $f cuda-findgllib_mk.diff + done +} + +package() { + mkdir -p "${pkgdir}/opt/" + + cd "${srcdir}/builds" + cp -r cuda-toolkit "${pkgdir}/opt/cuda" + cp -r cublas/include/* "${pkgdir}/opt/cuda/include/" + cp -r cublas/lib64/* "${pkgdir}/opt/cuda/lib64/" + cp -r cuda-samples "${pkgdir}/opt/cuda/samples" + cd "${pkgdir}/opt/cuda" + ln -s "${pkgdir}/opt/cuda/lib64" lib + cd "${pkgdir}/opt/cuda/nvvm" + ln -s "${pkgdir}/opt/cuda/nvvm/lib64" lib + + # Use GCC 8 + ln -s /usr/bin/gcc "${pkgdir}/opt/cuda/bin/gcc" + ln -s /usr/bin/g++ "${pkgdir}/opt/cuda/bin/g++" + + # Create soname links. + # We have to be weird about this since for some reason the ELF SONAME is incorrect or at least partially incorrect for some libs. + # Best we can do is create all symlinks and hope for the best. + # Their installer used to perform this for us but now it's all manual and I think this is what we'll be stuck with for now. + # find cuda-toolkit/targets -type f -name '*.so*' ! -path '*stubs/*' -print0 | while read -rd '' _lib; do + # _base=${_lib%.so.*} + # _current_soname=$(basename ${_lib%.*}) + # while [[ $_current_soname != $(basename $_base) ]]; do + # ln -sf ${_lib##*/} ${pkgdir}/opt/cuda/lib64/$_current_soname + # _current_soname=${_current_soname%.*} + # done + # done + + # Try to patch unmatching SONAMEs + patchlibs=(libcublasLt.so.10 libcublas.so.10 libcufft.so.10 libcufftw.so.10 + libcurand.so.10 libcusolver.so.10 libcusparse.so.10 libnppc.so.10 + libnppial.so.10 libnppicc.so.10 libnppicom.so.10 libnppidei.so.10 + libnppif.so.10 libnppig.so.10 libnppim.so.10 libnppist.so.10 + libnppisu.so.10 libnppitc.so.10 libnpps.so.10 libnvblas.so.10 + libnvgraph.so.10 libnvjpeg.so.10) + cd "${pkgdir}/opt/cuda/targets/x86_64-linux/lib" + for plib in "${patchlibs[@]}"; do +echo "copying ${plib} to ${plib}.1 version" +cp ${plib} "${plib}.1" +echo "patching ${plib}.1 SONAME to match ${plib}.1" +patchelf --set-soname "${plib}.1" "${plib}.1" + done + + # Install profile and ld.so.config files + install -Dm755 "${srcdir}/cuda.sh" "${pkgdir}/
[arch-commits] Commit in cuda/repos (6 files)
Date: Wednesday, April 10, 2019 @ 23:11:49 Author: kgizdov Revision: 450922 archrelease: copy trunk to testing-x86_64 Added: cuda/repos/testing-x86_64/ cuda/repos/testing-x86_64/PKGBUILD (from rev 450921, cuda/trunk/PKGBUILD) cuda/repos/testing-x86_64/cuda-findgllib_mk.diff (from rev 450921, cuda/trunk/cuda-findgllib_mk.diff) cuda/repos/testing-x86_64/cuda.conf (from rev 450921, cuda/trunk/cuda.conf) cuda/repos/testing-x86_64/cuda.install (from rev 450921, cuda/trunk/cuda.install) cuda/repos/testing-x86_64/cuda.sh (from rev 450921, cuda/trunk/cuda.sh) + PKGBUILD | 98 +++ cuda-findgllib_mk.diff | 22 ++ cuda.conf |3 + cuda.install | 11 + cuda.sh|1 5 files changed, 135 insertions(+) Copied: cuda/repos/testing-x86_64/PKGBUILD (from rev 450921, cuda/trunk/PKGBUILD) === --- testing-x86_64/PKGBUILD (rev 0) +++ testing-x86_64/PKGBUILD 2019-04-10 23:11:49 UTC (rev 450922) @@ -0,0 +1,98 @@ +# Maintainer: Sven-Hendrik Haase +# Co-Maintainer: Konstantin Gizdov +pkgname=cuda +pkgver=10.1.105 +_basever=10.1.105 +_driverver=418.39 +pkgrel=7 +pkgdesc="NVIDIA's GPU programming toolkit" +arch=('x86_64') +url="http://www.nvidia.com/object/cuda_home.html"; +license=('custom:NVIDIA') +makedepends=('patchelf') +depends=('gcc-libs' 'opencl-nvidia' 'nvidia-utils' 'gcc') +replaces=('cuda-toolkit' 'cuda-sdk') +provides=('cuda-toolkit' 'cuda-sdk') +optdepends=('gdb: for cuda-gdb' +'java-runtime: for nsight and nvvp') +options=(!strip staticlibs) +install=cuda.install +source=(https://developer.nvidia.com/compute/cuda/10.1/Prod/local_installers/cuda_${_basever}_${_driverver}_linux.run +cuda.sh +cuda.conf +cuda-findgllib_mk.diff) +sha512sums=('07cdc053989758e4cdccaad566cae7127fa79780ad85033ea52d33cc4c43c9de08e88dd087390c58b542e51703f256859cdf51a018ee57e6a412f45fb9561622' + 'ce0b8df5d918ec8429da4ab8f9dee463ac04055ee5b0beeb0386b67d765a4c892d314995776a0d695cd06bcfbaf996e4904935ddc898a9d774f6bf965d989dea' + '714d973bc79446f73bebe85306b3566fe25b554bcbcba2fcbe76709a3eca71fb5d183ab4da2d3b5e9326cb9cd8d13a93f6d4a005ea5a41f7ef8e6c6e81e06b5e' + '41d6b6cad934f135eafde610d1cbd862033977fd4416a4b6abaa47709a70bab7fcf6f8377c21329084fb9db13f2a8c8c20e93c15292d7d4a6448d70a33b23f1b') + +prepare() { + sh cuda_${_basever}_${_driverver}_linux.run --target ${srcdir} --noexec + + # Fix up samples tht use findgllib_mk + for f in builds/cuda-samples/*/*/findgllib.mk; do +patch $f cuda-findgllib_mk.diff + done +} + +package() { + mkdir -p "${pkgdir}/opt/" + + cd "${srcdir}/builds" + cp -r cuda-toolkit "${pkgdir}/opt/cuda" + cp -r cublas/include/* "${pkgdir}/opt/cuda/include/" + cp -r cublas/lib64/* "${pkgdir}/opt/cuda/lib64/" + cp -r cuda-samples "${pkgdir}/opt/cuda/samples" + cd "${pkgdir}/opt/cuda" + ln -s "${pkgdir}/opt/cuda/lib64" lib + cd "${pkgdir}/opt/cuda/nvvm" + ln -s "${pkgdir}/opt/cuda/nvvm/lib64" lib + + # Use GCC 8 + ln -s /usr/bin/gcc "${pkgdir}/opt/cuda/bin/gcc" + ln -s /usr/bin/g++ "${pkgdir}/opt/cuda/bin/g++" + + # Create soname links. + # We have to be weird about this since for some reason the ELF SONAME is incorrect or at least partially incorrect for some libs. + # Best we can do is create all symlinks and hope for the best. + # Their installer used to perform this for us but now it's all manual and I think this is what we'll be stuck with for now. + # find cuda-toolkit/targets -type f -name '*.so*' ! -path '*stubs/*' -print0 | while read -rd '' _lib; do + # _base=${_lib%.so.*} + # _current_soname=$(basename ${_lib%.*}) + # while [[ $_current_soname != $(basename $_base) ]]; do + # ln -sf ${_lib##*/} ${pkgdir}/opt/cuda/lib64/$_current_soname + # _current_soname=${_current_soname%.*} + # done + # done + + # Try to patch unmatching SONAMEs + patchlibs=(libcublasLt.so.10 libcublas.so.10 libcufft.so.10 libcufftw.so.10 + libcurand.so.10 libcusolver.so.10 libcusparse.so.10 libnppc.so.10 + libnppial.so.10 libnppicc.so.10 libnppicom.so.10 libnppidei.so.10 + libnppif.so.10 libnppig.so.10 libnppim.so.10 libnppist.so.10 + libnppisu.so.10 libnppitc.so.10 libnpps.so.10 libnvblas.so.10 + libnvgraph.so.10 libnvjpeg.so.10) + cd "${pkgdir}/opt/cuda/targets/x86_64-linux/lib" + for plib in "${patchlibs[@]}"; do +echo "copying ${plib} to ${plib}.1 version" +cp ${plib} "${plib}.1" +echo "patching ${plib}.1 SONAME to match ${plib}.1" +patchelf --set-soname "${plib}.1" "${plib}.1" + done + + # Install profile and ld.so.config files + install -Dm755 "${srcdir}/cuda.sh" "${pkgdir}/etc/profile.d/cuda.sh" + install -Dm644 "${srcdir}/cuda.conf" "${pkgdir}/etc/ld.so.conf.d/cuda
[arch-commits] Commit in cuda/repos (6 files)
Date: Wednesday, March 27, 2019 @ 00:03:17 Author: kgizdov Revision: 443924 archrelease: copy trunk to community-testing-x86_64 Added: cuda/repos/community-testing-x86_64/ cuda/repos/community-testing-x86_64/PKGBUILD (from rev 443922, cuda/trunk/PKGBUILD) cuda/repos/community-testing-x86_64/cuda-findgllib_mk.diff (from rev 443922, cuda/trunk/cuda-findgllib_mk.diff) cuda/repos/community-testing-x86_64/cuda.conf (from rev 443922, cuda/trunk/cuda.conf) cuda/repos/community-testing-x86_64/cuda.install (from rev 443922, cuda/trunk/cuda.install) cuda/repos/community-testing-x86_64/cuda.sh (from rev 443922, cuda/trunk/cuda.sh) + PKGBUILD | 80 +++ cuda-findgllib_mk.diff | 22 cuda.conf |3 + cuda.install | 11 ++ cuda.sh|1 5 files changed, 117 insertions(+) Copied: cuda/repos/community-testing-x86_64/PKGBUILD (from rev 443922, cuda/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2019-03-27 00:03:17 UTC (rev 443924) @@ -0,0 +1,80 @@ +# Maintainer: Sven-Hendrik Haase +# Co-Maintainer: Konstantin Gizdov +pkgname=cuda +pkgver=10.1.105 +_basever=10.1.105 +_driverver=418.39 +pkgrel=6 +pkgdesc="NVIDIA's GPU programming toolkit" +arch=('x86_64') +url="http://www.nvidia.com/object/cuda_home.html"; +license=('custom:NVIDIA') +depends=('gcc-libs' 'opencl-nvidia' 'nvidia-utils' 'gcc') +replaces=('cuda-toolkit' 'cuda-sdk') +provides=('cuda-toolkit' 'cuda-sdk') +optdepends=('gdb: for cuda-gdb' +'java-runtime: for nsight and nvvp') +options=(!strip staticlibs) +install=cuda.install +source=(https://developer.nvidia.com/compute/cuda/10.1/Prod/local_installers/cuda_${_basever}_${_driverver}_linux.run +cuda.sh +cuda.conf +cuda-findgllib_mk.diff) +sha512sums=('07cdc053989758e4cdccaad566cae7127fa79780ad85033ea52d33cc4c43c9de08e88dd087390c58b542e51703f256859cdf51a018ee57e6a412f45fb9561622' + 'ce0b8df5d918ec8429da4ab8f9dee463ac04055ee5b0beeb0386b67d765a4c892d314995776a0d695cd06bcfbaf996e4904935ddc898a9d774f6bf965d989dea' + '714d973bc79446f73bebe85306b3566fe25b554bcbcba2fcbe76709a3eca71fb5d183ab4da2d3b5e9326cb9cd8d13a93f6d4a005ea5a41f7ef8e6c6e81e06b5e' + '41d6b6cad934f135eafde610d1cbd862033977fd4416a4b6abaa47709a70bab7fcf6f8377c21329084fb9db13f2a8c8c20e93c15292d7d4a6448d70a33b23f1b') + +prepare() { + sh cuda_${_basever}_${_driverver}_linux.run --target ${srcdir} --noexec + + # Fix up samples tht use findgllib_mk + for f in builds/cuda-samples/*/*/findgllib.mk; do +patch $f cuda-findgllib_mk.diff + done +} + +package() { + mkdir -p "${pkgdir}/opt/" + + cd builds + cp -r cuda-toolkit "${pkgdir}/opt/cuda" + cp -r cublas/include/* "${pkgdir}/opt/cuda/include/" + cp -r cublas/lib64/* "${pkgdir}/opt/cuda/lib64/" + cp -r cuda-samples "${pkgdir}/opt/cuda/samples" + ln -s lib "${pkgdir}/opt/cuda/lib64" + ln -s lib "${pkgdir}/opt/cuda/nvvm/lib64" + + # Use GCC 8 + ln -s /usr/bin/gcc "${pkgdir}/opt/cuda/bin/gcc" + ln -s /usr/bin/g++ "${pkgdir}/opt/cuda/bin/g++" + + # Create soname links. + # We have to be weird about this since for some reason the ELF SONAME is incorrect or at least partially incorrect for some libs. + # Best we can do is create all symlinks and hope for the best. + # Their installer used to perform this for us but now it's all manual and I think this is what we'll be stuck with for now. + find cuda-toolkit/targets -type f -name '*.so*' ! -path '*stubs/*' -print0 | while read -rd '' _lib; do +_base=${_lib%.so.*} +_current_soname=$(basename ${_lib%.*}) +while [[ $_current_soname != $(basename $_base) ]]; do + ln -sf ${_lib##*/} ${pkgdir}/opt/cuda/lib64/$_current_soname + _current_soname=${_current_soname%.*} +done + done + + # Install profile and ld.so.config files + install -Dm755 "${srcdir}/cuda.sh" "${pkgdir}/etc/profile.d/cuda.sh" + install -Dm644 "${srcdir}/cuda.conf" "${pkgdir}/etc/ld.so.conf.d/cuda.conf" + + mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}" + ln -s /opt/cuda/doc/pdf/EULA.pdf "${pkgdir}/usr/share/licenses/${pkgname}/EULA.pdf" + + # Remove included copy of java and link to system java + rm -fr "${pkgdir}/opt/cuda/jre" + sed 's|../jre/bin/java|/usr/bin/java|g' \ +-i "${pkgdir}/opt/cuda/libnsight/nsight.ini" \ +-i "${pkgdir}/opt/cuda/libnvvp/nvvp.ini" +} + +# vim:set ts=2 sw=2 et: + Copied: cuda/repos/community-testing-x86_64/cuda-findgllib_mk.diff (from rev 443922, cuda/trunk/cuda-findgllib_mk.diff) === --- community-testing-x86_64/cuda-findgllib_mk.diff (rev 0) +++ community-testing-x86_64/cuda-findgllib_mk.diff 2019-03-27 00:03
[arch-commits] Commit in cuda/repos (6 files)
Date: Wednesday, February 27, 2019 @ 12:58:44 Author: svenstaro Revision: 436430 archrelease: copy trunk to community-testing-x86_64 Added: cuda/repos/community-testing-x86_64/ cuda/repos/community-testing-x86_64/PKGBUILD (from rev 436429, cuda/trunk/PKGBUILD) cuda/repos/community-testing-x86_64/cuda-findgllib_mk.diff (from rev 436429, cuda/trunk/cuda-findgllib_mk.diff) cuda/repos/community-testing-x86_64/cuda.conf (from rev 436429, cuda/trunk/cuda.conf) cuda/repos/community-testing-x86_64/cuda.install (from rev 436429, cuda/trunk/cuda.install) cuda/repos/community-testing-x86_64/cuda.sh (from rev 436429, cuda/trunk/cuda.sh) + PKGBUILD | 61 +++ cuda-findgllib_mk.diff | 22 cuda.conf |4 +++ cuda.install | 11 cuda.sh|1 5 files changed, 99 insertions(+) Copied: cuda/repos/community-testing-x86_64/PKGBUILD (from rev 436429, cuda/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2019-02-27 12:58:44 UTC (rev 436430) @@ -0,0 +1,61 @@ +# Maintainer: Sven-Hendrik Haase +pkgname=cuda +pkgver=10.1.105 +_basever=10.1.105 +_driverver=418.39 +pkgrel=1 +pkgdesc="NVIDIA's GPU programming toolkit" +arch=('x86_64') +url="http://www.nvidia.com/object/cuda_home.html"; +license=('custom:NVIDIA') +depends=('gcc-libs' 'opencl-nvidia' 'nvidia-utils') +replaces=('cuda-toolkit' 'cuda-sdk') +provides=('cuda-toolkit' 'cuda-sdk') +optdepends=('gdb: for cuda-gdb' +'java-runtime: for nsight and nvvp') +options=(!strip staticlibs) +install=cuda.install +source=(https://developer.nvidia.com/compute/cuda/10.1/Prod/local_installers/cuda_${_basever}_${_driverver}_linux.run +cuda.sh +cuda.conf +cuda-findgllib_mk.diff) +sha512sums=('07cdc053989758e4cdccaad566cae7127fa79780ad85033ea52d33cc4c43c9de08e88dd087390c58b542e51703f256859cdf51a018ee57e6a412f45fb9561622' + 'ce0b8df5d918ec8429da4ab8f9dee463ac04055ee5b0beeb0386b67d765a4c892d314995776a0d695cd06bcfbaf996e4904935ddc898a9d774f6bf965d989dea' + '268effce192d72d51658c1c337517f47e731fc820cdf6918cfc31e787e286a6afe42914650050e7df18a5f14beebaa1b23cc3cb0b459e8c794b74226bd2d5701' + '41d6b6cad934f135eafde610d1cbd862033977fd4416a4b6abaa47709a70bab7fcf6f8377c21329084fb9db13f2a8c8c20e93c15292d7d4a6448d70a33b23f1b') + +prepare() { + sh cuda_${_basever}_${_driverver}_linux.run --target ${srcdir} --noexec + + # Fix up samples tht use findgllib_mk + for f in builds/cuda-samples/*/*/findgllib.mk; do +patch $f cuda-findgllib_mk.diff + done +} + +package() { + mkdir -p "${pkgdir}/opt/" + + cd builds + cp -r cublas "${pkgdir}/opt/cublas" + ln -s lib64 "${pkgdir}/opt/cublas/lib" + + cp -r cuda-samples "${pkgdir}/opt/cuda-samples" + + cp -r cuda-toolkit "${pkgdir}/opt/cuda" + ln -s lib "${pkgdir}/opt/cuda/lib64" + ln -s lib "${pkgdir}/opt/cuda/nvvm/lib64" + + # Install profile and ld.so.config files + install -Dm755 "${srcdir}/cuda.sh" "${pkgdir}/etc/profile.d/cuda.sh" + install -Dm644 "${srcdir}/cuda.conf" "${pkgdir}/etc/ld.so.conf.d/cuda.conf" + + mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}" + ln -s /opt/cuda/doc/pdf/EULA.pdf "${pkgdir}/usr/share/licenses/${pkgname}/EULA.pdf" + + # Remove included copy of java and link to system java + rm -fr "${pkgdir}/opt/cuda/jre" + sed 's|../jre/bin/java|/usr/bin/java|g' \ +-i "${pkgdir}/opt/cuda/libnsight/nsight.ini" \ +-i "${pkgdir}/opt/cuda/libnvvp/nvvp.ini" +} Copied: cuda/repos/community-testing-x86_64/cuda-findgllib_mk.diff (from rev 436429, cuda/trunk/cuda-findgllib_mk.diff) === --- community-testing-x86_64/cuda-findgllib_mk.diff (rev 0) +++ community-testing-x86_64/cuda-findgllib_mk.diff 2019-02-27 12:58:44 UTC (rev 436430) @@ -0,0 +1,22 @@ +--- ./opt/cuda/samples/3_Imaging/bicubicTexture/findgllib.mk 2017-09-28 09:07:30.310563874 +0200 findgllib.mk 2017-09-28 14:40:50.638930881 +0200 +@@ -60,6 +60,7 @@ + RHEL = $(shell echo $(DISTRO) | grep -i 'red\|rhel' >/dev/null 2>&1; echo $$?) + CENTOS = $(shell echo $(DISTRO) | grep -i centos >/dev/null 2>&1; echo $$?) + SUSE = $(shell echo $(DISTRO) | grep -i 'suse\|sles' >/dev/null 2>&1; echo $$?) ++ARCHLX = $(shell echo $(DISTRO) | grep -i arch >/dev/null 2>&1; echo $$?) + ifeq ("$(UBUNTU)","0") + ifeq ($(HOST_ARCH)-$(TARGET_ARCH),x86_64-armv7l) + GLPATH := /usr/arm-linux-gnueabihf/lib +@@ -100,6 +101,11 @@ + GLPATH?= /usr/lib64/nvidia + GLLINK?= -L/usr/lib64/nvidia + DFLT_PATH ?= /usr/lib64 ++endif ++ifeq ("$(ARCHLX)","0") ++ GLPATH?= /usr/lib64/nvidia ++
[arch-commits] Commit in cuda/repos (6 files)
Date: Monday, September 24, 2018 @ 05:23:23 Author: svenstaro Revision: 384305 archrelease: copy trunk to community-testing-x86_64 Added: cuda/repos/community-testing-x86_64/ cuda/repos/community-testing-x86_64/PKGBUILD (from rev 384304, cuda/trunk/PKGBUILD) cuda/repos/community-testing-x86_64/cuda-findgllib_mk.diff (from rev 384304, cuda/trunk/cuda-findgllib_mk.diff) cuda/repos/community-testing-x86_64/cuda.conf (from rev 384304, cuda/trunk/cuda.conf) cuda/repos/community-testing-x86_64/cuda.install (from rev 384304, cuda/trunk/cuda.install) cuda/repos/community-testing-x86_64/cuda.sh (from rev 384304, cuda/trunk/cuda.sh) + PKGBUILD | 93 +++ cuda-findgllib_mk.diff | 22 +++ cuda.conf |5 ++ cuda.install | 11 + cuda.sh|1 5 files changed, 132 insertions(+) Copied: cuda/repos/community-testing-x86_64/PKGBUILD (from rev 384304, cuda/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2018-09-24 05:23:23 UTC (rev 384305) @@ -0,0 +1,93 @@ +# Maintainer: Sven-Hendrik Haase +pkgname=cuda +pkgver=10.0.130 +_basever=10.0.130 +_driverver=410.48 +pkgrel=1 +pkgdesc="NVIDIA's GPU programming toolkit" +arch=('x86_64') +url="http://www.nvidia.com/object/cuda_home.html"; +license=('custom:NVIDIA') +depends=('gcc7-libs' 'opencl-nvidia' 'nvidia-utils' 'gcc7') +replaces=('cuda-toolkit' 'cuda-sdk') +provides=('cuda-toolkit' 'cuda-sdk') +optdepends=('gdb: for cuda-gdb' +'java-runtime: for nsight and nvvp') +options=(!strip staticlibs) +install=cuda.install +source=(https://developer.nvidia.com/compute/cuda/10.0/Prod/local_installers/cuda_${_basever}_${_driverver}_linux +cuda.sh +cuda.conf +cuda-findgllib_mk.diff) +sha512sums=('409ea4cc6aa0fe7063450e77c3b67b9b41aab1bbe556db673fb1a80610b20bd52e2020bf94034a92ab68c721d3d5739500bae4bd7a3558b2d8e73730a3b4ea25' + 'ce0b8df5d918ec8429da4ab8f9dee463ac04055ee5b0beeb0386b67d765a4c892d314995776a0d695cd06bcfbaf996e4904935ddc898a9d774f6bf965d989dea' + '0f1f5bed19f9eaf66b53e32d2e163a40d03e11565b3d5d9f5220b6904bb510fd9548e0dd8a33ee84e729845333158f9fed078584e80a8361ca434b1410624473' + '41d6b6cad934f135eafde610d1cbd862033977fd4416a4b6abaa47709a70bab7fcf6f8377c21329084fb9db13f2a8c8c20e93c15292d7d4a6448d70a33b23f1b') + +prepare() { + sh cuda_${_basever}_${_driverver}_linux --extract=${srcdir} + ./cuda-*.run --noexec --keep + ./cuda-samples*.run --noexec --keep + + # path hacks + + # 1rd sed line: sets right path to install man files + # 2rd sed line: hack to lie installer, now detect launch script by root + # 3rd sed line: sets right path in .desktop files and other .desktop stuff (warnings by desktop-file-validate) + sed -e "s|/usr/share|${srcdir}/../pkg/${pkgname}/usr/share|g" \ + -e 's|can_add_for_all_users;|1;|g' \ + -e 's|=\\"$prefix\\\"|=/opt/cuda|g' -e 's|Terminal=No|Terminal=false|g' -e 's|ParallelComputing|ParallelComputing;|g' \ + -i pkg/install-linux.pl + + # set right path in Samples Makefiles + sed 's|\$cudaprefix\\|\\/opt\\/cuda\\|g' -i pkg/install-sdk-linux.pl + + # use python2 + find pkg -name '*.py' | xargs sed -i -e 's|env python|env python2|g' -e 's|bin/python|bin/python2|g' + + # Fix up samples tht use findgllib_mk + for f in pkg/samples/*/*/findgllib.mk; do +patch $f cuda-findgllib_mk.diff + done +} + +package() { + cd pkg + export PERL5LIB=. + perl install-linux.pl -prefix="${pkgdir}/opt/cuda" -noprompt + perl install-sdk-linux.pl -cudaprefix="${pkgdir}/opt/cuda" -prefix="${pkgdir}/opt/cuda/samples" -noprompt + + # Hack we need because of glibc 2.26 (https://bugs.archlinux.org/task/55580) + # without which we couldn't compile anything at all. + # Super dirty hack. I really hope it doesn't break other stuff! + # Hopefully we can remove this for later version of cuda. + sed -i "1 i#define _BITS_FLOATN_H" "${pkgdir}/opt/cuda/include/host_defines.h" + + # Needs gcc7 + ln -s /usr/bin/gcc-7 "${pkgdir}/opt/cuda/bin/gcc" + ln -s /usr/bin/g++-7 "${pkgdir}/opt/cuda/bin/g++" + + # Install profile and ld.so.config files + install -Dm755 "${srcdir}/cuda.sh" "${pkgdir}/etc/profile.d/cuda.sh" + install -Dm644 "${srcdir}/cuda.conf" "${pkgdir}/etc/ld.so.conf.d/cuda.conf" + + mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}" + ln -s /opt/cuda/doc/pdf/EULA.pdf "${pkgdir}/usr/share/licenses/${pkgname}/EULA.pdf" + + # Remove redundant man and samples + rm -fr "${pkgdir}/opt/cuda/doc/man" + rm -fr "${pkgdir}/opt/cuda/cuda-samples" + rm -fr "${pkgdir}/usr/share/man/man3/deprecated.3"* + + # Remove included copy of java and link to system java + rm -fr "${pkgdir}/opt/cuda/jre" + sed 's|../jre/bin/java|/usr/bin/java|g' \ +-i "$
[arch-commits] Commit in cuda/repos (6 files)
Date: Thursday, May 17, 2018 @ 22:51:54 Author: svenstaro Revision: 324086 archrelease: copy trunk to community-testing-x86_64 Added: cuda/repos/community-testing-x86_64/ cuda/repos/community-testing-x86_64/PKGBUILD (from rev 324085, cuda/trunk/PKGBUILD) cuda/repos/community-testing-x86_64/cuda-findgllib_mk.diff (from rev 324085, cuda/trunk/cuda-findgllib_mk.diff) cuda/repos/community-testing-x86_64/cuda.conf (from rev 324085, cuda/trunk/cuda.conf) cuda/repos/community-testing-x86_64/cuda.install (from rev 324085, cuda/trunk/cuda.install) cuda/repos/community-testing-x86_64/cuda.sh (from rev 324085, cuda/trunk/cuda.sh) + PKGBUILD | 96 +++ cuda-findgllib_mk.diff | 22 ++ cuda.conf |4 + cuda.install | 11 + cuda.sh|1 5 files changed, 134 insertions(+) Copied: cuda/repos/community-testing-x86_64/PKGBUILD (from rev 324085, cuda/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2018-05-17 22:51:54 UTC (rev 324086) @@ -0,0 +1,96 @@ +# $Id: PKGBUILD 69719 2012-04-23 02:56:20Z svenstaro $ +# Maintainer: Sven-Hendrik Haase +pkgname=cuda +pkgver=9.2.88.1 +_basever=9.2.88 +pkgrel=1 +pkgdesc="NVIDIA's GPU programming toolkit" +arch=('x86_64') +url="http://www.nvidia.com/object/cuda_home.html"; +license=('custom:NVIDIA') +depends=('gcc-libs' 'opencl-nvidia' 'nvidia-utils' 'gcc54') +replaces=('cuda-toolkit' 'cuda-sdk') +provides=('cuda-toolkit' 'cuda-sdk') +optdepends=('gdb: for cuda-gdb' +'java-runtime: for nsight and nvvp') +options=(!strip staticlibs) +install=cuda.install +source=(https://developer.nvidia.com/compute/cuda/9.2/Prod/local_installers/cuda_${_basever}_396.26_linux + https://developer.nvidia.com/compute/cuda/9.2/Prod/patches/1/cuda_9.2.88.1_linux +cuda.sh +cuda.conf +cuda-findgllib_mk.diff) +sha512sums=('2d0d87926e11a1b21d6d3377138753df458a53ba9539d8399f9f252e0784cb41e2c63a5c724ca81ded82b9657b97fda51d812b467b0827e7d361aa2ad73b2dba' + 'd43bddb2affbc66133aab69750e8c95fd4e86bf6357c50b580301dda1819940c33e1cb442f08b25784c82d6e4de1ca6f5b474e51b1396253e4a4e6d820294ff7' + 'ce0b8df5d918ec8429da4ab8f9dee463ac04055ee5b0beeb0386b67d765a4c892d314995776a0d695cd06bcfbaf996e4904935ddc898a9d774f6bf965d989dea' + '66bd93ecab7e1aa07218c3dd1c96e460f63ed4ac47e853ecb313c78a58e5425c8a5772f1c7f73d696bf5f93fc3e556a046a4ed955a53d900976ac525abd1f518' + '6e9a15c73849e6400b0289ed9d6e9d3b7f100712713efcb7bbf4921f39fe671cd9fd3958e735c0da3a44f9afdd2aca94dbc63b564970a0dcacba599b570aca0f') + +prepare() { + sh cuda_${_basever}_396.26_linux --extract=${srcdir} + ./cuda-*.run --noexec --keep + ./cuda-samples*.run --noexec --keep + + # path hacks + + # 1rd sed line: sets right path to install man files + # 2rd sed line: hack to lie installer, now detect launch script by root + # 3rd sed line: sets right path in .desktop files and other .desktop stuff (warnings by desktop-file-validate) + sed -e "s|/usr/share|${srcdir}/../pkg/${pkgname}/usr/share|g" \ + -e 's|can_add_for_all_users;|1;|g' \ + -e 's|=\\"$prefix\\\"|=/opt/cuda|g' -e 's|Terminal=No|Terminal=false|g' -e 's|ParallelComputing|ParallelComputing;|g' \ + -i pkg/install-linux.pl + + # set right path in Samples Makefiles + sed 's|\$cudaprefix\\|\\/opt\\/cuda\\|g' -i pkg/install-sdk-linux.pl + + # use python2 + find pkg -name '*.py' | xargs sed -i -e 's|env python|env python2|g' -e 's|bin/python|bin/python2|g' + + # Fix up samples tht use findgllib_mk + for f in pkg/samples/*/*/findgllib.mk; do +patch $f cuda-findgllib_mk.diff + done +} + +package() { + cd pkg + export PERL5LIB=. + perl install-linux.pl -prefix="${pkgdir}/opt/cuda" -noprompt + perl install-sdk-linux.pl -cudaprefix="${pkgdir}/opt/cuda" -prefix="${pkgdir}/opt/cuda/samples" -noprompt + sh "${srcdir}"/cuda_9.2.88.1_linux --silent --accept-eula --installdir="${pkgdir}/opt/cuda" + + # Hack we need because of glibc 2.26 (https://bugs.archlinux.org/task/55580) + # without which we couldn't compile anything at all. + # Super dirty hack. I really hope it doesn't break other stuff! + # Hopefully we can remove this for later version of cuda. + sed -i "1 i#define _BITS_FLOATN_H" "${pkgdir}/opt/cuda/include/host_defines.h" + + # Needs gcc5 + ln -s /usr/bin/gcc-5 "${pkgdir}/opt/cuda/bin/gcc" + ln -s /usr/bin/g++-5 "${pkgdir}/opt/cuda/bin/g++" + + # Install profile and ld.so.config files + install -Dm755 "${srcdir}/cuda.sh" "${pkgdir}/etc/profile.d/cuda.sh" + install -Dm644 "${srcdir}/cuda.conf" "${pkgdir}/etc/ld.so.conf.d/cuda.conf" + + mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}" + ln -s /opt/cuda/doc/pdf/EULA.pdf "${pkgdir}/usr/share/licenses/${pk
[arch-commits] Commit in cuda/repos (6 files)
Date: Sunday, May 6, 2018 @ 21:40:24 Author: svenstaro Revision: 319046 archrelease: copy trunk to community-staging-x86_64 Added: cuda/repos/community-staging-x86_64/ cuda/repos/community-staging-x86_64/PKGBUILD (from rev 319045, cuda/trunk/PKGBUILD) cuda/repos/community-staging-x86_64/cuda-findgllib_mk.diff (from rev 319045, cuda/trunk/cuda-findgllib_mk.diff) cuda/repos/community-staging-x86_64/cuda.conf (from rev 319045, cuda/trunk/cuda.conf) cuda/repos/community-staging-x86_64/cuda.install (from rev 319045, cuda/trunk/cuda.install) cuda/repos/community-staging-x86_64/cuda.sh (from rev 319045, cuda/trunk/cuda.sh) + PKGBUILD | 102 +++ cuda-findgllib_mk.diff | 22 ++ cuda.conf |4 + cuda.install | 11 + cuda.sh|1 5 files changed, 140 insertions(+) Copied: cuda/repos/community-staging-x86_64/PKGBUILD (from rev 319045, cuda/trunk/PKGBUILD) === --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2018-05-06 21:40:24 UTC (rev 319046) @@ -0,0 +1,102 @@ +# $Id: PKGBUILD 69719 2012-04-23 02:56:20Z svenstaro $ +# Maintainer: Sven-Hendrik Haase +pkgname=cuda +pkgver=9.1.85.3 +_basever=9.1.85 +pkgrel=5 +pkgdesc="NVIDIA's GPU programming toolkit" +arch=('x86_64') +url="http://www.nvidia.com/object/cuda_home.html"; +license=('custom:NVIDIA') +depends=('gcc-libs' 'opencl-nvidia' 'gcc54' 'nvidia-utils') +replaces=('cuda-toolkit' 'cuda-sdk') +provides=('cuda-toolkit' 'cuda-sdk') +optdepends=('gdb: for cuda-gdb' +'java-runtime: for nsight and nvvp') +options=(!strip staticlibs) +install=cuda.install +source=(https://developer.nvidia.com/compute/cuda/9.1/Prod/local_installers/cuda_${_basever}_387.26_linux + https://developer.nvidia.com/compute/cuda/9.1/Prod/patches/1/cuda_9.1.85.1_linux + https://developer.nvidia.com/compute/cuda/9.1/Prod/patches/2/cuda_9.1.85.2_linux + https://developer.nvidia.com/compute/cuda/9.1/Prod/patches/3/cuda_9.1.85.3_linux +cuda.sh +cuda.conf +cuda-findgllib_mk.diff) +sha512sums=('492a5fa58fc93ac718ca093f24bb5e74dd2586338c42f2e11e328c7f16756e3511a1c555b12cb1990bb782d0d1600976f4c9e5b3d4857e371b0431daf06b2827' + 'a29099ffad3470b8fe3a64c2ad675fd7950bd63dcf722dd19083c7daba55be90755456b937347ae3323b50d797a138f81daefddfd37228a6f75b2341dbd861fa' + '62644aa8219ff5ce7428033e279ebc05d96596c3c2b9d27f783aff90f41e38e0341578cc1b33e8d6d64c59a544c3e6174e77c5d046de9b12261d1f7e73b259c5' + 'dcafdd55cbc6d9063f6dc2001c0365f1c1279254378d4d0231039be78b9dec5d6078b3500fa49457fbbf0fad8a17ef0d18c7fa21551b80dc99a16f2ae2a4110a' + 'ce0b8df5d918ec8429da4ab8f9dee463ac04055ee5b0beeb0386b67d765a4c892d314995776a0d695cd06bcfbaf996e4904935ddc898a9d774f6bf965d989dea' + '66bd93ecab7e1aa07218c3dd1c96e460f63ed4ac47e853ecb313c78a58e5425c8a5772f1c7f73d696bf5f93fc3e556a046a4ed955a53d900976ac525abd1f518' + '6e9a15c73849e6400b0289ed9d6e9d3b7f100712713efcb7bbf4921f39fe671cd9fd3958e735c0da3a44f9afdd2aca94dbc63b564970a0dcacba599b570aca0f') + +prepare() { + sh cuda_${_basever}_387.26_linux --extract=${srcdir} + ./cuda-*.run --noexec --keep + ./cuda-samples*.run --noexec --keep + + # path hacks + + # 1rd sed line: sets right path to install man files + # 2rd sed line: hack to lie installer, now detect launch script by root + # 3rd sed line: sets right path in .desktop files and other .desktop stuff (warnings by desktop-file-validate) + sed -e "s|/usr/share|${srcdir}/../pkg/${pkgname}/usr/share|g" \ + -e 's|can_add_for_all_users;|1;|g' \ + -e 's|=\\"$prefix\\\"|=/opt/cuda|g' -e 's|Terminal=No|Terminal=false|g' -e 's|ParallelComputing|ParallelComputing;|g' \ + -i pkg/install-linux.pl + + # set right path in Samples Makefiles + sed 's|\$cudaprefix\\|\\/opt\\/cuda\\|g' -i pkg/install-sdk-linux.pl + + # use python2 + find pkg -name '*.py' | xargs sed -i -e 's|env python|env python2|g' -e 's|bin/python|bin/python2|g' + + # Fix up samples tht use findgllib_mk + for f in pkg/samples/*/*/findgllib.mk; do +patch $f cuda-findgllib_mk.diff + done +} + +package() { + cd pkg + export PERL5LIB=. + perl install-linux.pl -prefix="${pkgdir}/opt/cuda" -noprompt + perl install-sdk-linux.pl -cudaprefix="${pkgdir}/opt/cuda" -prefix="${pkgdir}/opt/cuda/samples" -noprompt + sh "${srcdir}"/cuda_9.1.85.1_linux --silent --accept-eula --installdir="${pkgdir}/opt/cuda" + sh "${srcdir}"/cuda_9.1.85.2_linux --silent --accept-eula --installdir="${pkgdir}/opt/cuda" + sh "${srcdir}"/cuda_9.1.85.3_linux --silent --accept-eula --installdir="${pkgdir}/opt/cuda" + + # Hack we need because of glibc 2.26 (https://bugs.archlinux.org/task/55580) + # without which we couldn't compile anything at al
[arch-commits] Commit in cuda/repos (6 files)
Date: Wednesday, December 13, 2017 @ 05:33:04 Author: svenstaro Revision: 274116 archrelease: copy trunk to community-testing-x86_64 Added: cuda/repos/community-testing-x86_64/ cuda/repos/community-testing-x86_64/PKGBUILD (from rev 274115, cuda/trunk/PKGBUILD) cuda/repos/community-testing-x86_64/cuda-findgllib_mk.diff (from rev 274115, cuda/trunk/cuda-findgllib_mk.diff) cuda/repos/community-testing-x86_64/cuda.conf (from rev 274115, cuda/trunk/cuda.conf) cuda/repos/community-testing-x86_64/cuda.install (from rev 274115, cuda/trunk/cuda.install) cuda/repos/community-testing-x86_64/cuda.sh (from rev 274115, cuda/trunk/cuda.sh) + PKGBUILD | 92 +++ cuda-findgllib_mk.diff | 22 +++ cuda.conf |4 ++ cuda.install | 11 + cuda.sh|1 5 files changed, 130 insertions(+) Copied: cuda/repos/community-testing-x86_64/PKGBUILD (from rev 274115, cuda/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2017-12-13 05:33:04 UTC (rev 274116) @@ -0,0 +1,92 @@ +# $Id: PKGBUILD 69719 2012-04-23 02:56:20Z svenstaro $ +# Maintainer: Sven-Hendrik Haase +pkgname=cuda +pkgver=9.1.85 +pkgrel=1 +pkgdesc="NVIDIA's GPU programming toolkit" +arch=('x86_64') +url="http://www.nvidia.com/object/cuda_home.html"; +license=('custom:NVIDIA') +depends=('gcc-libs' 'opencl-nvidia' 'gcc6') +replaces=('cuda-toolkit' 'cuda-sdk') +provides=('cuda-toolkit' 'cuda-sdk') +optdepends=('gdb: for cuda-gdb' +'java-runtime: for nsight and nvvp') +options=(!strip staticlibs) +install=cuda.install +source=(https://developer.nvidia.com/compute/cuda/9.1/Prod/local_installers/cuda_${pkgver}_387.26_linux +cuda.sh +cuda.conf +cuda-findgllib_mk.diff) +sha512sums=('492a5fa58fc93ac718ca093f24bb5e74dd2586338c42f2e11e328c7f16756e3511a1c555b12cb1990bb782d0d1600976f4c9e5b3d4857e371b0431daf06b2827' + 'ce0b8df5d918ec8429da4ab8f9dee463ac04055ee5b0beeb0386b67d765a4c892d314995776a0d695cd06bcfbaf996e4904935ddc898a9d774f6bf965d989dea' + '66bd93ecab7e1aa07218c3dd1c96e460f63ed4ac47e853ecb313c78a58e5425c8a5772f1c7f73d696bf5f93fc3e556a046a4ed955a53d900976ac525abd1f518' + '6e9a15c73849e6400b0289ed9d6e9d3b7f100712713efcb7bbf4921f39fe671cd9fd3958e735c0da3a44f9afdd2aca94dbc63b564970a0dcacba599b570aca0f') + +prepare() { + sh cuda_${pkgver}_387.26_linux --extract=${srcdir} + ./cuda-*.run --noexec --keep + ./cuda-samples*.run --noexec --keep + + # path hacks + + # 1rd sed line: sets right path to install man files + # 2rd sed line: hack to lie installer, now detect launch script by root + # 3rd sed line: sets right path in .desktop files and other .desktop stuff (warnings by desktop-file-validate) + sed -e "s|/usr/share|${srcdir}/../pkg/${pkgname}/usr/share|g" \ + -e 's|can_add_for_all_users;|1;|g' \ + -e 's|=\\"$prefix\\\"|=/opt/cuda|g' -e 's|Terminal=No|Terminal=false|g' -e 's|ParallelComputing|ParallelComputing;|g' \ + -i pkg/install-linux.pl + + # set right path in Samples Makefiles + sed 's|\$cudaprefix\\|\\/opt\\/cuda\\|g' -i pkg/install-sdk-linux.pl + + # use python2 + find pkg -name '*.py' | xargs sed -i -e 's|env python|env python2|g' -e 's|bin/python|bin/python2|g' + + # Fix up samples tht use findgllib_mk + for f in pkg/samples/*/*/findgllib.mk; do +patch $f cuda-findgllib_mk.diff + done +} + +package() { + cd pkg + export PERL5LIB=. + perl install-linux.pl -prefix="${pkgdir}/opt/cuda" -noprompt + perl install-sdk-linux.pl -cudaprefix="${pkgdir}/opt/cuda" -prefix="${pkgdir}/opt/cuda/samples" -noprompt + + # Hack we need because of glibc 2.26 (https://bugs.archlinux.org/task/55580) + # without which we couldn't compile anything at all. + # Super dirty hack. I really hope it doesn't break other stuff! + # Hopefully we can remove this for later version of cuda. + sed -i "1 i#define _BITS_FLOATN_H" "${pkgdir}/opt/cuda/include/host_defines.h" + + # Needs gcc6 + ln -s /usr/bin/gcc-6 "${pkgdir}/opt/cuda/bin/gcc" + ln -s /usr/bin/g++-6 "${pkgdir}/opt/cuda/bin/g++" + + # Install profile and ld.so.config files + install -Dm755 "${srcdir}/cuda.sh" "${pkgdir}/etc/profile.d/cuda.sh" + install -Dm644 "${srcdir}/cuda.conf" "${pkgdir}/etc/ld.so.conf.d/cuda.conf" + + mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}" + ln -s /opt/cuda/doc/pdf/EULA.pdf "${pkgdir}/usr/share/licenses/${pkgname}/EULA.pdf" + + # Remove redundant man and samples + rm -fr "${pkgdir}/opt/cuda/doc/man" + rm -fr "${pkgdir}/opt/cuda/cuda-samples" + rm -fr "${pkgdir}/usr/share/man/man3/deprecated.3"* + + # Remove included copy of java and link to system java + rm -fr "${pkgdir}/opt/cuda/jre" + sed 's|../jre/bin/java|/usr/bin/java|g' \ +-i "${pkgdir}/opt/cuda
[arch-commits] Commit in cuda/repos (6 files)
Date: Thursday, September 28, 2017 @ 13:11:42 Author: svenstaro Revision: 260784 archrelease: copy trunk to community-testing-x86_64 Added: cuda/repos/community-testing-x86_64/ cuda/repos/community-testing-x86_64/PKGBUILD (from rev 260783, cuda/trunk/PKGBUILD) cuda/repos/community-testing-x86_64/cuda-findgllib_mk.diff (from rev 260783, cuda/trunk/cuda-findgllib_mk.diff) cuda/repos/community-testing-x86_64/cuda.conf (from rev 260783, cuda/trunk/cuda.conf) cuda/repos/community-testing-x86_64/cuda.install (from rev 260783, cuda/trunk/cuda.install) cuda/repos/community-testing-x86_64/cuda.sh (from rev 260783, cuda/trunk/cuda.sh) + PKGBUILD | 91 +++ cuda-findgllib_mk.diff | 22 +++ cuda.conf |4 ++ cuda.install | 11 + cuda.sh|1 5 files changed, 129 insertions(+) Copied: cuda/repos/community-testing-x86_64/PKGBUILD (from rev 260783, cuda/trunk/PKGBUILD) === --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2017-09-28 13:11:42 UTC (rev 260784) @@ -0,0 +1,91 @@ +# $Id: PKGBUILD 69719 2012-04-23 02:56:20Z svenstaro $ +# Maintainer: Sven-Hendrik Haase +pkgname=cuda +pkgver=9.0.176 +pkgrel=1 +pkgdesc="NVIDIA's GPU programming toolkit" +arch=('x86_64') +url="http://www.nvidia.com/object/cuda_home.html"; +license=('custom:NVIDIA') +depends=('gcc-libs' 'opencl-nvidia' 'gcc5') +replaces=('cuda-toolkit' 'cuda-sdk') +provides=('cuda-toolkit' 'cuda-sdk') +optdepends=('gdb: for cuda-gdb') +options=(!strip staticlibs) +install=cuda.install +source=(https://developer.nvidia.com/compute/cuda/9.0/Prod/local_installers/cuda_${pkgver}_384.81_linux-run +cuda.sh +cuda.conf +cuda-findgllib_mk.diff) +sha512sums=('00e24638c02d049c575732dee5237db21f7c451b606f37cf95e44e89d47d0cb055255e9f70dc013298c9e0d224147f239488558904556b68572e3f31935489a9' + 'ce0b8df5d918ec8429da4ab8f9dee463ac04055ee5b0beeb0386b67d765a4c892d314995776a0d695cd06bcfbaf996e4904935ddc898a9d774f6bf965d989dea' + '66bd93ecab7e1aa07218c3dd1c96e460f63ed4ac47e853ecb313c78a58e5425c8a5772f1c7f73d696bf5f93fc3e556a046a4ed955a53d900976ac525abd1f518' + '6e9a15c73849e6400b0289ed9d6e9d3b7f100712713efcb7bbf4921f39fe671cd9fd3958e735c0da3a44f9afdd2aca94dbc63b564970a0dcacba599b570aca0f') + +prepare() { + sh cuda_${pkgver}_384.81_linux-run -extract=${srcdir} + ./cuda-*.run --noexec --keep + ./cuda-samples*.run --noexec --keep + + # path hacks + + # 1rd sed line: sets right path to install man files + # 2rd sed line: hack to lie installer, now detect launch script by root + # 3rd sed line: sets right path in .desktop files and other .desktop stuff (warnings by desktop-file-validate) + sed -e "s|/usr/share|${srcdir}/../pkg/${pkgname}/usr/share|g" \ + -e 's|can_add_for_all_users;|1;|g' \ + -e 's|=\\"$prefix\\\"|=/opt/cuda|g' -e 's|Terminal=No|Terminal=false|g' -e 's|ParallelComputing|ParallelComputing;|g' \ + -i pkg/install-linux.pl + + # set right path in Samples Makefiles + sed 's|\$cudaprefix\\|\\/opt\\/cuda\\|g' -i pkg/install-sdk-linux.pl + + # use python2 + find pkg -name '*.py' | xargs sed -i -e 's|env python|env python2|g' -e 's|bin/python|bin/python2|g' + + # Fix up samples tht use findgllib_mk + for f in pkg/samples/*/*/findgllib.mk; do +patch $f cuda-findgllib_mk.diff + done +} + +package() { + cd pkg + export PERL5LIB=. + perl install-linux.pl -prefix="${pkgdir}/opt/cuda" -noprompt + perl install-sdk-linux.pl -cudaprefix="${pkgdir}/opt/cuda" -prefix="${pkgdir}/opt/cuda/samples" -noprompt + + # Hack we need because of glibc 2.26 (https://bugs.archlinux.org/task/55580) + # without which we couldn't compile anything at all. + # Super dirty hack. I really hope it doesn't break other stuff! + # Probably we can remove this for cuda 9. + sed -i "1 i#define _BITS_FLOATN_H" "${pkgdir}/opt/cuda/include/host_defines.h" + + # Needs Gcc 5.x.x + ln -s /usr/bin/gcc-5 "${pkgdir}/opt/cuda/bin/gcc" + ln -s /usr/bin/g++-5 "${pkgdir}/opt/cuda/bin/g++" + + # Install profile and ld.so.config files + install -Dm755 "${srcdir}/cuda.sh" "${pkgdir}/etc/profile.d/cuda.sh" + install -Dm644 "${srcdir}/cuda.conf" "${pkgdir}/etc/ld.so.conf.d/cuda.conf" + + mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}" + ln -s /opt/cuda/doc/pdf/EULA.pdf "${pkgdir}/usr/share/licenses/${pkgname}/EULA.pdf" + + # Remove redundant man and samples + rm -fr "${pkgdir}/opt/cuda/doc/man" + rm -fr "${pkgdir}/opt/cuda/cuda-samples" + rm -fr "${pkgdir}/usr/share/man/man3/deprecated.3"* + + # Remove included copy of java and link to system java + rm -fr "${pkgdir}/opt/cuda/jre" + sed 's|../jre/bin/java|/usr/bin/java|g' \ +-i "${pkgdir}/opt/cuda/libnsight/nsight.ini" \ +-i "${pkgdir}/opt/cuda
[arch-commits] Commit in cuda/repos (6 files)
Date: Wednesday, September 13, 2017 @ 10:50:07 Author: svenstaro Revision: 257411 archrelease: copy trunk to community-staging-x86_64 Added: cuda/repos/community-staging-x86_64/ cuda/repos/community-staging-x86_64/PKGBUILD (from rev 257410, cuda/trunk/PKGBUILD) cuda/repos/community-staging-x86_64/cuda-findgllib_mk.diff (from rev 257410, cuda/trunk/cuda-findgllib_mk.diff) cuda/repos/community-staging-x86_64/cuda.conf (from rev 257410, cuda/trunk/cuda.conf) cuda/repos/community-staging-x86_64/cuda.install (from rev 257410, cuda/trunk/cuda.install) cuda/repos/community-staging-x86_64/cuda.sh (from rev 257410, cuda/trunk/cuda.sh) + PKGBUILD | 91 +++ cuda-findgllib_mk.diff | 22 +++ cuda.conf |4 ++ cuda.install | 11 + cuda.sh|1 5 files changed, 129 insertions(+) Copied: cuda/repos/community-staging-x86_64/PKGBUILD (from rev 257410, cuda/trunk/PKGBUILD) === --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2017-09-13 10:50:07 UTC (rev 257411) @@ -0,0 +1,91 @@ +# $Id: PKGBUILD 69719 2012-04-23 02:56:20Z svenstaro $ +# Maintainer: Sven-Hendrik Haase +pkgname=cuda +pkgver=8.0.61 +pkgrel=3 +pkgdesc="NVIDIA's GPU programming toolkit" +arch=('x86_64') +url="http://www.nvidia.com/object/cuda_home.html"; +license=('custom:NVIDIA') +depends=('gcc-libs' 'opencl-nvidia' 'gcc5') +replaces=('cuda-toolkit' 'cuda-sdk') +provides=('cuda-toolkit' 'cuda-sdk') +optdepends=('gdb: for cuda-gdb') +options=(!strip staticlibs) +install=cuda.install +source=(https://developer.nvidia.com/compute/cuda/8.0/Prod2/local_installers/cuda_${pkgver}_375.26_linux-run +cuda.sh +cuda.conf +cuda-findgllib_mk.diff) +sha512sums=('d22303719a9feff64f95bf6a966f1caa2bf0cf8c955e475ce08ce54faa5e098d336c2db223ef0185c1f23b9c52b7d2f81a63515485219cfc016d72bda979248b' + 'ce0b8df5d918ec8429da4ab8f9dee463ac04055ee5b0beeb0386b67d765a4c892d314995776a0d695cd06bcfbaf996e4904935ddc898a9d774f6bf965d989dea' + '66bd93ecab7e1aa07218c3dd1c96e460f63ed4ac47e853ecb313c78a58e5425c8a5772f1c7f73d696bf5f93fc3e556a046a4ed955a53d900976ac525abd1f518' + '89cbe7ce38039188fa0a0b9554fb938e95aa0ced5bc65479c1bdb6f8e063530a8a7002dbf7c287a8d22aea449014c4502e487fa07ea1efa110db4def02819dfe') + +prepare() { + sh cuda_${pkgver}_375.26_linux-run -extract=${srcdir} + ./cuda-linux64-rel-*.run --noexec --keep + ./cuda-samples-linux-*.run --noexec --keep + + # path hacks + + # 1rd sed line: sets right path to install man files + # 2rd sed line: hack to lie installer, now detect launch script by root + # 3rd sed line: sets right path in .desktop files and other .desktop stuff (warnings by desktop-file-validate) + sed -e "s|/usr/share|${srcdir}/../pkg/${pkgname}/usr/share|g" \ + -e 's|can_add_for_all_users;|1;|g' \ + -e 's|=\\"$prefix\\\"|=/opt/cuda|g' -e 's|Terminal=No|Terminal=false|g' -e 's|ParallelComputing|ParallelComputing;|g' \ + -i pkg/install-linux.pl + + # set right path in Samples Makefiles + sed 's|\$cudaprefix\\|\\/opt\\/cuda\\|g' -i pkg/install-sdk-linux.pl + + # use python2 + find pkg -name '*.py' | xargs sed -i -e 's|env python|env python2|g' -e 's|bin/python|bin/python2|g' + + # Fix up samples tht use findgllib_mk + for f in pkg/samples/*/*/findgllib.mk; do +patch $f cuda-findgllib_mk.diff + done +} + +package() { + cd pkg + export PERL5LIB=. + perl install-linux.pl -prefix="${pkgdir}/opt/cuda" -noprompt + perl install-sdk-linux.pl -cudaprefix="${pkgdir}/opt/cuda" -prefix="${pkgdir}/opt/cuda/samples" -noprompt + + # Hack we need because of glibc 2.26 (https://bugs.archlinux.org/task/55580) + # without which we couldn't compile anything at all. + # Super dirty hack. I really hope it doesn't break other stuff! + # Probably we can remove this for cuda 9. + sed -i "1 i#define _BITS_FLOATN_H" "${pkgdir}/opt/cuda/include/host_defines.h" + + # Needs Gcc 5.x.x + ln -s /usr/bin/gcc-5 "${pkgdir}/opt/cuda/bin/gcc" + ln -s /usr/bin/g++-5 "${pkgdir}/opt/cuda/bin/g++" + + # Install profile and ld.so.config files + install -Dm755 "${srcdir}/cuda.sh" "${pkgdir}/etc/profile.d/cuda.sh" + install -Dm644 "${srcdir}/cuda.conf" "${pkgdir}/etc/ld.so.conf.d/cuda.conf" + + mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}" + ln -s /opt/cuda/doc/pdf/EULA.pdf "${pkgdir}/usr/share/licenses/${pkgname}/EULA.pdf" + + # Remove redundant man and samples + rm -fr "${pkgdir}/opt/cuda/doc/man" + rm -fr "${pkgdir}/opt/cuda/cuda-samples" + rm -fr "${pkgdir}/usr/share/man/man3/deprecated.3"* + + # Remove included copy of java and link to system java + rm -fr "${pkgdir}/opt/cuda/jre" + sed 's|../jre/bin/java|/usr/bin/java|g' \ +-i "${pkgdir}/opt/cuda/libnsight/nsight.ini" \ +-i