nvbandwidth

LOW
maintainer arichiardi 0 votes scanned 2026-10-21 17:32:44.330620
View on AUR
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
14pkgname=nvbandwidth
15pkgver=0.10.0
16pkgrel=1
17pkgdesc='Bandwidth measurements on NVIDIA GPUs, including device-to-device P2P'
18arch=('x86_64')
19url='https://github.com/NVIDIA/nvbandwidth'
20license=('Apache-2.0')
21depends=('cuda')
22makedepends=('cmake')
23source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
24sha256sums=('37fc32ef8b2b6c3f08591b7564c497cb501d8899badf72b4c73753c51230cb70')
25
26build() {
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
44package() {
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)SeverityRules
2026-10-21 17:32:44 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion