Skip to content

Commit

Permalink
and makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
SlyEcho committed May 25, 2023
1 parent a593a4f commit 30d921a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ ifdef LLAMA_HIPBLAS
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: CXXFLAGS += -DGGML_CUDA_DMMV_X=64
ggml-cuda.o: CXXFLAGS += -DGGML_CUDA_DMMV_Y=1
ggml-cuda.o: ggml-cuda.cu ggml-cuda.h
$(CXX) $(CXXFLAGS) -x hip -c -o $@ $<
endif
Expand Down

0 comments on commit 30d921a

Please sign in to comment.