Skip to content
Snippets Groups Projects

Improved scheduling

Merged Olivier BICHLER requested to merge scheduling into dev
33 files
+ 1329
357
Compare changes
  • Side-by-side
  • Inline
Files
33
@@ -16,6 +16,7 @@
@@ -16,6 +16,7 @@
#include <vector>
#include <vector>
#include "aidge/utils/Types.h"
#include "aidge/utils/Types.h"
 
#include "aidge/data/Elts.hpp"
namespace Aidge {
namespace Aidge {
class Operator;
class Operator;
@@ -36,13 +37,13 @@ public:
@@ -36,13 +37,13 @@ public:
* @param inputIdx Index of the input analysed.
* @param inputIdx Index of the input analysed.
* @return std::size_t
* @return std::size_t
*/
*/
virtual NbElts_t getNbRequiredData(const IOIndex_t inputIdx) const;
virtual Elts_t getNbRequiredData(const IOIndex_t inputIdx) const;
// Amount of input data that cannot be overwritten during the execution.
// Amount of input data that cannot be overwritten during the execution.
virtual NbElts_t getNbRequiredProtected(const IOIndex_t inputIdx) const;
virtual Elts_t getNbRequiredProtected(const IOIndex_t inputIdx) const;
// Memory required at an output for a given input size.
// Memory required at an output for a given input size.
virtual NbElts_t getRequiredMemory(const IOIndex_t outputIdx, const std::vector<DimSize_t> &inputsSize) const;
virtual Elts_t getRequiredMemory(const IOIndex_t outputIdx, const std::vector<DimSize_t> &inputsSize) const;
/**
/**
* @brief Total amount of consumed data from a specific input.
* @brief Total amount of consumed data from a specific input.
@@ -50,7 +51,7 @@ public:
@@ -50,7 +51,7 @@ public:
* @param inputIdx Index of the input analysed.
* @param inputIdx Index of the input analysed.
* @return DimSize_t
* @return DimSize_t
*/
*/
virtual NbElts_t getNbConsumedData(const IOIndex_t inputIdx) const;
virtual Elts_t getNbConsumedData(const IOIndex_t inputIdx) const;
/**
/**
* @brief Total amount of produced data ready to be used on a specific output.
* @brief Total amount of produced data ready to be used on a specific output.
@@ -58,7 +59,7 @@ public:
@@ -58,7 +59,7 @@ public:
* @param outputIdx Index of the output analysed.
* @param outputIdx Index of the output analysed.
* @return DimSize_t
* @return DimSize_t
*/
*/
virtual NbElts_t getNbProducedData(const IOIndex_t outputIdx) const;
virtual Elts_t getNbProducedData(const IOIndex_t outputIdx) const;
/**
/**
* @brief Update the Consummer Producer system by simulating the consumption and production of i/o
* @brief Update the Consummer Producer system by simulating the consumption and production of i/o
@@ -77,8 +78,8 @@ public:
@@ -77,8 +78,8 @@ public:
protected:
protected:
const Operator &mOp;
const Operator &mOp;
const std::string mBackend;
const std::string mBackend;
std::vector<NbElts_t> mNbConsumedData;
std::vector<Elts_t> mNbConsumedData;
std::vector<NbElts_t> mNbProducedData;
std::vector<Elts_t> mNbProducedData;
};
};
} // namespace Aidge
} // namespace Aidge
Loading