File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -214,7 +214,11 @@ ifdef LLAMA_HIPBLAS
214
214
ROCM_PATH ?= /opt/rocm
215
215
HCC := $(ROCM_PATH)/llvm/bin/clang
216
216
HCXX := $(ROCM_PATH)/llvm/bin/clang++
217
- GPU_TARGETS ?= gfx803 gfx900 gfx906 gfx908 gfx90a gfx1030 gfx1100 $(shell $(ROCM_PATH)/llvm/bin/amdgpu-arch)
217
+ ifdef ALL_AMD_GPU # Build for all AMD GPU types
218
+ GPU_TARGETS ?= gfx803 gfx900 gfx906 gfx908 gfx90a gfx1010 gfx1030 gfx1031 gfx1032 gfx1100 gfx1101 gfx1102 $(shell $(ROCM_PATH)/llvm/bin/amdgpu-arch)
219
+ else
220
+ GPU_TARGETS ?= gfx803 gfx900 gfx1030 gfx1100 $(shell $(ROCM_PATH)/llvm/bin/amdgpu-arch) # Only build for most common + currently active GPU
221
+ endif
218
222
LLAMA_CUDA_DMMV_X ?= 32
219
223
LLAMA_CUDA_MMV_Y ?= 1
220
224
LLAMA_CUDA_KQUANTS_ITER ?= 2
@@ -296,6 +300,8 @@ ifeq ($(OS),Windows_NT)
296
300
endif
297
301
else
298
302
DEFAULT_BUILD = $(CXX) $(CXXFLAGS) $^ -shared -o $@.so $(LDFLAGS)
303
+ FAILSAFE_BUILD = $(CXX) $(CXXFLAGS) $^ -shared -o $@.so $(LDFLAGS)
304
+ NOAVX2_BUILD = $(CXX) $(CXXFLAGS) $^ -shared -o $@.so $(LDFLAGS)
299
305
300
306
ifdef LLAMA_OPENBLAS
301
307
OPENBLAS_BUILD = $(CXX) $(CXXFLAGS) $^ $(ARCH_ADD) -lopenblas -shared -o $@.so $(LDFLAGS)
@@ -521,10 +527,5 @@ llama-bench: examples/llama-bench/llama-bench.cpp build-info.h ggml_cublas.o ggm
521
527
simpleclinfo : simpleclinfo.cpp
522
528
$(CXX ) $(CXXFLAGS ) $^ lib/OpenCL.lib lib/clblast.lib -o $@ $(LDFLAGS )
523
529
524
- # window simple clinfo
525
- simpleclinfo : simpleclinfo.cpp
526
- $(CXX ) $(CXXFLAGS ) $^ lib/OpenCL.lib lib/clblast.lib -o $@ $(LDFLAGS )
527
-
528
-
529
530
build-info.h :
530
531
$(DONOTHING )
You can’t perform that action at this time.
0 commit comments