Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions runtime/executor/method.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,17 @@ class BackendDelegate final {
}

// Parse compilation specs from program
CompileSpec* compile_specs;
Error err = PopulateCompileSpecs(
delegate.compile_specs(), backend_init_context, &compile_specs);
if (err != Error::Ok) {
ET_LOG(Error, "Failed to get compile specs for backend %s", backend_id);
return err;
CompileSpec* compile_specs = nullptr;
size_t num_compile_specs = 0;
if (delegate.compile_specs() != nullptr) {
Error err = PopulateCompileSpecs(
delegate.compile_specs(), backend_init_context, &compile_specs);
if (err != Error::Ok) {
ET_LOG(Error, "Failed to get compile specs for backend %s", backend_id);
return err;
}
num_compile_specs = delegate.compile_specs()->size();
}
Comment thread
lucylq marked this conversation as resolved.
size_t num_compile_specs = delegate.compile_specs()->size();

out->backend_ = backend;
out->handle_ = nullptr;
Expand Down
Loading