Remove cuda check in main line Makefile - only needs to be in CUDA part

This commit is contained in:
Tom Deakin 2015-07-28 12:09:23 +01:00
parent dea95fe68e
commit 807af7d679

View File

@ -13,10 +13,6 @@ gpu-stream-ocl: ocl-stream.cpp common.o Makefile
common.o: common.cpp Makefile common.o: common.cpp Makefile
ifeq ($(shell which nvcc),"")
$(error "Cannot find nvcc, please install CUDA toolkit")
endif
gpu-stream-cuda: cuda-stream.cu common.o Makefile gpu-stream-cuda: cuda-stream.cu common.o Makefile
ifeq ($(shell which nvcc > /dev/null; echo $$?), 0) ifeq ($(shell which nvcc > /dev/null; echo $$?), 0)
nvcc $(CXXFLAGS) common.o $< -o $@ nvcc $(CXXFLAGS) common.o $< -o $@