DFSG NEW Queue

DFSG, Licensing & New Packages Team

amd-device-libs-22 7.2.4+ds-1~exp1

Package Information

DescriptionAMD specific device-side language runtime libraries

Set of AMD specific device-side language runtime libraries, specifically: the Open Compute library controls, the Open Compute Math library, the Open Compute Kernel library, the OpenCL built-in library, the HIP built-in library, and the Heterogeneous Compute built-in library.

MaintainerDebian ROCm Team <debian-ai@lists.debian.org>
Changed ByCordell Bloor <cgmb@debian.org>
Sponsorcgmb@debian.org
Distributionexperimental
Architectureany
VCSgit: https://salsa.debian.org/rocm-team/amd-device-libs.git (browse)
Trackerhttps://tracker.debian.org/pkg/amd-device-libs-22
Uploaded1 day ago

New Package Report

.changes◂
Distributionexperimental
DateFri, 13 Nov 2026 16:29:37 -0600
Sourceamd-device-libs-22
Version7.2.4+ds-1~exp1
Changed-ByCordell Bloor <cgmb@debian.org>
Architecturesource amd64
Changelog◂
amd-device-libs-22 (7.2.4+ds-1~exp1) experimental; urgency=medium
 .
   * Initial packaging
      * Move rocm-device-libs-22 binary package from src:rocm-llvm
        to src:amd-device-libs-22
.dsc◂
Componentmain
Package-Listrocm-device-libs-22 deb libs optional arch=any
Sectionlibs
Priorityoptional
debian/copyright◂
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: llvm-project
Source: https://github.com/ROCm/llvm-project
Files-Excluded: amd/comgr
                amd/git-hooks
                amd/hipcc
                amd/README.md
                amd/utils
                .azuredevops
                .ci
                .clang-format
                .clang-format-ignore
                .clang-tidy
                .git-blame-ignore-revs
                .gitattributes
                .github
                .gitignore
                .mailmap
                CODE_OF_CONDUCT.md
                CONTRIBUTING.md
                LICENSE.TXT
                README.md
                SECURITY.md
                bolt
                clang
                clang-tools-extra
                cmake
                compiler-rt
                cross-project-tests
                flang
                flang-rt
                libc
                libclc
                libcxx
                libcxxabi
                libsycl
                libunwind
                lld
                lldb
                llvm
                llvm-libgcc
                mlir
                offload
                openmp
                orc-rt
                polly
                pstl
                pyproject.toml
                revert_patches.txt
                runtimes
                third-party
                utils
Comment: These are LLVM sources from upstream repository, but
 we only want to build the device-libs component. We isolate the
 device-libs for two reasons: (1) there's a B-D chain where comgr
 needs rocr-runtime, which needs the device-libs, which is cyclical
 if comgr and device-libs are produced by from the same source
 package, and (2) the device-libs binaries are compiled to LLVM bitcode
 and are therefore only guaranteed to be compatible with the LLVM
 major version that built them.

