diff --git a/Makefile b/Makefile index 6f5c5bec0..21be47a23 100644 --- a/Makefile +++ b/Makefile @@ -442,7 +442,7 @@ ifdef LLAMA_HIPBLAS ifeq ($(wildcard /opt/rocm),) ROCM_PATH ?= /usr - GPU_TARGETS ?= $(shell which amdgpu-arch) + GPU_TARGETS ?= $(shell $(shell which amdgpu-arch)) else ROCM_PATH ?= /opt/rocm GPU_TARGETS ?= $(shell $(ROCM_PATH)/llvm/bin/amdgpu-arch)