mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-31 20:13:04 +08:00
refactor: use PRINT_STRING macro for most diagnostics
Related-To: NEO-14742 Signed-off-by: Maciej Bielski <maciej.bielski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
68d01f398f
commit
147bd894ec
@@ -388,20 +388,19 @@ void EncodeDispatchKernel<Family>::encode(CommandContainer &container, EncodeDis
|
||||
auto threadGroupCount = walkerCmd.getThreadGroupIdXDimension() * walkerCmd.getThreadGroupIdYDimension() * walkerCmd.getThreadGroupIdZDimension();
|
||||
EncodeDispatchKernel<Family>::encodeThreadGroupDispatch(idd, *args.device, hwInfo, threadDimsVec, threadGroupCount,
|
||||
kernelDescriptor.kernelMetadata.requiredThreadGroupDispatchSize, kernelDescriptor.kernelAttributes.numGrfRequired, threadsPerThreadGroup, walkerCmd);
|
||||
if (debugManager.flags.PrintKernelDispatchParameters.get()) {
|
||||
fprintf(stdout, "kernel, %s, grfCount, %d, simdSize, %d, tilesCount, %d, implicitScaling, %s, threadGroupCount, %d, numberOfThreadsInGpgpuThreadGroup, %d, threadGroupDimensions, %d, %d, %d, threadGroupDispatchSize enum, %d\n",
|
||||
kernelDescriptor.kernelMetadata.kernelName.c_str(),
|
||||
kernelDescriptor.kernelAttributes.numGrfRequired,
|
||||
kernelDescriptor.kernelAttributes.simdSize,
|
||||
args.device->getNumSubDevices(),
|
||||
ImplicitScalingHelper::isImplicitScalingEnabled(args.device->getDeviceBitfield(), true) ? "Yes" : "no",
|
||||
threadGroupCount,
|
||||
idd.getNumberOfThreadsInGpgpuThreadGroup(),
|
||||
walkerCmd.getThreadGroupIdXDimension(),
|
||||
walkerCmd.getThreadGroupIdYDimension(),
|
||||
walkerCmd.getThreadGroupIdZDimension(),
|
||||
idd.getThreadGroupDispatchSize());
|
||||
}
|
||||
PRINT_STRING(debugManager.flags.PrintKernelDispatchParameters.get(), stdout,
|
||||
"kernel, %s, grfCount, %d, simdSize, %d, tilesCount, %d, implicitScaling, %s, threadGroupCount, %d, numberOfThreadsInGpgpuThreadGroup, %d, threadGroupDimensions, %d, %d, %d, threadGroupDispatchSize enum, %d\n",
|
||||
kernelDescriptor.kernelMetadata.kernelName.c_str(),
|
||||
kernelDescriptor.kernelAttributes.numGrfRequired,
|
||||
kernelDescriptor.kernelAttributes.simdSize,
|
||||
args.device->getNumSubDevices(),
|
||||
ImplicitScalingHelper::isImplicitScalingEnabled(args.device->getDeviceBitfield(), true) ? "Yes" : "no",
|
||||
threadGroupCount,
|
||||
idd.getNumberOfThreadsInGpgpuThreadGroup(),
|
||||
walkerCmd.getThreadGroupIdXDimension(),
|
||||
walkerCmd.getThreadGroupIdYDimension(),
|
||||
walkerCmd.getThreadGroupIdZDimension(),
|
||||
idd.getThreadGroupDispatchSize());
|
||||
|
||||
EncodeDispatchKernel<Family>::setupPreferredSlmSize(&idd, rootDeviceEnvironment, threadsPerThreadGroup,
|
||||
args.dispatchInterface->getSlmTotalSize(),
|
||||
|
||||
Reference in New Issue
Block a user