Skip to content

Commit 339ef92

Browse files
committed
fixed CPU build
1 parent 6700ac0 commit 339ef92

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

CMakeLists.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
88

99
add_executable(tortoise main.cpp common.cpp)
1010

11-
set(GGML_CUBLAS ON)
12-
set(GGML_USE_CUBLAS ON)
11+
option(GGML_CUBLAS "cuda mode" OFF)
1312

14-
add_definitions(-DGGML_USE_CUBLAS)
13+
if (GGML_CUBLAS)
14+
add_definitions(-DGGML_USE_CUBLAS)
15+
endif()
1516

1617
add_subdirectory(ggml)
1718

0 commit comments

Comments
 (0)