-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initialise point-to-point mappings from scheduler output (groundwork) (…
…#160) * Add skeleton * Start adding to scheduler * Refactor tests * Add ptp mapping setup from decisions * Fix up test * Tidy up * Fix dist test * Add point-to-point app initialisation * Revert renaming of variable * Continuing with simplification * Fix tests * Fix up waiting for mappings * Self-review * Add missing newline
- Loading branch information
Showing
22 changed files
with
532 additions
and
285 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#pragma once | ||
|
||
#include <cstdint> | ||
#include <string> | ||
#include <vector> | ||
|
||
#include <faabric/proto/faabric.pb.h> | ||
|
||
namespace faabric::util { | ||
|
||
class SchedulingDecision | ||
{ | ||
public: | ||
static SchedulingDecision fromPointToPointMappings( | ||
faabric::PointToPointMappings& mappings); | ||
|
||
SchedulingDecision(uint32_t appIdIn); | ||
|
||
uint32_t appId = 0; | ||
|
||
int32_t nFunctions = 0; | ||
|
||
std::vector<int32_t> messageIds; | ||
|
||
std::vector<std::string> hosts; | ||
|
||
std::vector<int32_t> appIdxs; | ||
|
||
std::string returnHost; | ||
|
||
void addMessage(const std::string& host, const faabric::Message& msg); | ||
|
||
void addMessage(const std::string& host, int32_t messageId, int32_t appIdx); | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.