summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostas Georgiadis2020-11-28 12:11:13 +0200
committerKostas Georgiadis2020-11-28 12:11:13 +0200
commitf88706509cb6807ab93fd053f43320adaf121ffe (patch)
tree102b8a2ea1b46f165a6333d99716791eb7a0bf1b
downloadaur-f88706509cb6807ab93fd053f43320adaf121ffe.tar.gz
initial commit
-rw-r--r--.SRCINFO87
-rw-r--r--PKGBUILD115
-rw-r--r--accinj64.pc9
-rw-r--r--cublas.pc9
-rw-r--r--cuda-findgllib_mk.diff22
-rw-r--r--cuda.conf3
-rw-r--r--cuda.install11
-rw-r--r--cuda.pc9
-rw-r--r--cuda.sh2
-rw-r--r--cudart.pc9
-rw-r--r--cufft.pc9
-rw-r--r--cufftw.pc9
-rw-r--r--cuinj64.pc9
-rw-r--r--curand.pc9
-rw-r--r--cusolver.pc9
-rw-r--r--cusparse.pc9
-rw-r--r--nppc.pc9
-rw-r--r--nppi.pc9
-rw-r--r--nppial.pc9
-rw-r--r--nppicc.pc9
-rw-r--r--nppicom.pc9
-rw-r--r--nppidei.pc9
-rw-r--r--nppif.pc9
-rw-r--r--nppig.pc9
-rw-r--r--nppim.pc9
-rw-r--r--nppist.pc9
-rw-r--r--nppisu.pc9
-rw-r--r--nppitc.pc9
-rw-r--r--npps.pc9
-rw-r--r--nvToolsExt.pc9
-rw-r--r--nvgraph.pc9
-rw-r--r--nvidia-ml.pc9
-rw-r--r--nvjpeg.pc9
-rw-r--r--nvrtc.pc9
34 files changed, 492 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..921e471b8ee9
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,87 @@
+pkgbase = cuda-11.0
+ pkgdesc = NVIDIA's GPU programming toolkit
+ pkgver = 11.0.3
+ pkgrel = 1
+ url = https://developer.nvidia.com/cuda-zone
+ install = cuda.install
+ arch = x86_64
+ license = custom:NVIDIA
+ depends = gcc-libs
+ depends = gcc
+ depends = opencl-nvidia
+ depends = nvidia-utils
+ optdepends = gdb: for cuda-gdb
+ optdepends = java-runtime=8: for nsight and nvvp
+ provides = cuda-toolkit
+ provides = cuda-sdk
+ replaces = cuda-toolkit
+ replaces = cuda-sdk
+ options = !strip
+ options = staticlibs
+ source = http://developer.download.nvidia.com/compute/cuda/11.0.3/local_installers/cuda_11.0.3_450.51.06_linux.run
+ source = cuda.sh
+ source = cuda.conf
+ source = cuda-findgllib_mk.diff
+ source = accinj64.pc
+ source = cublas.pc
+ source = cuda.pc
+ source = cudart.pc
+ source = cufft.pc
+ source = cufftw.pc
+ source = cuinj64.pc
+ source = curand.pc
+ source = cusolver.pc
+ source = cusparse.pc
+ source = nppc.pc
+ source = nppial.pc
+ source = nppicc.pc
+ source = nppicom.pc
+ source = nppidei.pc
+ source = nppif.pc
+ source = nppig.pc
+ source = nppim.pc
+ source = nppi.pc
+ source = nppist.pc
+ source = nppisu.pc
+ source = nppitc.pc
+ source = npps.pc
+ source = nvgraph.pc
+ source = nvidia-ml.pc
+ source = nvjpeg.pc
+ source = nvrtc.pc
+ source = nvToolsExt.pc
+ sha512sums = e7014c868c0bf40c000b1fd14d156265773a399782937cc85a2b09cd62abddcacdc20b412e1cc91c3877d01563cf054b1e021f047b32cfff4ab516e7167382dd
+ sha512sums = 79aa6fbeff13a2bcef5791c2288d4b072dfe7b17593261ee79302dc6c77ae368e73f5cac9ce38893fc0068e4895f5cde475faf507fac058fb697c8da3198587f
+ sha512sums = 714d973bc79446f73bebe85306b3566fe25b554bcbcba2fcbe76709a3eca71fb5d183ab4da2d3b5e9326cb9cd8d13a93f6d4a005ea5a41f7ef8e6c6e81e06b5e
+ sha512sums = 41d6b6cad934f135eafde610d1cbd862033977fd4416a4b6abaa47709a70bab7fcf6f8377c21329084fb9db13f2a8c8c20e93c15292d7d4a6448d70a33b23f1b
+ sha512sums = a4b3b03682801a98a1d8c1d14c084fd35efd384d92d497e230e3a28e0bd97b1fa48a93ccb2150f892f0b4154ca4ea2d66f5484a6a59b5c9b49963de42ecf1736
+ sha512sums = d69d3ec0e270648f55d8c3e420f89d056b120eca5b25e9e7fc1cca799d1a252909ee31ff399c137223eca57cdf82b856221a251b6ff1daf5d6f75c1a582b1e32
+ sha512sums = e463a596d34cc7d7e42c32e8a72b327aedb8707902dda8767f2c22a6a7e6dda7fcd297c0036b004ce4f1677408084acb6f4ed683cd6c79558ba8bb4e1a83867f
+ sha512sums = 2fc1a136ecbd7535a46c7c63e1218525230e44d15f461fdb461b727eb12799ebe66d46d57cacda9b7b55bbfed572c1c9a9c5c5f73de6e28da1a1deda7b7eaffd
+ sha512sums = d91acc6e7f56f36a4b67ee06f39d87928bc49e7463077f9dc95716151df1a9a6f259ebf01dc860eacf2d5faf2feb4411b6ca8cef50cd5af823875aa5ad54d098
+ sha512sums = 7bda70d783180d3dafea9f0117e0c396d4aedda3da02fea6c7382139b030c9111e044c454152526cca271d49883240782ba94fe89b098a41d9b451425dc4870d
+ sha512sums = 408b553d5187e31086e10d236f2c8090045da0fae351c8b170d01aead88ea5f8a0b4ec50e2c5ccbb989167768bec58cb7ae051b7b87c00c59794879844d7679e
+ sha512sums = 5fb9837e7830a02bd6e1fae0cd959bc35474801ab2836e385678ce893d760ff6b9f47e728707a755f842758cf2fe55c2f7bb04d3941b80a5fd1d4b4ba7a4d428
+ sha512sums = d47d8bd10cf1183e9ab3ae59b669e8a8d7cc9127dbb07c4bafbc8b853b285676217e329e1cc49a277d0b9b5623c2e6066b087a66951d2e7fa8007f10aa4c074b
+ sha512sums = 6728716dbe10553e876cb6a2c556bf9309197eb53c9d31fa1525843383ef531ca7a0913130507064fc24c59057b5f82f45705a23df43d77c5882bf53b087ea4b
+ sha512sums = 653a29a874fde27defeb06cc4e3c69d9d129d9b9c04f15d2958629eaf03521d361c08fd41abee95378ae72f951f07c15d32e7d5563170829a0c90defebe95a0b
+ sha512sums = 26c8ad1ff52ae51ee250b71b8427a2b89bd3d64e42c5fe2f55732bffb36e19d2946008e5058cd30d76b8129621aa5440b11601b10afc95f112bb8addfc0aeb0c
+ sha512sums = a801a5fb9e963bbd796b050b514b412a6babab26e0cdbd61b7ea55071944723489b4305bebedc8828428756939cebe6bd936bfffed5a6fff8bf39629a8df5cce
+ sha512sums = a5fd4fb8fa75d276c154fd48657aeeb689b39bc29cf0efc9c6e0bda741de36d740095007cda9849345c322162513530953ab5598c2dad03ac8c2c0c9395ff79a
+ sha512sums = 40fbed6b5d62ac90afc0732e6713e34a35c8883b9b30ae76616ff689addb64553fd4b9d09ff360964e01ab2afaa3d3055b2a46725fb937fb117a28c0e5392a1a
+ sha512sums = b17ba99efdc2bb8b83b3811ffb43515e663461185c659902bd3111f08f05a196a3919c463102b2d8bd0dea69cba8fa0a6ccc4a86c0b2584459218e1292074a13
+ sha512sums = 4aa2bab32131bc3a81d5ba8412b10b6b30cebf5a0e1525e56bd7cddf20da8d306ba48165d6a6356eb9c1f705c4b3d58e1bf33c1d07c872c741739e70a7cb20ef
+ sha512sums = af4fc1d293978bba254d3db6c941b4b7be2ce9b61d82ddaf1e30e19407f6bf10caa22c4406739179cdb12ebc5396013ea291554edea8d56c1661493804309f87
+ sha512sums = 367151febaabe4eda8df64a10bbc43e29e5a5236dc4bc064a3a8d12c69818bedbaef156fddf08c99f0eca5bdae20b5a3a0f7e2401efedebf096ea143ef2d09fa
+ sha512sums = b0ab2a5dac5fa1c7d2687a0f2f25de271b2638198744a27d492a02651afd4f676ac814252990d476a21f0b0c489d2487b5af766f32839c4d6ab2f91b2bb8ad04
+ sha512sums = 328b3103a23d5de04efa7adc16d2cb8c23ab6617e0d83072e2ea0269f9af994125ae7e64e372697774fa1bfa9d3ec761d16ea489e51222d8babeca0fde95d239
+ sha512sums = 4db458ff7db77303423fe38290c98caa1c4bb131d4c863d17880beac6e433998e4f85343b15e7166e3f7d9be41fdacae6ea66516db3b98d6371a16dac266539f
+ sha512sums = df4fdc00e02ed8bd15cdda0a7dd375d36ff98c5df6188164caec530ae0d0ad8d632a6f29dbcebe7cad0edf2c579bd3594acb8d09fd81a6a3ba85e2cbc26101cd
+ sha512sums = 3cb8c30f3936a464dbc214ee820941694e741de767c2636a5ce94cf5ea84d33a6265fff5777fb6a9f7328e076cc4c12e71624b3eb024bc0069d917f506a22750
+ sha512sums = c2c0a15c1a1c4fe51c2be1eaf4ff790042b9d42b5959d02522ed7ad18b4c5880dd7d9cdfe88a6d1850b34ce7a22599fadc0e11ca94b595210c9150e44b5e8e66
+ sha512sums = ede3cfcaaa655e73e47bd3475d94d33933c6e7c89c7dc7c98d9491e066ab4cf504e12ed4f1eab9edaeb358154bd86a43d359304675efa4fd4a67d01c97986f3b
+ sha512sums = 4405d88a132f3cf4e6c506962860503537a3c946fbd5f1c29c52bb6e6b45b13d14333bc772c62589337875200b23b0af17c9e5ce188d2f4018f488ea75501054
+ sha512sums = 16003e7e6307d39a95fe246a7d079e9a3d827bd03fd5f03bdd2051a5033a1f93d9c8531073ef587808a9d0c75d20e3d79417a90b14102bc872d32c2c7a5ebdcb
+
+pkgname = cuda-11.0
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..9834d65d8737
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,115 @@
+# Maintainer: Kostas Georgiadis <kot+aur at cons dot gr>
+
+pkgname=cuda-11.0
+pkgver=11.0.3
+_driverver=450.51.06
+_reqdriverver=450.51
+pkgrel=1
+pkgdesc="NVIDIA's GPU programming toolkit"
+arch=('x86_64')
+url="https://developer.nvidia.com/cuda-zone"
+license=('custom:NVIDIA')
+depends=('gcc-libs' 'gcc' '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/${pkgver}/local_installers/cuda_${pkgver}_${_driverver}_linux.run
+ cuda.sh
+ cuda.conf
+ cuda-findgllib_mk.diff
+ *.pc)
+sha512sums=('e7014c868c0bf40c000b1fd14d156265773a399782937cc85a2b09cd62abddcacdc20b412e1cc91c3877d01563cf054b1e021f047b32cfff4ab516e7167382dd'
+ '79aa6fbeff13a2bcef5791c2288d4b072dfe7b17593261ee79302dc6c77ae368e73f5cac9ce38893fc0068e4895f5cde475faf507fac058fb697c8da3198587f'
+ '714d973bc79446f73bebe85306b3566fe25b554bcbcba2fcbe76709a3eca71fb5d183ab4da2d3b5e9326cb9cd8d13a93f6d4a005ea5a41f7ef8e6c6e81e06b5e'
+ '41d6b6cad934f135eafde610d1cbd862033977fd4416a4b6abaa47709a70bab7fcf6f8377c21329084fb9db13f2a8c8c20e93c15292d7d4a6448d70a33b23f1b'
+ 'a4b3b03682801a98a1d8c1d14c084fd35efd384d92d497e230e3a28e0bd97b1fa48a93ccb2150f892f0b4154ca4ea2d66f5484a6a59b5c9b49963de42ecf1736'
+ 'd69d3ec0e270648f55d8c3e420f89d056b120eca5b25e9e7fc1cca799d1a252909ee31ff399c137223eca57cdf82b856221a251b6ff1daf5d6f75c1a582b1e32'
+ 'e463a596d34cc7d7e42c32e8a72b327aedb8707902dda8767f2c22a6a7e6dda7fcd297c0036b004ce4f1677408084acb6f4ed683cd6c79558ba8bb4e1a83867f'
+ '2fc1a136ecbd7535a46c7c63e1218525230e44d15f461fdb461b727eb12799ebe66d46d57cacda9b7b55bbfed572c1c9a9c5c5f73de6e28da1a1deda7b7eaffd'
+ 'd91acc6e7f56f36a4b67ee06f39d87928bc49e7463077f9dc95716151df1a9a6f259ebf01dc860eacf2d5faf2feb4411b6ca8cef50cd5af823875aa5ad54d098'
+ '7bda70d783180d3dafea9f0117e0c396d4aedda3da02fea6c7382139b030c9111e044c454152526cca271d49883240782ba94fe89b098a41d9b451425dc4870d'
+ '408b553d5187e31086e10d236f2c8090045da0fae351c8b170d01aead88ea5f8a0b4ec50e2c5ccbb989167768bec58cb7ae051b7b87c00c59794879844d7679e'
+ '5fb9837e7830a02bd6e1fae0cd959bc35474801ab2836e385678ce893d760ff6b9f47e728707a755f842758cf2fe55c2f7bb04d3941b80a5fd1d4b4ba7a4d428'
+ 'd47d8bd10cf1183e9ab3ae59b669e8a8d7cc9127dbb07c4bafbc8b853b285676217e329e1cc49a277d0b9b5623c2e6066b087a66951d2e7fa8007f10aa4c074b'
+ '6728716dbe10553e876cb6a2c556bf9309197eb53c9d31fa1525843383ef531ca7a0913130507064fc24c59057b5f82f45705a23df43d77c5882bf53b087ea4b'
+ '653a29a874fde27defeb06cc4e3c69d9d129d9b9c04f15d2958629eaf03521d361c08fd41abee95378ae72f951f07c15d32e7d5563170829a0c90defebe95a0b'
+ '26c8ad1ff52ae51ee250b71b8427a2b89bd3d64e42c5fe2f55732bffb36e19d2946008e5058cd30d76b8129621aa5440b11601b10afc95f112bb8addfc0aeb0c'
+ 'a801a5fb9e963bbd796b050b514b412a6babab26e0cdbd61b7ea55071944723489b4305bebedc8828428756939cebe6bd936bfffed5a6fff8bf39629a8df5cce'
+ 'a5fd4fb8fa75d276c154fd48657aeeb689b39bc29cf0efc9c6e0bda741de36d740095007cda9849345c322162513530953ab5598c2dad03ac8c2c0c9395ff79a'
+ '40fbed6b5d62ac90afc0732e6713e34a35c8883b9b30ae76616ff689addb64553fd4b9d09ff360964e01ab2afaa3d3055b2a46725fb937fb117a28c0e5392a1a'
+ 'b17ba99efdc2bb8b83b3811ffb43515e663461185c659902bd3111f08f05a196a3919c463102b2d8bd0dea69cba8fa0a6ccc4a86c0b2584459218e1292074a13'
+ '4aa2bab32131bc3a81d5ba8412b10b6b30cebf5a0e1525e56bd7cddf20da8d306ba48165d6a6356eb9c1f705c4b3d58e1bf33c1d07c872c741739e70a7cb20ef'
+ 'af4fc1d293978bba254d3db6c941b4b7be2ce9b61d82ddaf1e30e19407f6bf10caa22c4406739179cdb12ebc5396013ea291554edea8d56c1661493804309f87'
+ '367151febaabe4eda8df64a10bbc43e29e5a5236dc4bc064a3a8d12c69818bedbaef156fddf08c99f0eca5bdae20b5a3a0f7e2401efedebf096ea143ef2d09fa'
+ 'b0ab2a5dac5fa1c7d2687a0f2f25de271b2638198744a27d492a02651afd4f676ac814252990d476a21f0b0c489d2487b5af766f32839c4d6ab2f91b2bb8ad04'
+ '328b3103a23d5de04efa7adc16d2cb8c23ab6617e0d83072e2ea0269f9af994125ae7e64e372697774fa1bfa9d3ec761d16ea489e51222d8babeca0fde95d239'
+ '4db458ff7db77303423fe38290c98caa1c4bb131d4c863d17880beac6e433998e4f85343b15e7166e3f7d9be41fdacae6ea66516db3b98d6371a16dac266539f'
+ 'df4fdc00e02ed8bd15cdda0a7dd375d36ff98c5df6188164caec530ae0d0ad8d632a6f29dbcebe7cad0edf2c579bd3594acb8d09fd81a6a3ba85e2cbc26101cd'
+ '3cb8c30f3936a464dbc214ee820941694e741de767c2636a5ce94cf5ea84d33a6265fff5777fb6a9f7328e076cc4c12e71624b3eb024bc0069d917f506a22750'
+ 'c2c0a15c1a1c4fe51c2be1eaf4ff790042b9d42b5959d02522ed7ad18b4c5880dd7d9cdfe88a6d1850b34ce7a22599fadc0e11ca94b595210c9150e44b5e8e66'
+ 'ede3cfcaaa655e73e47bd3475d94d33933c6e7c89c7dc7c98d9491e066ab4cf504e12ed4f1eab9edaeb358154bd86a43d359304675efa4fd4a67d01c97986f3b'
+ '4405d88a132f3cf4e6c506962860503537a3c946fbd5f1c29c52bb6e6b45b13d14333bc772c62589337875200b23b0af17c9e5ce188d2f4018f488ea75501054'
+ '16003e7e6307d39a95fe246a7d079e9a3d827bd03fd5f03bdd2051a5033a1f93d9c8531073ef587808a9d0c75d20e3d79417a90b14102bc872d32c2c7a5ebdcb')
+
+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() {
+ cd "${srcdir}/builds"
+
+ rm -r NVIDIA*.run bin
+ mkdir -p "${pkgdir}/opt/cuda/extras"
+ mv cuda_samples "${pkgdir}/opt/cuda/samples"
+ mv integration nsight_compute nsight_systems EULA.txt "${pkgdir}/opt/cuda"
+ # mv cuda_sanitizer_api/compute-sanitizer "${pkgdir}/opt/cuda/extras/compute-sanitizer"
+ # rmdir cuda_sanitizer_api
+ for lib in *; do
+ cp -r $lib/* "${pkgdir}/opt/cuda/"
+ done
+
+ # Define compilers for CUDA to use.
+ # This allows us to use older versions of GCC if we have to.
+ ln -s /usr/bin/gcc "${pkgdir}/opt/cuda/bin/gcc"
+ ln -s /usr/bin/g++ "${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"
+
+ # Install pkgconfig files
+ mkdir -p "$pkgdir"/usr/lib/pkgconfig
+ cp "${srcdir}"/*.pc "${pkgdir}"/usr/lib/pkgconfig
+
+ mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}"
+ ln -s /opt/cuda/doc/pdf/EULA.pdf "${pkgdir}/usr/share/licenses/${pkgname}/EULA.pdf"
+
+ # Allow newer compilers to work. This is not officially supported in the Arch package but
+ # if users want to try, let them try.
+ # See https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html#system-requirements
+ # for official requirements
+ sed -i "/.*unsupported GNU version.*/d" "${pkgdir}"/opt/cuda/targets/x86_64-linux/include/crt/host_config.h
+ sed -i "/.*unsupported clang 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 Makefile); do
+ sed -i "s|/usr/local/cuda|/opt/cuda|g" "$f"
+ done
+
+ # As this was ported from the cuda arch package version 11.1 I'm not sure what to do with it
+ # didn't had any issues so far on my experiments
+
+ # NVIDIA has trouble with counting and numbering
+ # as well as the elusive concept of a SONAME so...
+ # ln -s /opt/cuda/targets/x86_64-linux/lib/libcudart.so.11.1.74 "${pkgdir}/opt/cuda/targets/x86_64-linux/lib/libcudart.so.11.1"
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/accinj64.pc b/accinj64.pc
new file mode 100644
index 000000000000..948e93aa4806
--- /dev/null
+++ b/accinj64.pc
@@ -0,0 +1,9 @@
+cudaroot=/opt/cuda
+libdir=${cudaroot}/targets/x86_64-linux/lib
+includedir=${cudaroot}/targets/x86_64-linux/include
+
+Name: accinj64
+Description: OpenACC 64-bit Injection Library
+Version: 11.0
+Libs: -L${libdir} -laccinj64
+Cflags: -I${includedir}
diff --git a/cublas.pc b/cublas.pc
new file mode 100644
index 000000000000..ddd622aea28a
--- /dev/null
+++ b/cublas.pc
@@ -0,0 +1,9 @@
+cudaroot=/opt/cuda
+libdir=${cudaroot}/targets/x86_64-linux/lib
+includedir=${cudaroot}/targets/x86_64-linux/include
+
+Name: cublas
+Description: CUDA BLAS Library
+Version: 11.0
+Libs: -L${libdir} -lcublas
+Cflags: -I${includedir}
diff --git a/cuda-findgllib_mk.diff b/cuda-findgllib_mk.diff
new file mode 100644
index 000000000000..dee993b28dfb
--- /dev/null
+++ b/cuda-findgllib_mk.diff
@@ -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
++ GLLINK ?= -L/usr/lib64/nvidia
++ DFLT_PATH ?= /usr/lib64
+ endif
+
+ # find libGL, libGLU, libXi,
diff --git a/cuda.conf b/cuda.conf
new file mode 100644
index 000000000000..c0bc7915c02c
--- /dev/null
+++ b/cuda.conf
@@ -0,0 +1,3 @@
+/opt/cuda/lib64
+/opt/cuda/nvvm/lib64
+/opt/cuda/extras/CUPTI/lib64
diff --git a/cuda.install b/cuda.install
new file mode 100644
index 000000000000..fb341b1dd3a3
--- /dev/null
+++ b/cuda.install
@@ -0,0 +1,11 @@
+post_install() {
+ echo "The cuda binaries are in /opt/cuda/bin"
+ echo "The cuda samples are in /opt/cuda/samples"
+ echo "The cuda docs are in /opt/cuda/doc"
+ echo "You need to relogin in order for the cuda binaries to appear in your PATH"
+ post_upgrade
+}
+
+post_upgrade() {
+ ldconfig -r .
+}
diff --git a/cuda.pc b/cuda.pc
new file mode 100644
index 000000000000..04b7c6dd1caa
--- /dev/null
+++ b/cuda.pc
@@ -0,0 +1,9 @@
+cudaroot=/opt/cuda
+libdir=${cudaroot}/targets/x86_64-linux/lib
+includedir=${cudaroot}/targets/x86_64-linux/include
+
+Name: cuda
+Description: CUDA Driver Library
+Version: 11.0
+Libs: -L${libdir} -lcuda
+Cflags: -I${includedir}
diff --git a/cuda.sh b/cuda.sh
new file mode 100644
index 000000000000..2b4eee5e2668
--- /dev/null
+++ b/cuda.sh
@@ -0,0 +1,2 @@
+export CUDA_PATH=/opt/cuda
+export PATH=$PATH:/opt/cuda/bin:/opt/cuda/integration/nsight-compute:/opt/cuda/integration/nsight-systems
diff --git a/cudart.pc b/cudart.pc
new file mode 100644
index 000000000000..eecad2b9a3ea
--- /dev/null
+++ b/cudart.pc
@@ -0,0 +1,9 @@
+cudaroot=/opt/cuda
+libdir=${cudaroot}/targets/x86_64-linux/lib
+includedir=${cudaroot}/targets/x86_64-linux/include
+
+Name: cudart
+Description: CUDA Runtime Library
+Version: 11.0
+Libs: -L${libdir} -lcudart
+Cflags: -I${includedir}
diff --git a/cufft.pc b/cufft.pc
new file mode 100644
index 000000000000..13eb96a5a382
--- /dev/null
+++ b/cufft.pc
@@ -0,0 +1,9 @@
+cudaroot=/opt/cuda
+libdir=${cudaroot}/targets/x86_64-linux/lib
+includedir=${cudaroot}/targets/x86_64-linux/include
+
+Name: cufft
+Description: CUDA Fast Fourier Transform
+Version: 11.0
+Libs: -L${libdir} -lcufft
+Cflags: -I${includedir}
diff --git a/cufftw.pc b/cufftw.pc
new file mode 100644
index 000000000000..7f2717e1ceaf
--- /dev/null
+++ b/cufftw.pc
@@ -0,0 +1,9 @@
+cudaroot=/opt/cuda
+libdir=${cudaroot}/targets/x86_64-linux/lib
+includedir=${cudaroot}/targets/x86_64-linux/include
+
+Name: cufftw
+Description: CUDA Fast Fourier Transform Wide
+Version: 11.0
+Libs: -L${libdir} -lcufftw
+Cflags: -I${includedir}
diff --git a/cuinj64.pc b/cuinj64.pc
new file mode 100644
index 000000000000..b205b9b5c6e1
--- /dev/null
+++ b/cuinj64.pc
@@ -0,0 +1,9 @@
+cudaroot=/opt/cuda
+libdir=${cudaroot}/targets/x86_64-linux/lib
+includedir=${cudaroot}/targets/x86_64-linux/include
+
+Name: cuinj64
+Description: CUDA 64-bit Injection Library
+Version: 11.0
+Libs: -L${libdir} -lcuinj64
+Cflags: -I${includedir}
diff --git a/curand.pc b/curand.pc
new file mode 100644
index 000000000000..b6ba7b279770
--- /dev/null
+++ b/curand.pc
@@ -0,0 +1,9 @@
+cudaroot=/opt/cuda
+libdir=${cudaroot}/targets/x86_64-linux/lib
+includedir=${cudaroot}/targets/x86_64-linux/include
+
+Name: curand
+Description: CUDA Random Number Generation Library
+Version: 11.0
+Libs: -L${libdir} -lcurand
+Cflags: -I${includedir}
diff --git a/cusolver.pc b/cusolver.pc
new file mode 100644
index 000000000000..388d8e96a8b2
--- /dev/null
+++ b/cusolver.pc
@@ -0,0 +1,9 @@
+cudaroot=/opt/cuda
+libdir=${cudaroot}/targets/x86_64-linux/lib
+includedir=${cudaroot}/targets/x86_64-linux/include
+
+Name: cusolver
+Description: A LAPACK-like library on dense and sparse linear algebra
+Version: 11.0
+Libs: -L${libdir} -lcusolver
+Cflags: -I${includedir}
diff --git a/cusparse.pc b/cusparse.pc
new file mode 100644
index 000000000000..12eb1fa67f94
--- /dev/null
+++ b/cusparse.pc
@@ -0,0 +1,9 @@
+cudaroot=/opt/cuda
+libdir=${cudaroot}/targets/x86_64-linux/lib
+includedir=${cudaroot}/targets/x86_64-linux/include
+
+Name: cusparse
+Description: CUDA Sparse Matrix Library
+Version: 11.0
+Libs: -L${libdir} -lcusparse
+Cflags: -I${includedir}
diff --git a/nppc.pc b/nppc.pc
new file mode 100644
index 000000000000..cfaa5d83b9ae
--- /dev/null
+++ b/nppc.pc
@@ -0,0 +1,9 @@
+cudaroot=/opt/cuda
+libdir=${cudaroot}/targets/x86_64-linux/lib
+includedir=${cudaroot}/targets/x86_64-linux/include
+
+Name: nppc
+Description: NVIDIA Performance Primitives - Core
+Version: 11.0
+Libs: -L${libdir} -lnppc
+Cflags: -I${includedir}
diff --git a/nppi.pc b/nppi.pc
new file mode 100644
index 000000000000..46ead99d1d62
--- /dev/null
+++ b/nppi.pc
@@ -0,0 +1,9 @@
+cudaroot=/opt/cuda
+libdir=${cudaroot}/targets/x86_64-linux/lib
+includedir=${cudaroot}/targets/x86_64-linux/include
+
+Name: nppi
+Description: NVIDIA Performance Primitives - Image Processing
+Version: 11.0
+Libs: -L${libdir} -lnppi
+Cflags: -I${includedir}
diff --git a/nppial.pc b/nppial.pc
new file mode 100644
index 000000000000..cb97419a0081
--- /dev/null
+++ b/nppial.pc
@@ -0,0 +1,9 @@
+cudaroot=/opt/cuda
+libdir=${cudaroot}/targets/x86_64-linux/lib
+includedir=${cudaroot}/targets/x86_64-linux/include
+
+Name: nppial
+Description: NVIDIA Performance Primitives - Image Processing - Arithmetic and Logic
+Version: 11.0
+Libs: -L${libdir} -lnppial
+Cflags: -I${includedir}
diff --git a/nppicc.pc b/nppicc.pc
new file mode 100644
index 000000000000..aa5a07fabc6b
--- /dev/null
+++ b/nppicc.pc
@@ -0,0 +1,9 @@
+cudaroot=/opt/cuda
+libdir=${cudaroot}/targets/x86_64-linux/lib
+includedir=${cudaroot}/targets/x86_64-linux/include
+
+Name: nppicc
+Description: NVIDIA Performance Primitives - Image Processing - Color Conversion
+Version: 11.0
+Libs: -L${libdir} -lnppicc
+Cflags: -I${includedir}
diff --git a/nppicom.pc b/nppicom.pc
new file mode 100644
index 000000000000..e190b2532829
--- /dev/null
+++ b/nppicom.pc
@@ -0,0 +1,9 @@
+cudaroot=/opt/cuda
+libdir=${cudaroot}/targets/x86_64-linux/lib
+includedir=${cudaroot}/targets/x86_64-linux/include
+
+Name: nppicom
+Description: NVIDIA Performance Primitives - Image Processing - Compression
+Version: 11.0
+Libs: -L${libdir} -lnppicom
+Cflags: -I${includedir}
diff --git a/nppidei.pc b/nppidei.pc
new file mode 100644
index 000000000000..6badd80f0a43
--- /dev/null
+++ b/nppidei.pc
@@ -0,0 +1,9 @@
+cudaroot=/opt/cuda
+libdir=${cudaroot}/targets/x86_64-linux/lib
+includedir=${cudaroot}/targets/x86_64-linux/include
+
+Name: nppidei
+Description: NVIDIA Performance Primitives - Image Processing - DEI
+Version: 11.0
+Libs: -L${libdir} -lnppidei
+Cflags: -I${includedir}
diff --git a/nppif.pc b/nppif.pc
new file mode 100644
index 000000000000..fc419982e7a7
--- /dev/null
+++ b/nppif.pc
@@ -0,0 +1,9 @@
+cudaroot=/opt/cuda
+libdir=${cudaroot}/targets/x86_64-linux/lib
+includedir=${cudaroot}/targets/x86_64-linux/include
+
+Name: nppif
+Description: NVIDIA Performance Primitives - Image Processing - Filters
+Version: 11.0
+Libs: -L${libdir} -lnppif
+Cflags: -I${includedir}
diff --git a/nppig.pc b/nppig.pc
new file mode 100644
index 000000000000..5b479ceea35d
--- /dev/null
+++ b/nppig.pc
@@ -0,0 +1,9 @@
+cudaroot=/opt/cuda
+libdir=${cudaroot}/targets/x86_64-linux/lib
+includedir=${cudaroot}/targets/x86_64-linux/include
+
+Name: nppig
+Description: NVIDIA Performance Primitives - Image Processing - Geometry
+Version: 11.0
+Libs: -L${libdir} -lnppig
+Cflags: -I${includedir}
diff --git a/nppim.pc b/nppim.pc
new file mode 100644
index 000000000000..d7955dd27ea3
--- /dev/null
+++ b/nppim.pc
@@ -0,0 +1,9 @@
+cudaroot=/opt/cuda
+libdir=${cudaroot}/targets/x86_64-linux/lib
+includedir=${cudaroot}/targets/x86_64-linux/include
+
+Name: nppim
+Description: NVIDIA Performance Primitives - Image Processing - Morphological
+Version: 11.0
+Libs: -L${libdir} -lnppim
+Cflags: -I${includedir}
diff --git a/nppist.pc b/nppist.pc
new file mode 100644
index 000000000000..4cdeb503cf74
--- /dev/null
+++ b/nppist.pc
@@ -0,0 +1,9 @@
+cudaroot=/opt/cuda
+libdir=${cudaroot}/targets/x86_64-linux/lib
+includedir=${cudaroot}/targets/x86_64-linux/include
+
+Name: nppist
+Description: NVIDIA Performance Primitives - Image Processing - Statistic and Linear
+Version: 11.0
+Libs: -L${libdir} -lnppist
+Cflags: -I${includedir}
diff --git a/nppisu.pc b/nppisu.pc
new file mode 100644
index 000000000000..07348d0d51db
--- /dev/null
+++ b/nppisu.pc
@@ -0,0 +1,9 @@
+cudaroot=/opt/cuda
+libdir=${cudaroot}/targets/x86_64-linux/lib
+includedir=${cudaroot}/targets/x86_64-linux/include
+
+Name: nppisu
+Description: NVIDIA Performance Primitives - Image Processing - Support and Data Exchange
+Version: 11.0
+Libs: -L${libdir} -lnppisu
+Cflags: -I${includedir}
diff --git a/nppitc.pc b/nppitc.pc
new file mode 100644
index 000000000000..953bacf8e380
--- /dev/null
+++ b/nppitc.pc
@@ -0,0 +1,9 @@
+cudaroot=/opt/cuda
+libdir=${cudaroot}/targets/x86_64-linux/lib
+includedir=${cudaroot}/targets/x86_64-linux/include
+
+Name: nppitc
+Description: NVIDIA Performance Primitives - Image Processing - Threshold and Compare
+Version: 11.0
+Libs: -L${libdir} -lnppitc
+Cflags: -I${includedir}
diff --git a/npps.pc b/npps.pc
new file mode 100644
index 000000000000..f58e261d1e8b
--- /dev/null
+++ b/npps.pc
@@ -0,0 +1,9 @@
+cudaroot=/opt/cuda
+libdir=${cudaroot}/targets/x86_64-linux/lib
+includedir=${cudaroot}/targets/x86_64-linux/include
+
+Name: npps
+Description: NVIDIA Performance Primitives - Signal Processing
+Version: 11.0
+Libs: -L${libdir} -lnpps
+Cflags: -I${includedir}
diff --git a/nvToolsExt.pc b/nvToolsExt.pc
new file mode 100644
index 000000000000..298bab8898d5
--- /dev/null
+++ b/nvToolsExt.pc
@@ -0,0 +1,9 @@
+cudaroot=/opt/cuda
+libdir=${cudaroot}/targets/x86_64-linux/lib
+includedir=${cudaroot}/targets/x86_64-linux/include
+
+Name: nvToolsExt
+Description: NVIDIA Tools Extension
+Version: 11.0
+Libs: -L${libdir} -lnvToolsExt
+Cflags: -I${includedir}
diff --git a/nvgraph.pc b/nvgraph.pc
new file mode 100644
index 000000000000..89dcb9c8c219
--- /dev/null
+++ b/nvgraph.pc
@@ -0,0 +1,9 @@
+cudaroot=/opt/cuda
+libdir=${cudaroot}/targets/x86_64-linux/lib
+includedir=${cudaroot}/targets/x86_64-linux/include
+
+Name: nvgraph
+Description: NVIDIA Accelerated Graph Analytics
+Version: 11.0
+Libs: -L${libdir} -lnvgraph
+Cflags: -I${includedir}
diff --git a/nvidia-ml.pc b/nvidia-ml.pc
new file mode 100644
index 000000000000..0743f8c7da57
--- /dev/null
+++ b/nvidia-ml.pc
@@ -0,0 +1,9 @@
+cudaroot=/opt/cuda
+libdir=${cudaroot}/targets/x86_64-linux/lib
+includedir=${cudaroot}/targets/x86_64-linux/include
+
+Name: nvidia-ml
+Description: NVML
+Version: 11.0
+Libs: -L${libdir}/stubs -lnvidia-ml
+Cflags: -I${includedir}
diff --git a/nvjpeg.pc b/nvjpeg.pc
new file mode 100644
index 000000000000..ebdcfd07707c
--- /dev/null
+++ b/nvjpeg.pc
@@ -0,0 +1,9 @@
+cudaroot=/opt/cuda
+libdir=${cudaroot}/targets/x86_64-linux/lib
+includedir=${cudaroot}/targets/x86_64-linux/include
+
+Name: nvjpeg
+Description: NVIDIA JPEG Library
+Version: 11.0
+Libs: -L${libdir} -lnvjpeg
+Cflags: -I${includedir}
diff --git a/nvrtc.pc b/nvrtc.pc
new file mode 100644
index 000000000000..48afbdb0bf4f
--- /dev/null
+++ b/nvrtc.pc
@@ -0,0 +1,9 @@
+cudaroot=/opt/cuda
+libdir=${cudaroot}/targets/x86_64-linux/lib
+includedir=${cudaroot}/targets/x86_64-linux/include
+
+Name: nvrtc
+Description: A runtime compilation library for CUDA C++
+Version: 11.0
+Libs: -L${libdir} -lnvrtc
+Cflags: -I${includedir}