mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 04:12:57 +08:00
Cleaned up files: opencl/source/command_queue/command_queue.h opencl/source/command_queue/gpgpu_walker.h shared/source/helpers/memory_properties_helpers.h Related-To: NEO-5548 Signed-off-by: Warchulski, Jaroslaw <jaroslaw.warchulski@intel.com>
16 lines
422 B
C++
16 lines
422 B
C++
/*
|
|
* Copyright (C) 2019-2023 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
namespace NEO {
|
|
template <typename ObjectT>
|
|
void KernelOperation::ResourceCleaner::operator()(ObjectT *object) {
|
|
storageForAllocations->storeAllocation(std::unique_ptr<GraphicsAllocation>(object->getGraphicsAllocation()),
|
|
REUSABLE_ALLOCATION);
|
|
delete object;
|
|
}
|
|
} // namespace NEO
|