ROCM-TARGET-ARCH(1)
π rocm-target-arch β the rocm-target-arch manual page, bestie edition π
okay so this is rocm-target-arch(1), a lil User Command, and girl it is so niche but so useful. come sit with me β¨
πΈ NAME πΈ
rocm-target-arch β literally just rocm-target-arch. that's the name. iconic of it honestly π
π DESCRIPTION π
here's how you call it:
Usage: bin/rocm-target-arch [ --dist <dist> ] [ --sep <sep> ]
so what is this thing? it's a package build helper for figuring out your ROCm target architectures. that's the whole job. that's the assignment π«Ά
the architectures come from central lists that the Debian ROCm Team maintains, one per distribution. and if there's no list for your current distribution? no stress β it falls back to the list for Debian's unstable (a.k.a. sid) distribution. fallback queen behavior π
the distribution itself gets read from debian/changelog. and here's a lil plot twist: if the distribution is unstable or experimental and the build host is Ubuntu, then ubuntu-devel is used instead. you can override all of that with the --dist option if you want to be the main character π
now, if you use the --reduce option, it gets spicy πΆοΈ β if any build dependency (or one of its dependencies) listed in debian/control has an X-ROCm-GPU-Architecture attribute, then the list of target architectures gets correspondingly reduced. heads up though: this entails a call to dpkg-checkbuilddeps.
the default separator is the space character ' '. you can override it with --sep, and ngl the separator can be any arbitrary string you want. go feral π¦
oh and bestie, listen: if the environment variable ROCM_TARGET_ARCH_FIXED is set to a spaceseparated of architectures, then that list gets emitted instead. super handy for package maintainers who want quick local builds with fewer or just architecture during development, without needing to modify d/rules. also useful for Salsa CI. we love a flexible queen π
β¨ OPTIONS β¨
-hβ show this help. the classic. the goat π--dist <dist>β emit the list for<dist>instead. (remember,<dist>is the distribution you're targeting π)--sep <sep>β when emitting the list, use<sep>as the separator. any string, no cap π--reduceβ reduce the list of supported architectures as per the B-Ds. π
π reminder that--reducewill hit updpkg-checkbuilddeps, so don't act surprised when it does exactly that.
okay that's the whole page, hope you ate it up π this was written by the Debian crew and the source/version line says debian, dated July 2026 β so like, manifesting that timeline energy with you, mwah π bye bestie, go build something cute β¨π
π¦ where this page comes from
- ubuntu stonking: pkg-rocm-tools 0.9.8ubuntu2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms