diff options
author | Yale Song <yalesong@yahoo-inc.com> | 2016-05-13 16:06:59 -0400 |
---|---|---|
committer | Yale Song <yalesong@yahoo-inc.com> | 2016-05-13 16:06:59 -0400 |
commit | 87c9dc397081248dd3d40e0dabce191557bcfc15 (patch) | |
tree | 60d51d1c7d60616a7279b29065caffe9c62e79b1 /Makefile | |
parent | 9c46289d1a9fc58d4f4b0fc572705523c34318fd (diff) | |
download | caffeonacl-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-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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++ |