KP Kaiser commited on
Commit
1807a31
·
unverified ·
1 Parent(s): 3706d35

make : fix for CUDA native not working as an option on Ubuntu (#1012)

Browse files
Files changed (1) hide show
  1. Makefile +1 -1
Makefile CHANGED
@@ -165,7 +165,7 @@ ifdef WHISPER_CUBLAS
165
  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
166
  WHISPER_OBJ += ggml-cuda.o
167
  NVCC = nvcc
168
- NVCCFLAGS = --forward-unknown-to-host-compiler -arch=native
169
 
170
  ggml-cuda.o: ggml-cuda.cu ggml-cuda.h
171
  $(NVCC) $(NVCCFLAGS) $(CXXFLAGS) -Wno-pedantic -c $< -o $@
 
165
  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
166
  WHISPER_OBJ += ggml-cuda.o
167
  NVCC = nvcc
168
+ NVCCFLAGS = --forward-unknown-to-host-compiler -arch=any
169
 
170
  ggml-cuda.o: ggml-cuda.cu ggml-cuda.h
171
  $(NVCC) $(NVCCFLAGS) $(CXXFLAGS) -Wno-pedantic -c $< -o $@