]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
make : fix for CUDA native not working as an option on Ubuntu (#1012)
authorKP Kaiser <redacted>
Sun, 25 Jun 2023 10:57:18 +0000 (06:57 -0400)
committerGitHub <redacted>
Sun, 25 Jun 2023 10:57:18 +0000 (13:57 +0300)
Makefile

index 7bb7e31ae0f78f80ef52b83b3f15973ff9c292e1..2fee829bcbc6e5ec38c1c2c18a52261759d3fccf 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -165,7 +165,7 @@ ifdef WHISPER_CUBLAS
        LDFLAGS     += -lcublas -lculibos -lcudart -lcublasLt -lpthread -ldl -lrt -L/usr/local/cuda/lib64 -L/opt/cuda/lib64 -L$(CUDA_PATH)/targets/x86_64-linux/lib
        WHISPER_OBJ += ggml-cuda.o
        NVCC        = nvcc
-       NVCCFLAGS   = --forward-unknown-to-host-compiler -arch=native
+       NVCCFLAGS   = --forward-unknown-to-host-compiler -arch=any
 
 ggml-cuda.o: ggml-cuda.cu ggml-cuda.h
        $(NVCC) $(NVCCFLAGS) $(CXXFLAGS) -Wno-pedantic -c $< -o $@