MCPcopy Create free account
hub / github.com/ROCm/clr / captureAndValidate

Method captureAndValidate

rocclr/platform/command.cpp:691–703  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

689}
690
691int32_t NDRangeKernelCommand::captureAndValidate() {
692 const amd::Device& device = queue()->device();
693 // Validate the kernel before submission
694 if (!queue()->device().validateKernel(kernel(), queue()->vdev(), cooperativeGroups())) {
695 return CL_OUT_OF_RESOURCES;
696 }
697
698 int32_t error;
699 uint64_t lclMemSize = kernel().getDeviceKernel(device)->workGroupInfo()->localMemSize_;
700 parameters_ =
701 kernel().parameters().capture(*queue()->vdev(), sharedMemBytes_ + lclMemSize, &error);
702 return error;
703}
704
705bool ExtObjectsCommand::validateMemory() {
706 // Always process GL objects, even if deferred allocations are disabled,

Callers 3

runInitFiniKernelMethod · 0.80
cl_execute.cppFile · 0.80
ihipLaunchKernelCommandFunction · 0.80

Calls 7

deviceMethod · 0.80
workGroupInfoMethod · 0.80
captureMethod · 0.80
parametersMethod · 0.80
validateKernelMethod · 0.45
vdevMethod · 0.45
getDeviceKernelMethod · 0.45

Tested by

no test coverage detected