summaryrefslogtreecommitdiff
path: root/libopencl/Makefile
diff options
context:
space:
mode:
authorWilson Fung <[email protected]>2012-07-26 03:22:53 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:48:52 -0700
commit9a0e4e4a776a963c9950dc3dcd0d23ee0739b755 (patch)
tree70c6f73230fe8fcfdd0fd2a3a7eb525e1f145b80 /libopencl/Makefile
parent1c7ed16cc28f1d740ac7abc773eb4016d49fcba4 (diff)
Clean up the unordered_map fallback support.
- Now there is only one macro for all use of unordered_map in the code. - Moving all instances of gcc/cuda version detection into a single file. - Adding a warning when the fallback is triggered. [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 13542]
Diffstat (limited to 'libopencl/Makefile')
-rw-r--r--libopencl/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/libopencl/Makefile b/libopencl/Makefile
index ae72115..d597a0d 100644
--- a/libopencl/Makefile
+++ b/libopencl/Makefile
@@ -60,7 +60,7 @@
# Vancouver, BC V6T 1Z4
-CUDART_VERSION:=$(shell $(CUDA_INSTALL_PATH)/bin/nvcc --version | awk '/release/ {print $$5;}' | sed 's/,//' | sed 's/\./ /' | awk '{printf("%02u%02u", 10*int($$1), 10*$$2);}')
+include ../version_detection.mk
ifeq ($(OPENGL_SUPPORT),1)
GL = -DOPENGL_SUPPORT
@@ -74,7 +74,7 @@ CCFLAGS = -O3 -g -Wall -fPIC $(GL)
ifeq ($(DEBUG),1)
CCFLAGS = -Wall -g -fPIC $(GL)
endif
-GNUC_CPP0X := $(shell gcc --version | perl -ne 'if (/gcc\s+\(.*\)\s+([0-9.]+)/){ if($$1 >= 4.3) {$$n=1} else {$$n=0;} } END { print $$n; }')
+
ifeq ($(GNUC_CPP0X), 1)
CCFLAGS += -std=c++0x
endif