nvbandwidth
LOW
maintainer arichiardi
0 votes
scanned 2026-10-21 17:32:44.330620
Why flagged
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
Triggered rules
Low
Few votes, recently uploaded
zero_votes_recent
Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.
PKGBUILD
1
# Maintainer: Andrea Richiardi <a.richiardi.work at gmail dot com>
2
#
3
# nvbandwidth replaces the cuda-samples p2pBandwidthLatencyTest sample, which
4
# NVIDIA removed in the CUDA 13.4 samples update.
5
#
6
# Optional build environment variables, all read by CMake itself (see README.md):
7
# CUDACXX CUDA compiler (default /opt/cuda/bin/nvcc)
8
# CUDAHOSTCXX CUDA host C++ compiler (unset: nvcc default)
9
# CUDAARCHS GPU architectures (unset: upstream detects)
10
# CUDAFLAGS extra nvcc flags (unset)
11
# LDFLAGS extra linker flags (unset: use -L when the driver
12
# userspace is outside /usr/lib)
13
14
pkgname=nvbandwidth
15
pkgver=0.10.0
16
pkgrel=1
17
pkgdesc='Bandwidth measurements on NVIDIA GPUs, including device-to-device P2P'
18
arch=('x86_64')
19
url='https://github.com/NVIDIA/nvbandwidth'
20
license=('Apache-2.0')
21
depends=('cuda')
22
makedepends=('cmake')
23
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
24
sha256sums=('37fc32ef8b2b6c3f08591b7564c497cb501d8899badf72b4c73753c51230cb70')
25
26
build() {
27
cd "$srcdir"
28
29
# nvcc may not be in PATH on Arch; the cuda package installs to /opt/cuda.
30
export CUDACXX="${CUDACXX:-/opt/cuda/bin/nvcc}"
31
32
# Upstream reads CMAKE_CUDA_ARCHITECTURES before project() and then unsets
33
# the value that CMake initialises from CUDAARCHS, so forward it instead.
34
local _cmake_args=()
35
[[ -n "${CUDAARCHS:-}" ]] && _cmake_args+=(-DCMAKE_CUDA_ARCHITECTURES="$CUDAARCHS")
36
37
cmake -Wno-author -S "$pkgname-$pkgver" -B build \
38
-DCMAKE_BUILD_TYPE=Release \
39
-DCMAKE_INSTALL_PREFIX=/usr \
40
"${_cmake_args[@]}"
41
cmake --build build --parallel "$(nproc)"
42
}
43
44
package() {
45
cd "$srcdir"
46
47
install -Dm755 build/nvbandwidth "$pkgdir/usr/bin/nvbandwidth"
48
install -Dm644 "$pkgname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
49
install -Dm644 "$pkgname-$pkgver/Licenses.txt" "$pkgdir/usr/share/licenses/$pkgname/Licenses.txt"
50
install -Dm644 "$pkgname-$pkgver/README.md" "$pkgdir/usr/share/doc/$pkgname/README.md"
51
}
52
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-21 17:32:44 | Low | 1 |