Skip to content

Commit

Permalink
add rpath
Browse files Browse the repository at this point in the history
  • Loading branch information
SlyEcho committed Apr 23, 2023
1 parent db7a012 commit 3a004b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ ifdef LLAMA_HIPBLAS
GPU_TARGETS!= $(ROCM_PATH)/llvm/bin/offload-arch
CFLAGS += -DGGML_USE_HIPBLAS $(shell $(ROCM_PATH)/bin/hipconfig -C)
CXXFLAGS += -DGGML_USE_HIPBLAS $(shell $(ROCM_PATH)/bin/hipconfig -C)
LDFLAGS += -L/opt/rocm/lib -lhipblas -lamdhip64
LDFLAGS += -L/opt/rocm/lib -Wl,-rpath=$(ROCM_PATH)/lib -lhipblas -lamdhip64
OBJS += ggml-cuda.o
ggml-cuda.o: CXXFLAGS += $(addprefix --offload-arch=,$(GPU_TARGETS))
ggml-cuda.o: ggml-cuda.cu ggml-cuda.h
Expand Down

0 comments on commit 3a004b2

Please sign in to comment.