MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / GetModuleFunction

Method GetModuleFunction

tensorflow/stream_executor/cuda/cuda_driver.cc:678–692  ·  view source on GitHub ↗

static */

Source from the content-addressed store, hash-verified

676}
677
678/* static */ bool GpuDriver::GetModuleFunction(GpuContext* context,
679 CUmodule module,
680 const char* kernel_name,
681 CUfunction* function) {
682 ScopedActivateContext activated{context};
683 CHECK(module != nullptr && kernel_name != nullptr);
684 CUresult res = cuModuleGetFunction(function, module, kernel_name);
685 if (res != CUDA_SUCCESS) {
686 LOG(ERROR) << "failed to get PTX kernel \"" << kernel_name
687 << "\" from module: " << ToString(res);
688 return false;
689 }
690
691 return true;
692}
693
694/* static */ bool GpuDriver::GetModuleSymbol(GpuContext* context,
695 CUmodule module,

Callers

nothing calls this directly

Calls 1

ToStringFunction · 0.70

Tested by

no test coverage detected