nits
This commit is contained in:
+4
-5
@@ -40,9 +40,8 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
|
|||||||
# Audio tokenizer tensor names can exceed default GGML_MAX_NAME of 64
|
# Audio tokenizer tensor names can exceed default GGML_MAX_NAME of 64
|
||||||
add_compile_definitions(GGML_MAX_NAME=128)
|
add_compile_definitions(GGML_MAX_NAME=128)
|
||||||
|
|
||||||
# Harden: mark fread/fwrite/etc with warn_unused_result on all platforms.
|
# Harden: mark fread/fwrite/etc with warn_unused_result on all platforms
|
||||||
# Disabled for SYCL: _FORTIFY_SOURCE replaces memcpy with __memcpy_chk
|
# SYCL excluded: _FORTIFY_SOURCE swaps memcpy for __memcpy_chk, unresolved in device code
|
||||||
# which is unresolvable in GPU device code and aborts kernel compilation.
|
|
||||||
if(NOT MSVC AND NOT GGML_SYCL)
|
if(NOT MSVC AND NOT GGML_SYCL)
|
||||||
add_compile_definitions(_FORTIFY_SOURCE=2)
|
add_compile_definitions(_FORTIFY_SOURCE=2)
|
||||||
endif()
|
endif()
|
||||||
@@ -92,8 +91,8 @@ macro(link_ggml_backends target)
|
|||||||
target_link_libraries(${target} PRIVATE ggml-${backend})
|
target_link_libraries(${target} PRIVATE ggml-${backend})
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
# SYCL backend links the runtime PRIVATE, so consumers need -fsycl
|
|
||||||
# on their own link line to resolve libsycl.so symbols.
|
# SYCL links its runtime PRIVATE, consumers need -fsycl to resolve libsycl.so
|
||||||
if(TARGET ggml-sycl AND GGML_SYCL)
|
if(TARGET ggml-sycl AND GGML_SYCL)
|
||||||
target_link_options(${target} PRIVATE -fsycl)
|
target_link_options(${target} PRIVATE -fsycl)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user