rocm-llvm (7.2.4+dfsg-1~exp1) experimental; urgency=medium

  * New upstream version 7.2.4+dfsg
  * d/copyright: declare Sun Microsystems for ocml erf/lgamma sources.
  * d/{not-installed, hipcc.{links, install}}: install hipconfig binary
    hipconfig binary doesn't seem to be same as hipcc as before, now it
    provides more utility outputs with different set of commands so simply
    linking it doesn't work.
  * d/t/hipconfig.sh: extend hipconfig tests to cover additional commands
  * d/{ci/experimental.sources, salsa-ci.yml}: use sources file
    Using sources file as single line entry silently causes autopkgtests to
    fail.

 -- Talha Can Havadar <havadartalha@gmail.com>  Sun, 31 May 2026 16:25:36 +0000

rocm-llvm (7.2.3+dfsg-1~exp1) experimental; urgency=medium

  [ Talha Can Havadar ]
  * New upstream version 7.2.3+dfsg
  * d/p/upstream-llvm-compatibility: remove not needed reinterpret_cast.
    This fixes offload compression issue we see in ROCm stack with LLVM-21
    (LP: #2142813)
  * d/copyright: add libsycl and orc-rt into excluded files
  * d/patches: drop LLVM 21 compat patches superseded by upstream and
    LLVM 22 bump.
    Remove four patches that are no longer needed:
    cmake-4-compat.patch
    comgr-fix-createAsmStreamer.patch
    fix-DiagnosticOptions-IntrusiveRefCntPtr.patch
      These three carry Applied-Upstream headers pointing at commits
      that are already present in the 7.2.3 source tree, so they no
      longer apply cleanly nor add anything.
    upstream-llvm-compatibility.patch
      Worked around LLVM 21's removal of CompressedOffloadBundle::
      V3HeaderSize and an unsigned-char Header cast. With the rest of
      the package being bumped to LLVM 22, this LLVM-21-targeted
      workaround is no longer applicable.
  * debian: bump LLVM toolchain dependency from 21 to 22.
    ROCm 7.2.3's device-libs source uses AMDGPU builtins (the GFX12.5
    cluster intrinsics, among others) that are not present in clang-21.
    Move the package to the LLVM 22 toolchain available in resolute.
    debian/control: Bump b-d from 21 to 22 and the equivalent runtime deps
     Rename the rocm-device-libs-21 to rocm-device-libs-22
    debian/rules: Point comgr's CMAKE_PREFIX_PATH at /usr/lib/llvm-22.
     Add a DEVICE_LIBS_CONFIG_FLAGS entry that force-enables the AMDGPU
     subtarget features lerp-inst, cube-insts, qsad-insts and sad-insts
     via CLANG_OPTIONS_APPEND.
  * d/patches: refresh after upstream bump
  * d/patches: adapt comgr to LLVM 22 clang/Options/ split.
    LLVM 22 lifted the clang options machinery out of the Driver library
    into its own clang/Options tree.
    Without the patch, comgr-compiler.cpp fails to compile against
    libclang-cpp22-dev with "clang/Driver/Options.h: No such file or
    directory" and, once the include is fixed, "'GetResourcesPath' is not
    a member of 'clang::driver::Driver'".
    Upstream ROCm has done the equivalent migration on amd-staging, so
    this should drop out the next time the package syncs against an
    upstream that includes the change.
  * d/rules: stricter symbols check with level 4
  * d/p/fix-hip-clang-path.patch: bump to llvm-22
  * d/copyright: all licensing moved from NCSA-AMD to Apache 2.
    Upstream changed the licensing of the files in this package from
    NCSA-AMD to Apache-2-with-LLVM-exceptions following the upstream llvm
    project. Reflecting this change in copyright and also adding missing
    authors for debian/* files.
  * d/t/{control,amd-comgr-cmake.sh}: add amd_comgr find_package test
  * d/control: remove riscv64 from targets as it is FTBFS.
    This package with the current state, fails to build due to missing
    dependencies on riscv64. Ideally we can split rocm-device-libs into
    separate source package and add riscv64 target back for the rest but
    removing riscv64 targets from this source package for now.

  [ Igor Luppi ]
  * d/control: Fix dependency to explicitly require libstdc++-16-dev for
    ROCm v7.1.0 stack (LP: #2143637)

 -- Talha Can Havadar <talha.can.havadar@canonical.com>  Fri, 22 May 2026 09:03:11 +0200

rocm-llvm (7.0.2+dfsg-3) unstable; urgency=medium

  * d/control: libamd-comgr3 now depends on libclang-common-21-dev
    to provide opencl-c-base.h (Closes: #1120886)

 -- Cordell Bloor <cgmb@debian.org>  Thu, 05 Feb 2026 16:46:09 -0700

rocm-llvm (7.0.2+dfsg-2) unstable; urgency=medium

  * Change HIP_CLANG_PATH from /usr/bin to /usr/lib/llvm-21/bin because
    this improves compatibility with tooling that expects the compiler
    name to be clang++ without any version suffix.
    * It is no longer necessary to explicitly specify HIPCXX for CMake
      when using the HIP language if hipcc is installed (Closes: #1118435)
  * Set minimum libamdhip64-dev version for hipcc to 6.4.3 as a workaround
    for underspecified dependencies in the rocm-hipamd 5.7.1 autopkgtests

 -- Cordell Bloor <cgmb@debian.org>  Wed, 26 Nov 2025 17:47:24 -0700

rocm-llvm (7.0.2+dfsg-1) unstable; urgency=medium

  [ Sakura286 ]
  * Add d/p/use-signed-char-in-comgr-build.patch to fix FTBFS
    on platforms that default to char being unsigned (Closes: #1118511)

  [ Cordell Bloor ]
  * New upstream version 7.0.2+dfsg

 -- Cordell Bloor <cgmb@debian.org>  Fri, 24 Oct 2025 16:47:26 -0600

rocm-llvm (7.0.1+dfsg-1) unstable; urgency=medium

  * Upload to unstable
  * Add riscv64 to build architectures
  * Limit libamd-comgr3 and libamd-comgr-dev to architectures
    with driver support for HSA_AMD

 -- Cordell Bloor <cgmb@debian.org>  Fri, 17 Oct 2025 12:25:52 -0600

rocm-llvm (7.0.1+dfsg-1~exp2) experimental; urgency=medium

  * rocm-device-libs-21: move CMake files to from the global
    library path to /usr/lib/llvm-21/lib/cmake/ to avoid
    conflicts with rocm-device-libs-17 and rocm-device-libs-20
  * hipcc: update manpage
  * Update d/gbp.conf to follow DEP-14
    https://dep-team.pages.debian.net/deps/dep14/

 -- Cordell Bloor <cgmb@debian.org>  Thu, 09 Oct 2025 10:43:52 -0600

rocm-llvm (7.0.1+dfsg-1~exp1) experimental; urgency=medium

  * New upstream version 7.0.1+dfsg
  * Update copyright file
    * Fix comgr license text. The NCSA license used for comgr
      prohibits using the name of Advanced Micro Devices, Inc.,
      for endorsements, but this was not previously reflected
      in the copyright file.
  * Update from LLVM 20 to LLVM 21
    * Drop rocm-device-libs-20 and add rocm-device-libs-21
    * Add compatibility patches for comgr backported from upstream
      commits, as the rocm-llvm upstream is based on LLVM 20:
      * d/p/comgr-fix-createAsmStreamer.patch
      * d/p/fix-DiagnosticOptions-IntrusiveRefCntPtr.patch
  * Replace perl hipconfig and hipcc scripts with precompiled
    executables, as the perl versions have been removed upstream.
    * Move hipcc from libdevel section to devel section.
    * Replace hipconfig with symbolic link to hipcc. The name of
      the command is used to choose the operation performed.
    * Drop perl script patches:
      * d/p/specify-compiler-version-and-option.patch
      * d/p/add-hipvars-to-perl-include-path.patch
      * d/p/fix-HIP_version.patch
      * d/p/use-Debian-FHS-to-find-runtime-components.patch
    * Add d/p/specify-clang-version.patch to direct hipcc to use
      LLVM 21.
    * Add d/p/fix-devicelibs-path.patch to ensure hipcc does not
      pass clang a non-existant path to the ROCm device libs. This
      ensures that clang will search in the system default locations
      for the device libraries.
    * Add fix-hip-clang-path.patch to ensure that hipcc considers
      /usr/bin when searching for clang.
  * d/rules: fix path to AMDDeviceLibs on non-x86 systems
  * d/copyright: update my email address
  * Update standards version to 4.7.2. No changes required.

 -- Cordell Bloor <cgmb@debian.org>  Sun, 28 Sep 2025 02:38:25 -0600

rocm-llvm (6.4.3+dfsg-1~exp3) experimental; urgency=medium

  * Re-upload with rocm-llvm_6.4.3+dfsg.orig.tar.xz

 -- Cordell Bloor <cgmb@debian.org>  Fri, 15 Aug 2025 04:04:26 -0600

rocm-llvm (6.4.3+dfsg-1~exp2) experimental; urgency=medium

  * Add d/p/add-hipvars-to-perl-include-path.patch to fix use of hipvars
    in hipcc and hipconfig.

 -- Cordell Bloor <cgmb@debian.org>  Fri, 15 Aug 2025 00:54:53 -0600

# For older changelog entries, run 'apt-get changelog libamd-comgr3'
