fix driver version reporting

Change-Id: I187f1e1a71f07dbd83dfadbd9c51ff910be356b8
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
This commit is contained in:
Artur Harasimiuk
2020-03-22 10:53:13 +01:00
parent 44da4a463e
commit 43016c6559
4 changed files with 6 additions and 6 deletions

View File

@@ -33,7 +33,7 @@ static std::string spirVersions = "1.2 ";
static const char *spirvVersion = "SPIR-V_1.2 ";
#define QTR(a) #a
#define TOSTR(b) QTR(b)
static std::string driverVersion = TOSTR(NEO_DRIVER_VERSION);
static std::string driverVersion = TOSTR(NEO_OCL_DRIVER_VERSION);
const char *builtInKernels = ""; // the "always available" (extension-independent) builtin kernels
@@ -186,7 +186,7 @@ void ClDevice::initializeCaps() {
deviceExtensions.clear();
deviceExtensions.append(deviceExtensionsList);
driverVersion = TOSTR(NEO_DRIVER_VERSION);
driverVersion = TOSTR(NEO_OCL_DRIVER_VERSION);
// Add our graphics family name to the device name
name += "Intel(R) ";

View File

@@ -20,7 +20,7 @@
#define TOSTR(b) QTR(b)
namespace NEO {
constexpr const char *driverVersion = TOSTR(NEO_DRIVER_VERSION);
constexpr const char *driverVersion = TOSTR(NEO_OCL_DRIVER_VERSION);
}
#undef QTR

View File

@@ -1019,7 +1019,7 @@ TEST_F(DeviceGetCapsTest, givenSystemWithNoDriverInfoWhenGettingNameAndVersionTh
#define QTR(a) #a
#define TOSTR(b) QTR(b)
const std::string expectedVersion = TOSTR(NEO_DRIVER_VERSION);
const std::string expectedVersion = TOSTR(NEO_OCL_DRIVER_VERSION);
#undef QTR
#undef TOSTR