mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-19 06:24:51 +08:00
feature: make global bindless heaps resident when created
Make bindless heaps resident right after heap allocation. Motivation is that SYCL bindless image can be passed as a value argument or through memory. Therefore, we're not able to make its bindless heap resident during kernel initialization or setting kernel arguments. This fixes SYCL bindless image read_write_*D.cpp tests on DG2. Related-To: NEO-7063 Signed-off-by: Wenju He <wenju.he@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
27b930cabc
commit
03078541d7
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2019-2023 Intel Corporation
|
||||
* Copyright (C) 2019-2024 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -135,8 +135,8 @@ const ProductHelper &RootDeviceEnvironment::getProductHelper() const {
|
||||
return *productHelper;
|
||||
}
|
||||
|
||||
void RootDeviceEnvironment::createBindlessHeapsHelper(MemoryManager *memoryManager, bool availableDevices, uint32_t rootDeviceIndex, DeviceBitfield deviceBitfield) {
|
||||
bindlessHeapsHelper = std::make_unique<BindlessHeapsHelper>(memoryManager, availableDevices, rootDeviceIndex, deviceBitfield);
|
||||
void RootDeviceEnvironment::createBindlessHeapsHelper(Device *rootDevice, bool availableDevices) {
|
||||
bindlessHeapsHelper = std::make_unique<BindlessHeapsHelper>(rootDevice, availableDevices);
|
||||
}
|
||||
|
||||
CompilerInterface *RootDeviceEnvironment::getCompilerInterface() {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2019-2023 Intel Corporation
|
||||
* Copyright (C) 2019-2024 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -76,7 +76,7 @@ struct RootDeviceEnvironment : NonCopyableClass {
|
||||
BuiltIns *getBuiltIns();
|
||||
BindlessHeapsHelper *getBindlessHeapsHelper() const;
|
||||
AssertHandler *getAssertHandler(Device *neoDevice);
|
||||
void createBindlessHeapsHelper(MemoryManager *memoryManager, bool availableDevices, uint32_t rootDeviceIndex, DeviceBitfield deviceBitfield);
|
||||
void createBindlessHeapsHelper(Device *rootDevice, bool availableDevices);
|
||||
void limitNumberOfCcs(uint32_t numberOfCcs);
|
||||
bool isNumberOfCcsLimited() const;
|
||||
void setRcsExposure();
|
||||
|
||||
Reference in New Issue
Block a user