Skip to content

Commit c28f0cd

Browse files
kwin1412hodlen
authored andcommitted
make : fix nvcc version is empty (ggml-org#5713)
fix nvcc version is empty
1 parent b51ab74 commit c28f0cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ $(info I CC: $(shell $(CC) --version | head -n 1))
597597
$(info I CXX: $(shell $(CXX) --version | head -n 1))
598598
ifdef LLAMA_CUBLAS
599599
$(info I NVCC: $(shell $(NVCC) --version | tail -n 1))
600-
CUDA_VERSION := $(shell nvcc --version | grep -oP 'release (\K[0-9]+\.[0-9])')
600+
CUDA_VERSION := $(shell $(NVCC) --version | grep -oP 'release (\K[0-9]+\.[0-9])')
601601
ifeq ($(shell awk -v "v=$(CUDA_VERSION)" 'BEGIN { print (v < 11.7) }'),1)
602602
ifndef CUDA_DOCKER_ARCH
603603
ifndef CUDA_POWER_ARCH

0 commit comments

Comments
 (0)