From e519b81b5c8bdb13fcba9eb17f1d56702870d948 Mon Sep 17 00:00:00 2001 From: Kaixhin Date: Fri, 8 May 2015 13:28:50 +0100 Subject: [PATCH] Change GPU check to CUDA SDK check. Closes issue #19 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1dc32fb0..3d8d58ee 100644 --- a/Makefile +++ b/Makefile @@ -46,7 +46,7 @@ ifneq ($(GPU), 0) endif else # we assume a Linux-like OS - ifneq ($(shell nvidia-smi > /dev/null 2>&1; echo $$?), 0) + ifneq ($(shell nvcc --version > /dev/null 2>&1; echo $$?), 0) $(info No CUDA capable GPU installed. Forcing GPU=0) override GPU := 0 endif