mirror of
https://github.com/ravenscroftj/turbopilot.git
synced 2024-10-01 01:06:01 -04:00
tidy cmakelist
This commit is contained in:
parent
0cf7a9c341
commit
63b554793d
@ -53,16 +53,6 @@ if (GGML_STATIC)
|
|||||||
SET(CMAKE_FIND_LIBRARY_SUFFIXES ".a")
|
SET(CMAKE_FIND_LIBRARY_SUFFIXES ".a")
|
||||||
SET(BUILD_SHARED_LIBS OFF)
|
SET(BUILD_SHARED_LIBS OFF)
|
||||||
SET(CMAKE_EXE_LINKER_FLAGS "-static")
|
SET(CMAKE_EXE_LINKER_FLAGS "-static")
|
||||||
|
|
||||||
if (GGML_CUBLAS)
|
|
||||||
cmake_minimum_required(VERSION 3.17)
|
|
||||||
|
|
||||||
find_package(CUDAToolkit)
|
|
||||||
if (CUDAToolkit_FOUND)
|
|
||||||
add_compile_definitions(GGML_USE_CUBLAS)
|
|
||||||
else()
|
|
||||||
message(WARNING "cuBLAS not found")
|
|
||||||
endif()
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (GGML_CUBLAS)
|
if (GGML_CUBLAS)
|
||||||
|
Loading…
Reference in New Issue
Block a user