We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e6fab1 commit 37d8a84Copy full SHA for 37d8a84
intercept/src/intercept.cpp
@@ -2482,6 +2482,14 @@ void CLIntercept::logKernelInfo(
2482
CL_DEVICE_NAME,
2483
deviceName );
2484
2485
+ cl_uint args = 0;
2486
+ errorCode |= dispatch().clGetKernelInfo(
2487
+ kernel,
2488
+ CL_KERNEL_NUM_ARGS,
2489
+ sizeof(args),
2490
+ &args,
2491
+ NULL );
2492
+
2493
size_t pwgsm = 0;
2494
errorCode |= dispatch().clGetKernelWorkGroupInfo(
2495
kernel,
@@ -2526,6 +2534,10 @@ void CLIntercept::logKernelInfo(
2526
2534
{
2527
2535
logf( " For device: %s\n",
2528
2536
2537
+ if( config().KernelInfoLogging )
2538
+ {
2539
+ logf( " Num Args: %u\n", args);
2540
+ }
2529
2541
if( config().KernelInfoLogging ||
2530
2542
config().PreferredWorkGroupSizeMultipleLogging )
2531
2543
0 commit comments