Files: amd/device-libs/*
Copyright: 2014-2016, Advanced Micro Devices, Inc.
License: NCSA

Files: amd/device-libs/ocml/src/erfcD.cl
       amd/device-libs/ocml/src/erfcF.cl
       amd/device-libs/ocml/src/lgamma_rD.cl
       amd/device-libs/ocml/src/lgamma_rF.cl
Copyright: 2014-2016, Advanced Micro Devices, Inc.
           1993, Sun Microsystems, Inc.
License: NCSA and SunPro
Comment: These files began with Sun's netlib erf/lgamma implementations and
 were extended by AMD. AMD's contributions are distributed under NCSA, while
 the SunPro permissive notice is retained for the portions derived from Sun's
 original code, as required by that notice.

Files: debian/*
Copyright: 2022, Maxime Chambonnet <maxzor@maxzor.eu>
           2022-2023, Étienne Mollier <emollier@debian.org>
           2022-2026, Cordell Bloor <cgmb@debian.org>
           2024, Xuanteng Huang <xuanteng.huang@outlook.com>
           2024, Christian Kastner <ckk@debian.org>
           2025, Igor Luppi <igor.luppi@canonical.com>
           2025-2026, Talha Can Havadar <havadartalha@gmail.com>
License: Expat
Comment: The debian metafiles originated from src:rocm-llvm, but have had
 further modifications and updates.

License: Expat
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:
 .
 The above copyright notice and this permission notice shall be included in
 all copies or substantial portions of the Software.
 .
 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 THE SOFTWARE.

License: SunPro
 Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
 .
 Developed at SunPro, a Sun Microsystems, Inc. business.
 Permission to use, copy, modify, and distribute this
 software is freely granted, provided that this notice
 is preserved.

License: NCSA
 University of Illinois/NCSA
 Open Source License
 .
 All rights reserved.
 .
 Permission is hereby granted, free of charge, to any person obtaining a copy of
 this software and associated documentation files (the "Software"), to deal with
 the Software without restriction, including without limitation the rights to
 use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
 of the Software, and to permit persons to whom the Software is furnished to do
 so, subject to the following conditions:
 .
 * Redistributions of source code must retain the above copyright notice,
   this list of conditions and the following disclaimers.
 * Redistributions in binary form must reproduce the above copyright notice,
   this list of conditions and the following disclaimers in the
   documentation and/or other materials provided with the distribution.
 * Neither the names of the LLVM Team, University of Illinois at
   Urbana-Champaign, nor the names of its contributors may be used to
   endorse or promote products derived from this Software without specific
   prior written permission.
 .
 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
 FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
 CONTRIBUTORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE
 SOFTWARE.

DFSG Assistant LLM REVIEW 0 blocker, 0 important, 1 minor

This is an LLM based review using a Debian Inference based workflow. It was not written by a member of the DFSG team and has not been checked by one. It is not a decision on the package: it may be wrong, and it may have missed things.

Reviewed 1 day ago.

Report◂

DFSG NEW review for amd-device-libs-22 version 7.2.4+ds-1~exp1

Summary

  • Licensing is DFSG-compliant and debian/copyright is accurate: Yes
  • Packaging is of good quality: Yes
  • Issues: 0 blocker, 0 important, 1 minor
  • debian/watch: version 5
  • debian/copyright: machine-readable
  • Scan before the review: nothing found

Licensing

debian/copyright is DEP-5, and every file in the source package (amd/device-libs/** plus debian/*) is covered by one of its three Files stanzas. All of amd/device-libs is AMD's under the NCSA licence, whose full text is reproduced; the four files derived from Sun's fdlibm code (erfcD/F.cl, lgamma_rD/F.cl) are listed separately as 'NCSA and SunPro' with the Sun notice reproduced verbatim. Both licences are free and mutually compatible, no file carries non-free terms, and no file lacks a licence. The repack is coherent: the orig tarball contains only amd/device-libs, matching Files-Excluded.

Packaging

Straightforward, well-formed packaging: debhelper compat 14 with a minimal, correct rules file, Build-Depends limited to what the CMake build uses, two autopkgtests, Vcs-* fields, and a Standard-Version matching current Policy. The version 7.2.4+ds-1exp1 sorts above 7.2.4+dfsg-1exp1, the version from which the archive's rocm-device-libs-22 binary currently comes (src:rocm-llvm), so the binary package moves without an upgrade problem. One real defect: the installed AMDDeviceLibs CMake config computes its install prefix from its own location and therefore exports imported targets at a path where this package does not put the bitcode.

Issues

minor packaging 1. AMDDeviceLibs CMake config exports imported targets under /usr/lib/amdgcn/bitcode, where the bitcode is not installed ◂
  • Files: debian/rocm-device-libs-22.install:1-2, amd/device-libs/cmake/Packages.cmake:1-30
  • Basis: inferred from what was read, not seen directly
  • Evidence: Packages.cmake: set(PACKAGE_PREFIX ${CMAKE_INSTALL_LIBDIR}/cmake/AMDDeviceLibs), then one get_filename_component(... PATH) per component of that prefix, and IMPORTED_LOCATION "${AMD_DEVICE_LIBS_PREFIX}/amdgcn/bitcode/...". The install file moves the config to /usr/lib/llvm-22/lib/cmake/AMDDeviceLibs and the bitcode to usr/lib/llvm-22/lib/clang/22 (usr/amdgcn usr/lib/llvm-22/lib/clang/22).
  • Problem: dh_auto_configure passes -DCMAKE_INSTALL_LIBDIR=lib/x86_64-linux-gnu, so the generated config strips four path components: from /usr/lib/llvm-22/lib/cmake/AMDDeviceLibs it derives the prefix /usr/lib and exports every target as /usr/lib/amdgcn/bitcode/.bc. The .bc files are installed at /usr/lib/llvm-22/lib/clang/22/amdgcn/bitcode. find_package(AMDDeviceLibs) still succeeds (which is all the cmake-find-package autopkgtest checks), but any consumer that links an exported target gets a missing-file error. Even without the relocation to /usr/lib/llvm-22 the prefix would come out as /usr, so the config never matches the bitcode location chosen here.
  • Fix: Make the config's derived prefix land on the directory that contains amdgcn/bitcode - e.g. install it so that the four stripped components land on /usr/lib/llvm-22/lib/clang/22, or patch the generated AMD_DEVICE_LIBS_PREFIX to that path - and extend debian/tests/cmake-find-package to link against one of the imported targets so the location is tested.
Verified ◂
  • Read debian/copyright in full: it is DEP-5 with the exact current Format URI, Files-Excluded, three Files stanzas (amd/device-libs/, the four Sun-derived ocml sources, debian/) and stand-alone Licence paragraphs for Expat, NCSA and SunPro.
  • Inventoried the whole tree (713 files, amd/device-libs/** plus debian/): the only licence file is amd/device-libs/LICENSE.TXT (NCSA, 'Copyright (c) 2014-2016, Advanced Micro Devices, Inc.'); 676 files carry the uniform 'distributed under the University of Illinois Open Source License' header; the only other copyright notices are the Sun 1993 notices in erfcD.cl, erfcF.cl, lgamma_rD.cl and lgamma_rF.cl, all four covered by their own stanza and the SunPro licence text.
  • The dir prescan reported no built/minified/PDF files and no non-free licence wording, and that every holder it found is named in debian/copyright; I confirmed AMD (2014-2016) and Sun (1993) are the only holders with notices in the tree.
  • No non-free wording (non-commercial, no-modification, field-of-use) anywhere in the tree; NCSA and the SunPro permission are both free and compatible, and are combined only within files whose stanza says 'NCSA and SunPro'.
  • Unpacked both tarballs: the orig tarball contains only llvm-project-rocm-7.2.4/amd/device-libs (Files-Excluded names nothing still present), and the debian tarball contains only debian/, with no debian/patches.
  • apt-cache: rocm-device-libs-22 7.2.4+dfsg-1exp1 currently comes from src:rocm-llvm; the new 7.2.4+ds-1exp1 sorts higher (dfsg < ds), so the binary moves without a downgrade.
  • Build-Depends and tests/control dependencies exist in the archive: clang-22 1:22.1.8-3, libclang-22-dev, llvm-22-dev (which pulls llvm-22 and llvm-22-tools, so FileCheck and opt/llvm-link are present), libclang-rt-22-dev, lld-22, libamdhip64-dev 7.2.4-1~exp2.
  • debian/not-installed lists exactly the upstream-installed usr/share/doc/rocm-device-libs/LICENSE.TXT, which dh_missing supports; the licence text itself reaches the binary through debian/copyright, so dropping that copy does not lose a required notice.
  • Standards-Version 4.7.4 against Policy 4.7.4.1: first two components match, so it is current.
  • uscan found the packaged version as the newest upstream release (upstream 7.2.4, packaged 7.2.4+ds).
Not confirmed ◂
  • Could not run clang-22, so I did not confirm that clang finds the bitcode at /usr/lib/llvm-22/lib/clang/22/amdgcn/bitcode; the hip-clang-build autopkgtest compiles for gfx1100 and would show it.
  • The -target-feature +lerp-inst/+cube-insts/+qsad-insts/+sad-insts flags forced through CLANG_OPTIONS_APPEND in debian/rules are said to be needed for the generic bitcode to compile against LLVM 22; I could not check whether the resulting target-features are harmless on GPUs that lack those instructions.
Proposed changes ◂

None.

Uploader's response to the LLM review

The exported AMDDeviceLibs CMake config path bug reported by the LLM is probably a real bug, but it has almost no impact on the usability of the package. Clang automatically searches makes use of the device-libs found in its resource directory, so only very specialized software will use CMake to search for and make use of the AMDDeviceLibs targets or variables. I'll look into fixing that bug for the unstable upload, but it has very minimal impact on the usability of the package, so I would request approval despite the imperfection. I'm pretty sure that same bug has existed since Trixie with rocm-device-libs-17, but no user has reported it.

— Cordell Bloor (cgmb), 19 hours ago

Back to Dashboard | View all reviews for this package