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

Method GetUncachedExecutor

tensorflow/stream_executor/rocm/rocm_platform.cc:134–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132}
133
134port::StatusOr<std::unique_ptr<StreamExecutor>>
135ROCmPlatform::GetUncachedExecutor(const StreamExecutorConfig& config) {
136 auto executor = absl::make_unique<StreamExecutor>(
137 this, absl::make_unique<GpuExecutor>(config.plugin_config),
138 config.ordinal);
139 auto init_status = executor->Init(config.device_options);
140 if (!init_status.ok()) {
141 return port::Status{
142 port::error::INTERNAL,
143 absl::StrFormat(
144 "failed initializing StreamExecutor for ROCM device ordinal %d: %s",
145 config.ordinal, init_status.ToString().c_str())};
146 }
147
148 return std::move(executor);
149}
150
151void ROCmPlatform::RegisterTraceListener(
152 std::unique_ptr<TraceListener> listener) {

Callers

nothing calls this directly

Calls 4

c_strMethod · 0.80
InitMethod · 0.45
okMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected