Remove cuda check in main line Makefile - only needs to be in CUDA part
This commit is contained in:
parent
dea95fe68e
commit
807af7d679
4
Makefile
4
Makefile
@ -13,10 +13,6 @@ gpu-stream-ocl: ocl-stream.cpp common.o 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
|
||||
ifeq ($(shell which nvcc > /dev/null; echo $$?), 0)
|
||||
nvcc $(CXXFLAGS) common.o $< -o $@
|
||||
|
||||
Loading…
Reference in New Issue
Block a user