@@ -20,7 +20,7 @@ CMAKE_ARGS+=-DBUILD_SHARED_LIBS=OFF
20
20
21
21
# If build type is cublas, then we set -DGGML_CUDA=ON to CMAKE_ARGS automatically
22
22
ifeq ($(BUILD_TYPE ) ,cublas)
23
- CMAKE_ARGS+=-DGGML_CUDA =ON
23
+ CMAKE_ARGS+=-DSD_CUDA =ON
24
24
# If build type is openblas then we set -DGGML_BLAS=ON -DGGML_BLAS_VENDOR=OpenBLAS
25
25
# to CMAKE_ARGS automatically
26
26
else ifeq ($(BUILD_TYPE),openblas)
@@ -30,14 +30,14 @@ else ifeq ($(BUILD_TYPE),clblas)
30
30
CMAKE_ARGS+=-DGGML_CLBLAST=ON -DCLBlast_DIR=/some/path
31
31
# If it's hipblas we do have also to set CC=/opt/rocm/llvm/bin/clang CXX=/opt/rocm/llvm/bin/clang++
32
32
else ifeq ($(BUILD_TYPE),hipblas)
33
- CMAKE_ARGS+=-DGGML_HIP =ON
33
+ CMAKE_ARGS+=-DSD_HIPBLAS =ON
34
34
# If it's OSX, DO NOT embed the metal library - -DGGML_METAL_EMBED_LIBRARY=ON requires further investigation
35
35
# But if it's OSX without metal, disable it here
36
36
else ifeq ($(OS),Darwin)
37
37
ifneq ($(BUILD_TYPE),metal)
38
- CMAKE_ARGS+=-DGGML_METAL =OFF
38
+ CMAKE_ARGS+=-DSD_METAL =OFF
39
39
else
40
- CMAKE_ARGS+=-DGGML_METAL =ON
40
+ CMAKE_ARGS+=-DSD_METAL =ON
41
41
CMAKE_ARGS+=-DGGML_METAL_EMBED_LIBRARY=ON
42
42
TARGET+=--target ggml-metal
43
43
endif
0 commit comments