From 510e66016deba76aa27e47f88df266cfa2ad71ab Mon Sep 17 00:00:00 2001 From: Brian Harrison Date: Fri, 10 Apr 2026 16:21:25 +0000 Subject: [PATCH] Pass --gpu-targets to artifact splitter Pass THEROCK_AMDGPU_TARGETS to the artifact splitter so only per-arch artifacts matching the current build's GPU targets are created. This prevents later CI arch jobs from overwriting earlier jobs' per-arch artifacts with versions that lack compiled binaries. Requires rocm-systems ROCm/rocm-systems#4916 for the --gpu-targets CLI flag. The flag is silently ignored by older rocm-systems versions that don't recognize it (argparse will error, so this should land after the rocm-systems change). Co-Authored-By: Claude Opus 4.6 --- cmake/therock_artifacts.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/therock_artifacts.cmake b/cmake/therock_artifacts.cmake index 561a8b55a5..39d2e2568c 100644 --- a/cmake/therock_artifacts.cmake +++ b/cmake/therock_artifacts.cmake @@ -243,6 +243,9 @@ function(therock_provide_artifact slice_name) if(_split_databases) list(APPEND _split_command_args --split-databases ${_split_databases}) endif() + if(THEROCK_AMDGPU_TARGETS AND NOT "${THEROCK_AMDGPU_TARGETS}" STREQUAL "THEROCK_AMDGPU_TARGETS-NOTFOUND") + list(APPEND _split_command_args --gpu-targets ${THEROCK_AMDGPU_TARGETS}) + endif() add_custom_command( OUTPUT "${_split_manifest}"