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 3824866..eac96e0 100644
--- a/version_detection.mk
+++ b/version_detection.mk
@@ -26,6 +26,9 @@
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# Detect GPGPU-Sim Version
+GPGPUSIM_VERSION=$(shell cat $(GPGPUSIM_ROOT)/version | awk '/Version/ {print $$8}' )
+GPGPUSIM_BUILD=$(shell cat $(GPGPUSIM_ROOT)/version | awk '/Change/ {print $$6}' )
# Detect CUDA Runtime Version
CUDA_VERSION_STRING:=$(shell $(CUDA_INSTALL_PATH)/bin/nvcc --version | awk '/release/ {print $$5;}' | sed 's/,//')