Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions Framework/Core/src/DeviceSpecHelpers.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1118,6 +1118,10 @@ void DeviceSpecHelpers::dataProcessorSpecs2DeviceSpecs(const WorkflowSpec& workf
{
// Always check for validity of the workflow before instanciating it
DeviceSpecHelpers::validate(workflow);
// In case the workflow is empty, we simply do not need to instanciate any device.
if (workflow.empty()) {
return;
}
std::vector<LogicalForwardInfo> availableForwardsInfo;
std::vector<DeviceConnectionEdge> logicalEdges;
std::vector<DeviceConnectionId> connections;
Expand Down
5 changes: 4 additions & 1 deletion Framework/Core/src/WorkflowHelpers.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -756,7 +756,10 @@ void WorkflowHelpers::constructGraph(const WorkflowSpec& workflow,
std::vector<OutputSpec>& outputs,
std::vector<LogicalForwardInfo>& forwardedInputsInfo)
{
assert(!workflow.empty());
// In case the workflow is empty, we do not have anything to do.
if (workflow.empty()) {
return;
}

// This is the state. Oif is the iterator I use for the searches.
std::vector<LogicalOutputInfo> availableOutputsInfo;
Expand Down
Loading