mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
Prepare object lib for precompiled builtins in bindless mode
Releated-To: NEO-5138 Change-Id: I18e564a9e32041fba5e887bc18d2195a1c4ddda8 Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
1962a89b05
commit
4dc3827b8e
@@ -46,7 +46,7 @@ set(L0_RUNTIME_SOURCES
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/event/event.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/fence/fence.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/fence/fence.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/helpers/heap_assigner_config_l0.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/helpers/api_specific_config_l0.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/hw_helpers${BRANCH_DIR_SUFFIX}/hw_helpers.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/kernel/kernel.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/kernel/kernel.h
|
||||
|
||||
24
level_zero/core/source/helpers/api_specific_config_l0.cpp
Normal file
24
level_zero/core/source/helpers/api_specific_config_l0.cpp
Normal file
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Copyright (C) 2020 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "shared/source/debug_settings/debug_settings_manager.h"
|
||||
#include "shared/source/helpers/api_specific_config.h"
|
||||
|
||||
namespace NEO {
|
||||
bool ApiSpecificConfig::getHeapConfiguration() {
|
||||
return DebugManager.flags.UseExternalAllocatorForSshAndDsh.get();
|
||||
}
|
||||
|
||||
bool ApiSpecificConfig::getBindelssConfiguration() {
|
||||
if (DebugManager.flags.UseBindlessBuiltins.get() != -1) {
|
||||
return DebugManager.flags.UseBindlessBuiltins.get();
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
@@ -1,15 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2020 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "shared/source/debug_settings/debug_settings_manager.h"
|
||||
#include "shared/source/helpers/heap_assigner_config.h"
|
||||
|
||||
namespace NEO {
|
||||
bool HeapAssignerConfig::getConfiguration() {
|
||||
return DebugManager.flags.UseExternalAllocatorForSshAndDsh.get();
|
||||
}
|
||||
} // namespace NEO
|
||||
Reference in New Issue
Block a user