From db0b00a5ac9a652ed8eeb93df181379de912dbb3 Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Wed, 19 Aug 2026 03:10:58 +0000 Subject: [PATCH] fix(audio-cpp): normalize HIP target list audio.cpp forwards GPU_TARGETS to CMake as a semicolon-delimited list. The comma-delimited LocalAI value was treated as one invalid HIP architecture during configuration. Assisted-by: Codex:gpt-5.6-sol Signed-off-by: Ettore Di Giacinto --- backend/cpp/audio-cpp/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/cpp/audio-cpp/Makefile b/backend/cpp/audio-cpp/Makefile index cf7b29568..953adba96 100644 --- a/backend/cpp/audio-cpp/Makefile +++ b/backend/cpp/audio-cpp/Makefile @@ -83,7 +83,10 @@ else ifeq ($(BUILD_TYPE),hipblas) export CXX=$(ROCM_HOME)/llvm/bin/clang++ export CC=$(ROCM_HOME)/llvm/bin/clang AMDGPU_TARGETS ?= gfx908,gfx90a,gfx942,gfx950,gfx1030,gfx1100,gfx1101,gfx1102,gfx1151,gfx1200,gfx1201 - CMAKE_ARGS += -DENGINE_ENABLE_HIP=ON -DAMDGPU_TARGETS=$(AMDGPU_TARGETS) + # audio.cpp forwards GPU_TARGETS to CMake's semicolon-delimited HIP list. + comma := , + HIP_TARGETS := $(subst $(comma),;,$(AMDGPU_TARGETS)) + CMAKE_ARGS += -DENGINE_ENABLE_HIP=ON "-DGPU_TARGETS=$(HIP_TARGETS)" else ifeq ($(BUILD_TYPE),vulkan) CMAKE_ARGS += -DENGINE_ENABLE_VULKAN=ON else ifeq ($(UNAME_S),Darwin)