]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
build : fix build info on windows (llama/13239)
authorDiego Devesa <redacted>
Thu, 1 May 2025 19:48:08 +0000 (21:48 +0200)
committerGeorgi Gerganov <redacted>
Wed, 7 May 2025 12:39:32 +0000 (15:39 +0300)
* build : fix build info on windows

* fix cuda host compiler msg

ggml/src/ggml-cuda/CMakeLists.txt

index 8623214c78a72986b056f5a0d8844adbb504a50b..f3cfdeaef513a249d7df14a4452136f96d41065a 100644 (file)
@@ -133,6 +133,7 @@ if (CUDAToolkit_FOUND)
                 COMMAND ${NVCC_CMD} -Xcompiler "-dumpfullversion -dumpversion"
                 OUTPUT_VARIABLE CUDA_CCVER
                 ERROR_QUIET
+                OUTPUT_STRIP_TRAILING_WHITESPACE
             )
         else()
             if (CUDA_CCFULLVER MATCHES Apple)
@@ -143,7 +144,7 @@ if (CUDAToolkit_FOUND)
             string(REGEX REPLACE "^.* version ([0-9.]*).*$" "\\1" CUDA_CCVER ${CUDA_CCFULLVER})
         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})
         list(APPEND CUDA_CXX_FLAGS ${CXX_FLAGS} ${GF_CXX_FLAGS})  # This is passed to -Xcompiler later