]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
make : fix nvcc version is empty (#5713)
authorkwin1412 <redacted>
Sun, 25 Feb 2024 16:46:49 +0000 (00:46 +0800)
committerGitHub <redacted>
Sun, 25 Feb 2024 16:46:49 +0000 (18:46 +0200)
fix nvcc version is empty

Makefile

index f03faf6eda0fb69e97325104a7d28373b4ae0a89..068f6ed028460bdf9da90ac54dadf5eb48a055e2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -597,7 +597,7 @@ $(info I CC:        $(shell $(CC)   --version | head -n 1))
 $(info I CXX:       $(shell $(CXX)  --version | head -n 1))
 ifdef LLAMA_CUBLAS
 $(info I NVCC:      $(shell $(NVCC) --version | tail -n 1))
-CUDA_VERSION := $(shell nvcc --version | grep -oP 'release (\K[0-9]+\.[0-9])')
+CUDA_VERSION := $(shell $(NVCC) --version | grep -oP 'release (\K[0-9]+\.[0-9])')
 ifeq ($(shell awk -v "v=$(CUDA_VERSION)" 'BEGIN { print (v < 11.7) }'),1)
 ifndef CUDA_DOCKER_ARCH
 ifndef CUDA_POWER_ARCH