summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorYale Song <yalesong@yahoo-inc.com>2016-05-13 16:06:59 -0400
committerYale Song <yalesong@yahoo-inc.com>2016-05-13 16:06:59 -0400
commit87c9dc397081248dd3d40e0dabce191557bcfc15 (patch)
tree60d51d1c7d60616a7279b29065caffe9c62e79b1 /Makefile
parent9c46289d1a9fc58d4f4b0fc572705523c34318fd (diff)
downloadcaffeonacl-87c9dc397081248dd3d40e0dabce191557bcfc15.tar.gz
caffeonacl-87c9dc397081248dd3d40e0dabce191557bcfc15.tar.bz2
caffeonacl-87c9dc397081248dd3d40e0dabce191557bcfc15.zip
Fix Makefile CUDA_VERSION extraction on OSX Yosemite
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 568d9c27..403e00a3 100644
--- a/Makefile
+++ b/Makefile
@@ -272,7 +272,7 @@ endif
ifeq ($(OSX), 1)
CXX := /usr/bin/clang++
ifneq ($(CPU_ONLY), 1)
- CUDA_VERSION := $(shell $(CUDA_DIR)/bin/nvcc -V | grep -o 'release [0-9.]*' | grep -o '[0-9.]*')
+ CUDA_VERSION := $(shell $(CUDA_DIR)/bin/nvcc -V | grep -o 'release [0-9.]*' | tr -d '[a-z ]')
ifeq ($(shell echo | awk '{exit $(CUDA_VERSION) < 7.0;}'), 1)
CXXFLAGS += -stdlib=libstdc++
LINKFLAGS += -stdlib=libstdc++