mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
refactor: cleanup unused code
Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
93ddf34c11
commit
a925afa1ab
@@ -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
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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 */
|
||||
Reference in New Issue
Block a user