summaryrefslogtreecommitdiff
path: root/version_detection.mk
diff options
context:
space:
mode:
Diffstat (limited to 'version_detection.mk')
-rw-r--r--version_detection.mk3
1 files changed, 3 insertions, 0 deletions
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/,//')