From 13d2ba3af71a4110dbe24772555cdc3d341425a8 Mon Sep 17 00:00:00 2001 From: Tor Aamodt Date: Fri, 27 Jul 2012 21:56:35 -0800 Subject: - can compile on MacOSX (tested on Lion)... no regression testing done on Mac - ptxplus ... edits to eliminate some warnings with older gcc about printfs without string literal - eliminate warning about map (just too annoying while testing on Mac) [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 13560] --- version_detection.mk | 3 +++ 1 file changed, 3 insertions(+) (limited to 'version_detection.mk') diff --git a/version_detection.mk b/version_detection.mk index eac96e0..245f46f 100644 --- a/version_detection.mk +++ b/version_detection.mk @@ -27,8 +27,11 @@ # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # Detect GPGPU-Sim Version +ifeq ($(GPGPUSIM_ROOT),) +else GPGPUSIM_VERSION=$(shell cat $(GPGPUSIM_ROOT)/version | awk '/Version/ {print $$8}' ) GPGPUSIM_BUILD=$(shell cat $(GPGPUSIM_ROOT)/version | awk '/Change/ {print $$6}' ) +endif # Detect CUDA Runtime Version CUDA_VERSION_STRING:=$(shell $(CUDA_INSTALL_PATH)/bin/nvcc --version | awk '/release/ {print $$5;}' | sed 's/,//') -- cgit v1.3