mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Move initialization of AubCenter to RootDeviceEnvironment
make RootDeviceEnvironments vector of unique_ptr Related-To: NEO-3857 Change-Id: I23998502198307c8535cdd5c9c4af5223a5d69a5 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
8cc6a65e69
commit
3e1b15c31d
@@ -7,6 +7,7 @@
|
||||
|
||||
#include "api.h"
|
||||
|
||||
#include "core/execution_environment/root_device_environment.h"
|
||||
#include "core/helpers/aligned_memory.h"
|
||||
#include "core/helpers/kernel_helpers.h"
|
||||
#include "core/memory_manager/unified_memory_manager.h"
|
||||
@@ -5028,7 +5029,7 @@ cl_int CL_API_CALL clAddCommentINTEL(cl_platform_id platform, const char *commen
|
||||
DBG_LOG_INPUTS("platform", platform, "comment", comment);
|
||||
|
||||
auto executionEnvironment = ::platform()->peekExecutionEnvironment();
|
||||
auto aubCenter = executionEnvironment->rootDeviceEnvironments[0].aubCenter.get();
|
||||
auto aubCenter = executionEnvironment->rootDeviceEnvironments[0]->aubCenter.get();
|
||||
|
||||
if (!comment || (aubCenter && !aubCenter->getAubManager())) {
|
||||
retVal = CL_INVALID_VALUE;
|
||||
|
||||
Reference in New Issue
Block a user