mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-12 09:59:41 +00:00
Debian Unstable compatibility for HIP (#620)
* Support rocm on Debian unstable * Update Makefile
This commit is contained in:
parent
c939bbf7c6
commit
9ab904562e
1 changed files with 11 additions and 4 deletions
9
Makefile
9
Makefile
|
@ -198,10 +198,17 @@ ggml_v3-cuda.o: otherarch/ggml_v3-cuda.cu otherarch/ggml_v3-cuda.h
|
||||||
endif # LLAMA_CUBLAS
|
endif # LLAMA_CUBLAS
|
||||||
|
|
||||||
ifdef LLAMA_HIPBLAS
|
ifdef LLAMA_HIPBLAS
|
||||||
|
ifeq ($(wildcard /opt/rocm),)
|
||||||
|
ROCM_PATH ?= /usr
|
||||||
|
GPU_TARGETS ?= $(shell $(shell which amdgpu-arch))
|
||||||
|
HCC := $(ROCM_PATH)/bin/hipcc
|
||||||
|
HCXX := $(ROCM_PATH)/bin/hipcc
|
||||||
|
else
|
||||||
ROCM_PATH ?= /opt/rocm
|
ROCM_PATH ?= /opt/rocm
|
||||||
|
GPU_TARGETS ?= gfx803 gfx900 gfx906 gfx908 gfx90a gfx1030 gfx1100 $(shell $(ROCM_PATH)/llvm/bin/amdgpu-arch)
|
||||||
HCC := $(ROCM_PATH)/llvm/bin/clang
|
HCC := $(ROCM_PATH)/llvm/bin/clang
|
||||||
HCXX := $(ROCM_PATH)/llvm/bin/clang++
|
HCXX := $(ROCM_PATH)/llvm/bin/clang++
|
||||||
GPU_TARGETS ?= gfx803 gfx900 gfx906 gfx908 gfx90a gfx1030 gfx1100 $(shell $(ROCM_PATH)/llvm/bin/amdgpu-arch)
|
endif
|
||||||
LLAMA_CUDA_DMMV_X ?= 32
|
LLAMA_CUDA_DMMV_X ?= 32
|
||||||
LLAMA_CUDA_MMV_Y ?= 1
|
LLAMA_CUDA_MMV_Y ?= 1
|
||||||
LLAMA_CUDA_KQUANTS_ITER ?= 2
|
LLAMA_CUDA_KQUANTS_ITER ?= 2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue