Skip to content

Commit d3e1984

Browse files
committed
add rpath
1 parent 0e005f7 commit d3e1984

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ ggml-cuda.o: ggml-cuda.cu ggml-cuda.h
109109
endif
110110
ifdef LLAMA_HIPBLAS
111111
ROCM_PATH ?= /opt/rocm
112-
LDFLAGS += -lhipblas -lamdhip64 -L$(ROCM_PATH)/lib
112+
LDFLAGS += -lhipblas -lamdhip64 -L$(ROCM_PATH)/lib -Wl,-rpath=$(ROCM_PATH)/lib
113113
HIPCC ?= $(ROCM_PATH)/bin/hipcc
114114
OBJS += ggml-cuda.o
115115
ggml.o: CFLAGS += -DGGML_USE_HIPBLAS -D__HIP_PLATFORM_AMD__ -I$(ROCM_PATH)/include

0 commit comments

Comments
 (0)