@@ -810,6 +810,8 @@ struct AMDGPUKernelTy : public GenericKernelTy {
810
810
INFO (OMP_INFOTYPE_PLUGIN_KERNEL, Device.getDeviceId (),
811
811
" Could not read extra information for kernel %s." , getName ());
812
812
813
+ HasRPC = AMDImage.hasDeviceSymbol (Device, " __llvm_rpc_client" );
814
+
813
815
return Plugin::success ();
814
816
}
815
817
@@ -865,6 +867,10 @@ struct AMDGPUKernelTy : public GenericKernelTy {
865
867
uint32_t PrivateSize;
866
868
bool DynamicStack;
867
869
870
+ // / Device init sets this to true if image has symbol indicating that RPC
871
+ // / service threads are used in this image. Only used for trace display.
872
+ bool HasRPC;
873
+
868
874
// / The size of implicit kernel arguments.
869
875
uint32_t ImplicitArgsSize;
870
876
@@ -5119,7 +5125,7 @@ void AMDGPUKernelTy::printAMDOneLineKernelTrace(GenericDeviceTy &GenericDevice,
5119
5125
GenericDevice.getDeviceId (), getExecutionModeFlags (), ConstWGSize,
5120
5126
KernelArgs.NumArgs , NumBlocks[0 ], NumThreads[0 ], 0 , 0 , GroupSegmentSize,
5121
5127
SGPRCount, VGPRCount, AGPRCount, SGPRSpillCount, VGPRSpillCount,
5122
- KernelArgs.Tripcount , /* FIXME */ 0 , isMultiDeviceKernel (), MultiDeviceLB,
5128
+ KernelArgs.Tripcount , HasRPC , isMultiDeviceKernel (), MultiDeviceLB,
5123
5129
MultiDeviceUB, MaxOccupancy, AchievedOccupancy, getName ());
5124
5130
}
5125
5131
0 commit comments