From 3a7a95b00de2baef7b21155d3449ed6a21d2c182 Mon Sep 17 00:00:00 2001 From: Tom Deakin Date: Thu, 16 Jul 2015 12:39:03 +0100 Subject: [PATCH] Print out short version banner --- ocl-stream.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ocl-stream.cpp b/ocl-stream.cpp index cef9d6b..5ee138a 100644 --- a/ocl-stream.cpp +++ b/ocl-stream.cpp @@ -17,6 +17,8 @@ #define MIN(a,b) ((a) < (b)) ? (a) : (b) #define MAX(a,b) ((a) > (b)) ? (a) : (b) +#define VERSION_STRING "0.0" + struct badfile : public std::exception { virtual const char * what () const throw () @@ -93,6 +95,13 @@ void check_solution(std::vector& a, std::vector& b, std::vec int main(void) { + + // Print out run information + std::cout + << "GPU-STREAM" << std::endl + << "Version: " << VERSION_STRING << std::endl + << "Implementation: OpenCL" << std::endl << std::endl; + try { // Open the Kernel source