mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-05-09 20:13:14 +00:00
build : fix build info on windows (llama/13239)
* build : fix build info on windows * fix cuda host compiler msg
This commit is contained in:
parent
cde0e50536
commit
5a9ccde7da
@ -133,6 +133,7 @@ if (CUDAToolkit_FOUND)
|
|||||||
COMMAND ${NVCC_CMD} -Xcompiler "-dumpfullversion -dumpversion"
|
COMMAND ${NVCC_CMD} -Xcompiler "-dumpfullversion -dumpversion"
|
||||||
OUTPUT_VARIABLE CUDA_CCVER
|
OUTPUT_VARIABLE CUDA_CCVER
|
||||||
ERROR_QUIET
|
ERROR_QUIET
|
||||||
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||||
)
|
)
|
||||||
else()
|
else()
|
||||||
if (CUDA_CCFULLVER MATCHES Apple)
|
if (CUDA_CCFULLVER MATCHES Apple)
|
||||||
@ -143,7 +144,7 @@ if (CUDAToolkit_FOUND)
|
|||||||
string(REGEX REPLACE "^.* version ([0-9.]*).*$" "\\1" CUDA_CCVER ${CUDA_CCFULLVER})
|
string(REGEX REPLACE "^.* version ([0-9.]*).*$" "\\1" CUDA_CCVER ${CUDA_CCFULLVER})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
message("-- CUDA host compiler is ${CUDA_CCID} ${CUDA_CCVER}")
|
message(STATUS "CUDA host compiler is ${CUDA_CCID} ${CUDA_CCVER}")
|
||||||
|
|
||||||
ggml_get_flags(${CUDA_CCID} ${CUDA_CCVER})
|
ggml_get_flags(${CUDA_CCID} ${CUDA_CCVER})
|
||||||
list(APPEND CUDA_CXX_FLAGS ${CXX_FLAGS} ${GF_CXX_FLAGS}) # This is passed to -Xcompiler later
|
list(APPEND CUDA_CXX_FLAGS ${CXX_FLAGS} ${GF_CXX_FLAGS}) # This is passed to -Xcompiler later
|
||||||
|
Loading…
x
Reference in New Issue
Block a user