summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Bermond2021-02-06 22:45:16 +0000
committerDaniel Bermond2021-02-06 22:45:16 +0000
commit7c4b5a26cc98eb0ca205fe4da1cb1e34b2bc98fd (patch)
treeacf35c647b0151003a4d45eefb4d9c38b92f3d47
downloadaur-7c4b5a26cc98eb0ca205fe4da1cb1e34b2bc98fd.tar.gz
Initial commit
-rw-r--r--.SRCINFO104
-rw-r--r--PKGBUILD148
-rw-r--r--accinj64.pc9
-rw-r--r--cublas.pc9
-rw-r--r--cuda-findgllib_mk.patch22
-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, 542 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..38c048d60334
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,104 @@
+pkgbase = cuda11.1
+ pkgdesc = NVIDIA's GPU programming toolkit (version 11.1)
+ pkgver = 11.1.1
+ 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
+ depends = python
+ optdepends = gdb: for cuda-gdb
+ 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.1.1/local_installers/cuda_11.1.1_455.32.00_linux.run
+ source = cuda.sh
+ source = cuda.conf
+ source = cuda-findgllib_mk.patch
+ 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
+ sha256sums = 3eae6727086024925ebbcef3e9a45ad379d8490768fd00f9c2d8b6fd9cd8dd8f
+ sha256sums = 2a1c3d55d15a8b816f9dd2947ef3d0afaf748fb0dc4ec21f260c04e065769ac9
+ sha256sums = a65f7d96e2447eb40b1be9586b90eb0bd776a8938c93d21f9606d2880b548b28
+ sha256sums = 958ef464478ef960ca07476990942ad4c656b9823cc0ef71ce0e97fcaa82c887
+ sha256sums = 3654c4773f1e3f70092098b6bb52f7c095ed43ee9a61067cc8876ad6fb03cedd
+ sha256sums = 6878fe674bb533c021b920c2f3d4fc0b95454eb6141b5ccac57a74eca9904b92
+ sha256sums = 6e38217476185b8e6a633f3e4596f34492f0e0880b5de53c38add6faab154d1f
+ sha256sums = 4be68975d323ff26b17ac477a8fdde3060f1e68ff3eae4a0a82a52f46cf5d57d
+ sha256sums = ab905fddc2c5593dd6d9ca011dfdfb5fee35986132a864b5180d10f2e8e6fe53
+ sha256sums = 63e7df2965ef1c94af536bf82a5e3b1225793902c72017e9a9feac977488d2f5
+ sha256sums = 3610ce81ca80c6f68ec3bc30e192f51b1b8094884431aa5821326135ffc09b48
+ sha256sums = aaa0b71bbe54ad5c92ad4447ac542628c8f12781d1dd3fc9450662062fa8348d
+ sha256sums = 7a53c0fbca16cf1c0ddfa389d697d345e96112e38d5bfb00e4bedba49df1a8e9
+ sha256sums = d5e4355337cce3c87eec1d15369e9cdca3d1028b212a1c3e66784a1edec0c2e5
+ sha256sums = 206e18de162d9cc62bad19aaf5df5f5609fc9cba87d2e4bfd3453f849edc9f12
+ sha256sums = ad07b922bb5203925c426709cc995c83f9b103bbe71d8ca406517332ef3081e2
+ sha256sums = c7beeba38c2f0bcc47f4e6388124fd73ed5266d9345ff02c65bb6fe41c006073
+ sha256sums = d91f226fd4f3723e6bd04f63dcb2a4cd0246edf46461a7bac75464392ebf7798
+ sha256sums = 2ef2365d1b9c8e1cee37d2352ce20ddd33e0b955a9a9a206ff4135267675ea87
+ sha256sums = 51a951b78b1568be629e60d4f5be71c7c1a3eb463fa16abf37ec73b87f70434e
+ sha256sums = 04a8c95046183e9e79d00bc029b276625d074854f36ccb25ac5f8c78bf00e44e
+ sha256sums = 3f2c846828ed83ca94ef1b3d47a2feed6e56f515b0a0f743780475ab9f1af641
+ sha256sums = ac1d0653d8a6f0df4de8e59762eefefe3a8bb62ac84aa00e26bcfa1433081459
+ sha256sums = 0228de3a302889009fbafdc50589657e219ed9b30346c2da82ea70bda7679399
+ sha256sums = 0a46b8bd52b669ddf26010f75d32baf07e0156b881d2e2befddefd0ab3d1933a
+ sha256sums = a379d9d9127333a879db7db7f0a11eb391f5c0d81f63f700d7b5c0956b3fd81c
+ sha256sums = 7012e58213068b9ebcde0ee1eb484898ed38f540860ea9983e7d3949b1f3376b
+ sha256sums = 868e45474f3fb08aecb6b09d2bedfb28e830a2a1c386b18d4f8e6191cf70459a
+ sha256sums = 7bb1e1b564ffeb545eb125ec58ee9b5f77819fe0f3a4961229fa2906d519c532
+ sha256sums = 9355be826b43e6009ce1bf5a037cf9559389c2ff3592e6c1206740f3fe9b0ee1
+ sha256sums = e8e417400406a976e96c08b1522920543097e2a08ac3417ce574155980c5558f
+ sha256sums = 87ac1265d4f9d35f6d68de9205647c46e8f2523458e8d28b65c57af4e0b27d5d
+
+pkgname = cuda11.1
+ provides = cuda-toolkit
+ provides = cuda-sdk
+ provides = cuda=11.1
+ conflicts = cuda
+ replaces = cuda-toolkit
+ replaces = cuda-sdk
+ replaces = cuda-static
+
+pkgname = cuda11.1-tools
+ pkgdesc = NVIDIA's GPU programming toolkit (extra tools: nvvp, nsight) (version 11.1)
+ depends = cuda
+ depends = java-runtime=8
+ depends = nss
+ provides = cuda-toolkit
+ provides = cuda-sdk
+ provides = cuda-tools=11.1
+ conflicts = cuda-tools
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..24fa1fddf25b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,148 @@
+# Maintainer : Daniel Bermond <dbermond@archlinux.org>
+# Contributor: Sven-Hendrik Haase <svenstaro@gmail.com>
+# Contributor: Konstantin Gizdov <arch@kge.pw>
+
+pkgbase=cuda11.1
+pkgname=('cuda11.1' 'cuda11.1-tools')
+pkgver=11.1.1
+_driverver=455.32.00
+pkgrel=1
+pkgdesc="NVIDIA's GPU programming toolkit (version 11.1)"
+arch=('x86_64')
+url='https://developer.nvidia.com/cuda-zone'
+license=('custom:NVIDIA')
+depends=('gcc-libs' 'gcc' 'opencl-nvidia' 'nvidia-utils' 'python')
+optdepends=('gdb: for cuda-gdb')
+provides=('cuda-toolkit' 'cuda-sdk')
+replaces=('cuda-toolkit' 'cuda-sdk')
+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.patch'
+ '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')
+sha256sums=('3eae6727086024925ebbcef3e9a45ad379d8490768fd00f9c2d8b6fd9cd8dd8f'
+ '2a1c3d55d15a8b816f9dd2947ef3d0afaf748fb0dc4ec21f260c04e065769ac9'
+ 'a65f7d96e2447eb40b1be9586b90eb0bd776a8938c93d21f9606d2880b548b28'
+ '958ef464478ef960ca07476990942ad4c656b9823cc0ef71ce0e97fcaa82c887'
+ '3654c4773f1e3f70092098b6bb52f7c095ed43ee9a61067cc8876ad6fb03cedd'
+ '6878fe674bb533c021b920c2f3d4fc0b95454eb6141b5ccac57a74eca9904b92'
+ '6e38217476185b8e6a633f3e4596f34492f0e0880b5de53c38add6faab154d1f'
+ '4be68975d323ff26b17ac477a8fdde3060f1e68ff3eae4a0a82a52f46cf5d57d'
+ 'ab905fddc2c5593dd6d9ca011dfdfb5fee35986132a864b5180d10f2e8e6fe53'
+ '63e7df2965ef1c94af536bf82a5e3b1225793902c72017e9a9feac977488d2f5'
+ '3610ce81ca80c6f68ec3bc30e192f51b1b8094884431aa5821326135ffc09b48'
+ 'aaa0b71bbe54ad5c92ad4447ac542628c8f12781d1dd3fc9450662062fa8348d'
+ '7a53c0fbca16cf1c0ddfa389d697d345e96112e38d5bfb00e4bedba49df1a8e9'
+ 'd5e4355337cce3c87eec1d15369e9cdca3d1028b212a1c3e66784a1edec0c2e5'
+ '206e18de162d9cc62bad19aaf5df5f5609fc9cba87d2e4bfd3453f849edc9f12'
+ 'ad07b922bb5203925c426709cc995c83f9b103bbe71d8ca406517332ef3081e2'
+ 'c7beeba38c2f0bcc47f4e6388124fd73ed5266d9345ff02c65bb6fe41c006073'
+ 'd91f226fd4f3723e6bd04f63dcb2a4cd0246edf46461a7bac75464392ebf7798'
+ '2ef2365d1b9c8e1cee37d2352ce20ddd33e0b955a9a9a206ff4135267675ea87'
+ '51a951b78b1568be629e60d4f5be71c7c1a3eb463fa16abf37ec73b87f70434e'
+ '04a8c95046183e9e79d00bc029b276625d074854f36ccb25ac5f8c78bf00e44e'
+ '3f2c846828ed83ca94ef1b3d47a2feed6e56f515b0a0f743780475ab9f1af641'
+ 'ac1d0653d8a6f0df4de8e59762eefefe3a8bb62ac84aa00e26bcfa1433081459'
+ '0228de3a302889009fbafdc50589657e219ed9b30346c2da82ea70bda7679399'
+ '0a46b8bd52b669ddf26010f75d32baf07e0156b881d2e2befddefd0ab3d1933a'
+ 'a379d9d9127333a879db7db7f0a11eb391f5c0d81f63f700d7b5c0956b3fd81c'
+ '7012e58213068b9ebcde0ee1eb484898ed38f540860ea9983e7d3949b1f3376b'
+ '868e45474f3fb08aecb6b09d2bedfb28e830a2a1c386b18d4f8e6191cf70459a'
+ '7bb1e1b564ffeb545eb125ec58ee9b5f77819fe0f3a4961229fa2906d519c532'
+ '9355be826b43e6009ce1bf5a037cf9559389c2ff3592e6c1206740f3fe9b0ee1'
+ 'e8e417400406a976e96c08b1522920543097e2a08ac3417ce574155980c5558f'
+ '87ac1265d4f9d35f6d68de9205647c46e8f2523458e8d28b65c57af4e0b27d5d')
+
+prepare() {
+ sh "cuda_${pkgver}_${_driverver}_linux.run" --target "$srcdir" --noexec
+
+ # Fix up samples tht use findgllib.mk
+ local _file
+ for _file in builds/cuda_samples/*/*/findgllib.mk
+ do
+ patch -Np1 -i cuda-findgllib_mk.patch "$_file"
+ done
+}
+
+build() {
+ local _prepdir="${srcdir}/prep"
+
+ cd "${srcdir}/builds"
+
+ rm -r NVIDIA*.run bin
+ mkdir -p "${_prepdir}/opt/cuda/extras"
+ mv cuda_samples "${_prepdir}/opt/cuda/samples"
+ mv integration nsight_compute nsight_systems EULA.txt "${_prepdir}/opt/cuda"
+ mv cuda_sanitizer_api/compute-sanitizer "${_prepdir}/opt/cuda/extras/compute-sanitizer"
+ rmdir cuda_sanitizer_api
+ local _lib
+ for _lib in *
+ do
+ cp -r "$_lib"/* "${_prepdir}/opt/cuda/"
+ done
+
+ # Delete some unnecessary files
+ rm -r "$_prepdir"/opt/cuda/{bin/cuda-uninstaller,samples/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 "${_prepdir}/opt/cuda/bin/gcc"
+ ln -s /usr/bin/g++ "${_prepdir}/opt/cuda/bin/g++"
+
+ # Install profile and ld.so.config files
+ install -D -m755 "${srcdir}/cuda.sh" "${_prepdir}/etc/profile.d/cuda.sh"
+ install -D -m644 "${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/doc/pdf/EULA.pdf "${_prepdir}/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" "$_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
+ local _file
+ for _file in $(find "$_prepdir"/opt/cuda -name Makefile)
+ do
+ sed -i 's|/usr/local/cuda|/opt/cuda|g' "$_file"
+ done
+}
+
+package_cuda11.1() {
+ provides+=('cuda=11.1')
+ conflicts+=('cuda')
+ replaces+=('cuda-static')
+
+ local _prepdir="${srcdir}/prep"
+
+ cd "$_prepdir"
+ cp -al * "$pkgdir"
+
+ rm -r "$pkgdir"/opt/cuda/{bin/nvvp,bin/computeprof,libnvvp,nsight*}
+}
+
+package_cuda11.1-tools() {
+ pkgdesc="NVIDIA's GPU programming toolkit (extra tools: nvvp, nsight) (version 11.1)"
+ depends=('cuda' 'java-runtime=8' 'nss')
+ provides+=('cuda-tools=11.1')
+ conflicts+=('cuda-tools')
+
+ 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"
+}
diff --git a/accinj64.pc b/accinj64.pc
new file mode 100644
index 000000000000..7dee17f9b8b2
--- /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.1
+Libs: -L${libdir} -laccinj64
+Cflags: -I${includedir}
diff --git a/cublas.pc b/cublas.pc
new file mode 100644
index 000000000000..b75c20107389
--- /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.1
+Libs: -L${libdir} -lcublas
+Cflags: -I${includedir}
diff --git a/cuda-findgllib_mk.patch b/cuda-findgllib_mk.patch
new file mode 100644
index 000000000000..336bd3f60af9
--- /dev/null
+++ b/cuda-findgllib_mk.patch
@@ -0,0 +1,22 @@
+--- a/findgllib.mk
++++ b/findgllib.mk
+@@ -60,6 +60,7 @@ ifeq ("$(TARGET_OS)","linux")
+ 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
+@@ -108,6 +109,11 @@ ifeq ("$(TARGET_OS)","linux")
+ 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
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..cf64a5d0d325
--- /dev/null
+++ b/cuda.install
@@ -0,0 +1,11 @@
+post_install() {
+ printf '%s\n' 'The cuda binaries are in /opt/cuda/bin'
+ printf '%s\n' 'The cuda samples are in /opt/cuda/samples'
+ printf '%s\n' 'The cuda docs are in /opt/cuda/doc'
+ printf '%s\n' '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..b9bbf179d3d5
--- /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.1
+Libs: -L${libdir} -lcuda
+Cflags: -I${includedir}
diff --git a/cuda.sh b/cuda.sh
new file mode 100644
index 000000000000..e6c09c7ddd2d
--- /dev/null
+++ b/cuda.sh
@@ -0,0 +1,2 @@
+export CUDA_PATH='/opt/cuda'
+export PATH="${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..ac8fced88455
--- /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.1
+Libs: -L${libdir} -lcudart
+Cflags: -I${includedir}
diff --git a/cufft.pc b/cufft.pc
new file mode 100644
index 000000000000..785b11f9670d
--- /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.1
+Libs: -L${libdir} -lcufft
+Cflags: -I${includedir}
diff --git a/cufftw.pc b/cufftw.pc
new file mode 100644
index 000000000000..4a39e8db3a5b
--- /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.1
+Libs: -L${libdir} -lcufftw
+Cflags: -I${includedir}
diff --git a/cuinj64.pc b/cuinj64.pc
new file mode 100644
index 000000000000..18c81c612fa6
--- /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.1
+Libs: -L${libdir} -lcuinj64
+Cflags: -I${includedir}
diff --git a/curand.pc b/curand.pc
new file mode 100644
index 000000000000..f716f9807d6d
--- /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.1
+Libs: -L${libdir} -lcurand
+Cflags: -I${includedir}
diff --git a/cusolver.pc b/cusolver.pc
new file mode 100644
index 000000000000..c7505bf7a2d5
--- /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.1
+Libs: -L${libdir} -lcusolver
+Cflags: -I${includedir}
diff --git a/cusparse.pc b/cusparse.pc
new file mode 100644
index 000000000000..5e4d47843cf0
--- /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.1
+Libs: -L${libdir} -lcusparse
+Cflags: -I${includedir}
diff --git a/nppc.pc b/nppc.pc
new file mode 100644
index 000000000000..e44ee9e8bb51
--- /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.1
+Libs: -L${libdir} -lnppc
+Cflags: -I${includedir}
diff --git a/nppi.pc b/nppi.pc
new file mode 100644
index 000000000000..3e99c15533f2
--- /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.1
+Libs: -L${libdir} -lnppi
+Cflags: -I${includedir}
diff --git a/nppial.pc b/nppial.pc
new file mode 100644
index 000000000000..b14caa49d4ab
--- /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.1
+Libs: -L${libdir} -lnppial
+Cflags: -I${includedir}
diff --git a/nppicc.pc b/nppicc.pc
new file mode 100644
index 000000000000..b3fd1ff66a18
--- /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.1
+Libs: -L${libdir} -lnppicc
+Cflags: -I${includedir}
diff --git a/nppicom.pc b/nppicom.pc
new file mode 100644
index 000000000000..89343f7deac2
--- /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.1
+Libs: -L${libdir} -lnppicom
+Cflags: -I${includedir}
diff --git a/nppidei.pc b/nppidei.pc
new file mode 100644
index 000000000000..f5d45f6bb23a
--- /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.1
+Libs: -L${libdir} -lnppidei
+Cflags: -I${includedir}
diff --git a/nppif.pc b/nppif.pc
new file mode 100644
index 000000000000..bc6f80a29bef
--- /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.1
+Libs: -L${libdir} -lnppif
+Cflags: -I${includedir}
diff --git a/nppig.pc b/nppig.pc
new file mode 100644
index 000000000000..995c3ddda2f9
--- /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.1
+Libs: -L${libdir} -lnppig
+Cflags: -I${includedir}
diff --git a/nppim.pc b/nppim.pc
new file mode 100644
index 000000000000..b898f48e07e8
--- /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.1
+Libs: -L${libdir} -lnppim
+Cflags: -I${includedir}
diff --git a/nppist.pc b/nppist.pc
new file mode 100644
index 000000000000..d0d99e0f7380
--- /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.1
+Libs: -L${libdir} -lnppist
+Cflags: -I${includedir}
diff --git a/nppisu.pc b/nppisu.pc
new file mode 100644
index 000000000000..0fb0dc49d9b4
--- /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.1
+Libs: -L${libdir} -lnppisu
+Cflags: -I${includedir}
diff --git a/nppitc.pc b/nppitc.pc
new file mode 100644
index 000000000000..5064339fdfb2
--- /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.1
+Libs: -L${libdir} -lnppitc
+Cflags: -I${includedir}
diff --git a/npps.pc b/npps.pc
new file mode 100644
index 000000000000..dd262f03f95e
--- /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.1
+Libs: -L${libdir} -lnpps
+Cflags: -I${includedir}
diff --git a/nvToolsExt.pc b/nvToolsExt.pc
new file mode 100644
index 000000000000..30e8369a6ac5
--- /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.1
+Libs: -L${libdir} -lnvToolsExt
+Cflags: -I${includedir}
diff --git a/nvgraph.pc b/nvgraph.pc
new file mode 100644
index 000000000000..d19f41db2ad8
--- /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.1
+Libs: -L${libdir} -lnvgraph
+Cflags: -I${includedir}
diff --git a/nvidia-ml.pc b/nvidia-ml.pc
new file mode 100644
index 000000000000..eaacb9ba1c02
--- /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.1
+Libs: -L${libdir}/stubs -lnvidia-ml
+Cflags: -I${includedir}
diff --git a/nvjpeg.pc b/nvjpeg.pc
new file mode 100644
index 000000000000..3b7196b6e0ab
--- /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.1
+Libs: -L${libdir} -lnvjpeg
+Cflags: -I${includedir}
diff --git a/nvrtc.pc b/nvrtc.pc
new file mode 100644
index 000000000000..76e8069f9c4f
--- /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.1
+Libs: -L${libdir} -lnvrtc
+Cflags: -I${includedir}