Skip to content

Commit bcd5f57

Browse files
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
1 parent a07a254 commit bcd5f57

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

backend/cpp/audio-cpp/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,10 @@ else ifeq ($(BUILD_TYPE),hipblas)
8383
export CXX=$(ROCM_HOME)/llvm/bin/clang++
8484
export CC=$(ROCM_HOME)/llvm/bin/clang
8585
AMDGPU_TARGETS ?= gfx908,gfx90a,gfx942,gfx950,gfx1030,gfx1100,gfx1101,gfx1102,gfx1151,gfx1200,gfx1201
86-
CMAKE_ARGS += -DENGINE_ENABLE_HIP=ON -DAMDGPU_TARGETS=$(AMDGPU_TARGETS)
86+
# audio.cpp forwards GPU_TARGETS to CMake's semicolon-delimited HIP list.
87+
comma := ,
88+
HIP_TARGETS := $(subst $(comma),;,$(AMDGPU_TARGETS))
89+
CMAKE_ARGS += -DENGINE_ENABLE_HIP=ON "-DGPU_TARGETS=$(HIP_TARGETS)"
8790
else ifeq ($(BUILD_TYPE),vulkan)
8891
CMAKE_ARGS += -DENGINE_ENABLE_VULKAN=ON
8992
else ifeq ($(UNAME_S),Darwin)

0 commit comments

Comments
 (0)