mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
Print output from Kernel dtor to avoid segfault
Related-to: LOCI-1912 Signed-off-by: Young Jin Yoon <young.jin.yoon@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
5845cb92ff
commit
4168ee8120
@@ -199,6 +199,8 @@ KernelImp::~KernelImp() {
|
||||
alignedFree(perThreadDataForWholeThreadGroup);
|
||||
}
|
||||
if (printfBuffer != nullptr) {
|
||||
//not allowed to call virtual function on destructor, so calling printOutput directly
|
||||
PrintfHandler::printOutput(kernelImmData, this->printfBuffer, module->getDevice());
|
||||
module->getDevice()->getNEODevice()->getMemoryManager()->freeGraphicsMemory(printfBuffer);
|
||||
}
|
||||
slmArgSizes.clear();
|
||||
|
||||
Reference in New Issue
Block a user