diff options
author | Karl L. Brennan | 2024-08-18 16:19:56 +1000 |
---|---|---|
committer | Karl L. Brennan | 2024-08-18 16:26:14 +1000 |
commit | 44b0d2810b062f0072cdd3c6c67611a50c186fea (patch) | |
tree | e44ba01457d4749b0a908c65a3471d52d7d918e1 | |
download | aur-44b0d2810b062f0072cdd3c6c67611a50c186fea.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 98 | ||||
-rw-r--r-- | PKGBUILD | 177 | ||||
-rw-r--r-- | accinj64.pc | 9 | ||||
-rw-r--r-- | cublas.pc | 9 | ||||
-rw-r--r-- | cuda.conf | 3 | ||||
-rw-r--r-- | cuda.install | 11 | ||||
-rw-r--r-- | cuda.pc | 9 | ||||
-rw-r--r-- | cuda.sh | 2 | ||||
-rw-r--r-- | cudart.pc | 9 | ||||
-rw-r--r-- | cufft.pc | 9 | ||||
-rw-r--r-- | cufftw.pc | 9 | ||||
-rw-r--r-- | cuinj64.pc | 9 | ||||
-rw-r--r-- | curand.pc | 9 | ||||
-rw-r--r-- | cusolver.pc | 9 | ||||
-rw-r--r-- | cusparse.pc | 9 | ||||
-rw-r--r-- | nppc.pc | 9 | ||||
-rw-r--r-- | nppi.pc | 9 | ||||
-rw-r--r-- | nppial.pc | 9 | ||||
-rw-r--r-- | nppicc.pc | 9 | ||||
-rw-r--r-- | nppicom.pc | 9 | ||||
-rw-r--r-- | nppidei.pc | 9 | ||||
-rw-r--r-- | nppif.pc | 9 | ||||
-rw-r--r-- | nppig.pc | 9 | ||||
-rw-r--r-- | nppim.pc | 9 | ||||
-rw-r--r-- | nppist.pc | 9 | ||||
-rw-r--r-- | nppisu.pc | 9 | ||||
-rw-r--r-- | nppitc.pc | 9 | ||||
-rw-r--r-- | npps.pc | 9 | ||||
-rw-r--r-- | nvToolsExt.pc | 9 | ||||
-rw-r--r-- | nvgraph.pc | 9 | ||||
-rw-r--r-- | nvidia-ml.pc | 9 | ||||
-rw-r--r-- | nvjpeg.pc | 9 | ||||
-rw-r--r-- | nvrtc.pc | 9 |
33 files changed, 543 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..cc1630a5ad7c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,98 @@ +pkgbase = cuda12.0 + pkgdesc = NVIDIA's GPU programming toolkit (version 12.0) + pkgver = 12.0.1 + pkgrel = 1 + url = https://developer.nvidia.com/cuda-zone + install = cuda.install + arch = x86_64 + license = custom:NVIDIA + depends = gcc12-libs + depends = gcc12 + depends = opencl-nvidia + depends = nvidia-utils + depends = python + options = !strip + options = staticlibs + source = https://developer.download.nvidia.com/compute/cuda/12.0.1/local_installers/cuda_12.0.1_525.85.12_linux.run + source = cuda.sh + source = cuda.conf + 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 = edd73c6e989e8469d73a8a8c4c927aa0654c1c299eff77c8b30dafd5da6e4e368626cec48978785f8e94fe8d1b7b73f1df6d5d03a80a6f58a07fa2d1f15c7f86 + sha512sums = 35f1f56411eecb2d978553f5606a0d6e70ad363cfaa9f37b9e6f12a799b041caa4aeca183341055d4789425dc4d62bee0aac68cc9d864155084b1ea571ee998f + sha512sums = 714d973bc79446f73bebe85306b3566fe25b554bcbcba2fcbe76709a3eca71fb5d183ab4da2d3b5e9326cb9cd8d13a93f6d4a005ea5a41f7ef8e6c6e81e06b5e + 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 = cuda12.0 + optdepends = gdb: for cuda-gdb + optdepends = glu: required for some profiling tools in CUPTI + provides = cuda + provides = cuda-toolkit + provides = cuda-sdk + provides = libcudart.so + provides = libcublas.so + provides = libcusolver.so + provides = libcusparse.so + conflicts = cuda + +pkgname = cuda12.0-tools + pkgdesc = NVIDIA's GPU programming toolkit (extra tools: nvvp, nsight) (version 12.0) + depends = cuda12.0 + depends = java-runtime=8 + depends = nss + optdepends = perl: required by some NVVP plugins + provides = cuda-tools + conflicts = cuda-tools diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d5460d9e6cf9 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,177 @@ +# Maintainer: Karl Ludwig Brennan <karlludwigbrennan@outlook.com> +# Contributer: Sven-Hendrik Haase <svenstaro@archlinux.org> +# Contributer: Konstantin Gizdov <arch@kge.pw> + +pkgname=(cuda12.0 cuda12.0-tools) +pkgbase=cuda12.0 +pkgver=12.0.1 +_driverver=525.85.12 +pkgrel=1 +pkgdesc="NVIDIA's GPU programming toolkit (version 12.0)" +arch=('x86_64') +url="https://developer.nvidia.com/cuda-zone" +license=('custom:NVIDIA') +depends=('gcc12-libs' 'gcc12' 'opencl-nvidia' 'nvidia-utils' 'python') +options=(!strip staticlibs) +install=cuda.install +source=(https://developer.download.nvidia.com/compute/cuda/${pkgver}/local_installers/cuda_${pkgver}_${_driverver}_linux.run + cuda.sh + cuda.conf + accinj64.pc + cublas.pc + cuda.pc + cudart.pc + cufft.pc + cufftw.pc + cuinj64.pc + curand.pc + cusolver.pc + cusparse.pc + nppc.pc + nppial.pc + nppicc.pc + nppicom.pc + nppidei.pc + nppif.pc + nppig.pc + nppim.pc + nppi.pc + nppist.pc + nppisu.pc + nppitc.pc + npps.pc + nvgraph.pc + nvidia-ml.pc + nvjpeg.pc + nvrtc.pc + nvToolsExt.pc) +sha512sums=('edd73c6e989e8469d73a8a8c4c927aa0654c1c299eff77c8b30dafd5da6e4e368626cec48978785f8e94fe8d1b7b73f1df6d5d03a80a6f58a07fa2d1f15c7f86' + '35f1f56411eecb2d978553f5606a0d6e70ad363cfaa9f37b9e6f12a799b041caa4aeca183341055d4789425dc4d62bee0aac68cc9d864155084b1ea571ee998f' + '714d973bc79446f73bebe85306b3566fe25b554bcbcba2fcbe76709a3eca71fb5d183ab4da2d3b5e9326cb9cd8d13a93f6d4a005ea5a41f7ef8e6c6e81e06b5e' + '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 +} + +build() { + local _prepdir="${srcdir}/prep" + + cd "${srcdir}/builds" + + rm -r NVIDIA*.run bin + mkdir -p "${_prepdir}/opt/cuda/extras" + mv integration nsight_compute nsight_systems EULA.txt "${_prepdir}/opt/cuda" + mv cuda_demo_suite/extras/demo_suite "${_prepdir}/opt/cuda/extras/demo_suite" + mv cuda_sanitizer_api/compute-sanitizer "${_prepdir}/opt/cuda/extras/compute-sanitizer" + rmdir cuda_sanitizer_api + for lib in *; do + if [[ "$lib" =~ .*"version.json".* ]]; then + continue + fi + cp -r $lib/* "${_prepdir}/opt/cuda/" + done + + # Delete some unnecessary files + rm -r "${_prepdir}"/opt/cuda/bin/cuda-uninstaller + + # Define compilers for CUDA to use. + # This allows us to use older versions of GCC if we have to. + ln -s /usr/bin/gcc-12 "${_prepdir}/opt/cuda/bin/gcc" + ln -s /usr/bin/g++-12 "${_prepdir}/opt/cuda/bin/g++" + + # Install profile and ld.so.config files + install -Dm755 "${srcdir}/cuda.sh" "${_prepdir}/etc/profile.d/cuda.sh" + install -Dm644 "${srcdir}/cuda.conf" "${_prepdir}/etc/ld.so.conf.d/cuda.conf" + + # Install pkgconfig files + mkdir -p "$_prepdir"/usr/lib/pkgconfig + cp "${srcdir}"/*.pc "${_prepdir}"/usr/lib/pkgconfig + + mkdir -p "${_prepdir}/usr/share/licenses/${pkgname}" + ln -s /opt/cuda/EULA.txt "${_prepdir}/usr/share/licenses/${pkgname}/EULA.txt" + ln -s /opt/cuda/README "${_prepdir}/usr/share/licenses/${pkgname}/README" + + # Add a symlink lib->lib64 as some libraries might expect that (FS#76951) + ln -s lib64 "${_prepdir}/opt/cuda/lib" + + # 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" "${_prepdir}"/opt/cuda/targets/x86_64-linux/include/crt/host_config.h + sed -i "/.*unsupported clang version.*/d" "${_prepdir}"/opt/cuda/targets/x86_64-linux/include/crt/host_config.h + + # Fix Makefile paths to CUDA + for f in $(find "$_prepdir"/opt/cuda -name Makefile); do + sed -i "s|/usr/local/cuda|/opt/cuda|g" "$f" + done +} + +package_cuda12.0() { +# replaces=('cuda-toolkit' 'cuda-sdk' 'cuda-static') + conflicts=('cuda') + provides=('cuda' 'cuda-toolkit' 'cuda-sdk' 'libcudart.so' 'libcublas.so' 'libcusolver.so' 'libcusparse.so') + optdepends=('gdb: for cuda-gdb' + 'glu: required for some profiling tools in CUPTI') + + local _prepdir="${srcdir}/prep" + + cd "${_prepdir}" + cp -al * "${pkgdir}" + + # remove broken links + rm "${pkgdir}"/opt/cuda/include/include + rm "${pkgdir}"/opt/cuda/lib64/lib64 + + rm -r "${pkgdir}"/opt/cuda/{bin/nvvp,bin/computeprof,libnvvp,nsight*} +} + +package_cuda12.0-tools() { + pkgdesc="NVIDIA's GPU programming toolkit (extra tools: nvvp, nsight) (version 12.0)" + conflicts=('cuda-tools') + provides=('cuda-tools') + depends=('cuda12.0' 'java-runtime=8' 'nss') + optdepends=('perl: required by some NVVP plugins') + + local _prepdir="${srcdir}/prep" + + mkdir -p "${pkgdir}/opt/cuda/bin" + mv "${_prepdir}"/opt/cuda/nsight* "${pkgdir}/opt/cuda" + mv "${_prepdir}"/opt/cuda/bin/nvvp "${pkgdir}/opt/cuda/bin/nvvp" + mv "${_prepdir}"/opt/cuda/bin/computeprof "${pkgdir}/opt/cuda/bin/computeprof" + mv "${_prepdir}"/opt/cuda/libnvvp "${pkgdir}/opt/cuda" + + # licenses + mkdir -p "${pkgdir}/usr/share/licenses" + ln -s /usr/share/licenses/cuda "${pkgdir}/usr/share/licenses/${pkgname}" +} + +# 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.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..6eca34486c4b --- /dev/null +++ b/cuda.sh @@ -0,0 +1,2 @@ +export CUDA_PATH=/opt/cuda +export PATH=$PATH:/opt/cuda/bin:/opt/cuda/nsight_compute:/opt/cuda/nsight_systems/bin 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} |