refactor: cleanup unused code

Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
This commit is contained in:
Artur Harasimiuk
2024-04-11 13:03:30 +00:00
committed by Compute-Runtime-Automation
parent 93ddf34c11
commit a925afa1ab
7 changed files with 16 additions and 32 deletions

View File

@@ -19,11 +19,4 @@ target_sources(${L0_STATIC_LIB_NAME}
${CMAKE_CURRENT_SOURCE_DIR}/extension_function_address.h
${CMAKE_CURRENT_SOURCE_DIR}/host_pointer_manager.cpp
${CMAKE_CURRENT_SOURCE_DIR}/host_pointer_manager.h
)
if(NOT DEFINED L0_DRIVER_VERSION)
set(L0_DRIVER_VERSION 1)
endif()
configure_file(driver_version.h.in ${CMAKE_BINARY_DIR}/driver_version_l0.h) # Put Driver version into define

View File

@@ -33,7 +33,7 @@
#include "level_zero/core/source/gfx_core_helpers/l0_gfx_core_helper.h"
#include "level_zero/core/source/image/image.h"
#include "driver_version_l0.h"
#include "driver_version.h"
#include <cstdarg>
#include <cstdlib>
@@ -112,7 +112,8 @@ ze_result_t DriverHandleImp::getApiVersion(ze_api_version_t *version) {
}
ze_result_t DriverHandleImp::getProperties(ze_driver_properties_t *properties) {
uint32_t versionBuild = static_cast<uint32_t>(strtoul(NEO_VERSION_BUILD, NULL, 10));
uint32_t versionBuild = static_cast<uint32_t>(NEO_VERSION_BUILD);
properties->driverVersion = DriverHandleImp::initialDriverVersionValue + versionBuild;
if (NEO::debugManager.flags.OverrideDriverVersion.get() > -1) {
properties->driverVersion = static_cast<uint32_t>(NEO::debugManager.flags.OverrideDriverVersion.get());

View File

@@ -1,13 +0,0 @@
/*
* Copyright (C) 2020-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#ifndef L0_DRIVER_VERSION_H
#define L0_DRIVER_VERSION_H
#define L0_DRIVER_VERSION @L0_DRIVER_VERSION@
#endif /* L0_DRIVER_VERSION_H */