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

Method GetUncachedExecutor

tensorflow/stream_executor/cuda/cuda_platform.cc:207–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207port::StatusOr<std::unique_ptr<StreamExecutor>>
208CudaPlatform::GetUncachedExecutor(const StreamExecutorConfig& config) {
209 auto executor = absl::make_unique<StreamExecutor>(
210 this, absl::make_unique<GpuExecutor>(config.plugin_config),
211 config.ordinal);
212 auto init_status = executor->Init(config.device_options);
213 if (!init_status.ok()) {
214 return port::Status(
215 port::error::INTERNAL,
216 absl::StrFormat(
217 "failed initializing StreamExecutor for CUDA device ordinal %d: %s",
218 config.ordinal, init_status.ToString()));
219 }
220
221 return std::move(executor);
222}
223
224void CudaPlatform::RegisterTraceListener(
225 std::unique_ptr<TraceListener> listener) {

Callers

nothing calls this directly

Calls 4

StatusEnum · 0.50
InitMethod · 0.45
okMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected