mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 23:56:39 +08:00
fix driver version reporting
Change-Id: I187f1e1a71f07dbd83dfadbd9c51ff910be356b8 Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
This commit is contained in:
@@ -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) ";
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user