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

  * Backport to Resolute. (LP: #2153424)

 -- Igor Luppi <igor.luppi@canonical.com>  Mon, 06 Jul 2026 14:04:46 -0300

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

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

  * New upstream version 6.4.3+dfsg
    * Based on LLVM 20
    * Update Files-Excluded
  * Replace libamd-comgr2 with libamd-comgr3
  * Switch to hand-written hipcc man pages
  * Update d/watch to Version 5
  * Refresh patches
  * Drop d/p/0001-add-wf64-target-constraints-to-kernels-using-w64-ins.patch
  * Drop patch numbers
  * Add d/p/upstream-llvm-compatibility.patch to enable compatibility
    with LLVM 20
  * Add d/p/cmake-4-compat.patch to enable compatibility with CMake 4.1
  * hipcc now depends on libamdhip64-dev, rather than merely recommending it.
    This is a return to the hipcc package behaviour from Trixie.
  * Add self to uploaders

 -- Cordell Bloor <cgmb@debian.org>  Thu, 14 Aug 2025 22:32:37 -0600

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

  Team upload.

  [ Christian Kastner ]
  * CI: Drop autopkgtest pinning, deps are in unstable now

  [ Cordell Bloor ]
  * d/control: remove stray comma in maintainer field to fix
    the package information listed on tracker.debian.org.
  * d/control: add perl to hipcc dependencies
  * d/control: add libamdhip64-dev to hipcc recommended packages

 -- Cordell Bloor <cgmb@slerp.xyz>  Mon, 30 Jun 2025 12:47:43 -0600

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

  [ Xuanteng Huang ]
  * New upstream 6.1.2
    - This replaces all of src:rocm-compilersupport as well as the compiler
      components of src:rocm-hipamd.
  * Reorganize code layout, strip LLVM code forked by AMD
  * Borrow patch from rocm-hipamd to keep the include path order for hipcc
  * Migrate tests from rocm-hipamd as well to validate HIP code compilation
  * Enable Salsa CI pipeline

 -- Xuanteng Huang <xuanteng.huang@outlook.com>  Tue, 22 Oct 2024 23:36:16 +0200
