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

Method setDeviceKernel

rocclr/platform/program.cpp:623–631  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

621}
622
623bool Symbol::setDeviceKernel(const Device& device, const device::Kernel* func) {
624 if (deviceKernels_.size() == 0 ||
625 // Always pick the most recent version in MGPU case
626 (func->signature().version() > signature_.version())) {
627 signature_ = func->signature();
628 }
629 deviceKernels_[&device] = func;
630 return true;
631}
632
633const device::Kernel* Symbol::getDeviceKernel(const Device& device) const {
634 auto it = deviceKernels_.find(&device);

Callers 2

linkMethod · 0.80
buildMethod · 0.80

Calls 2

sizeMethod · 0.45
versionMethod · 0.45

Tested by

no test coverage detected