Skip to content

Commit 50fdbc8

Browse files
authored
Merge 9683dee into sapling-pr-archive-ktf
2 parents 47741e3 + 9683dee commit 50fdbc8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Framework/Core/src/DeviceSpecHelpers.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1118,6 +1118,10 @@ void DeviceSpecHelpers::dataProcessorSpecs2DeviceSpecs(const WorkflowSpec& workf
11181118
{
11191119
// Always check for validity of the workflow before instanciating it
11201120
DeviceSpecHelpers::validate(workflow);
1121+
// In case the workflow is empty, we simply do not need to instanciate any device.
1122+
if (workflow.empty()) {
1123+
return;
1124+
}
11211125
std::vector<LogicalForwardInfo> availableForwardsInfo;
11221126
std::vector<DeviceConnectionEdge> logicalEdges;
11231127
std::vector<DeviceConnectionId> connections;

0 commit comments

Comments
 (0)