Remove possibility of accessing directly USM device memory in debug logs

clEnqueueSVMMemFill() is utilized by clEnqueueMemFillINTEL().
The latter may receive USM device pointers. If anyone passed
such pointer then SEGMENTATION_FAULT would occur.

Signed-off-by: Patryk Wrobel <patryk.wrobel@intel.com>
This commit is contained in:
Patryk Wrobel 2022-09-23 16:41:54 +00:00 committed by Compute-Runtime-Automation
parent 6175a3e785
commit 46e0317548
1 changed files with 1 additions and 1 deletions

View File

@ -4740,7 +4740,7 @@ cl_int CL_API_CALL clEnqueueSVMMemFill(cl_command_queue commandQueue,
API_ENTER(&retVal);
DBG_LOG_INPUTS("commandQueue", commandQueue,
"svmPtr", NEO::fileLoggerInstance().infoPointerToString(svmPtr, size),
"svmPtr", svmPtr,
"pattern", NEO::fileLoggerInstance().infoPointerToString(pattern, patternSize),
"patternSize", patternSize,
"size", size,