1
0
mirror of https://github.com/paboyle/Grid.git synced 2026-01-10 03:49:33 +00:00

Hadrons: first full implementation of the scheduler

This commit is contained in:
2016-01-13 20:23:51 -08:00
parent 17c43f49ac
commit ae682674e0
12 changed files with 264 additions and 55 deletions

View File

@@ -51,8 +51,7 @@ class GlobalPar: Serializable
{
public:
GRID_SERIALIZABLE_CLASS_MEMBERS(GlobalPar,
std::vector<double>, latticeSize,
ConfigPar, configs);
ConfigPar, configs);
};
/******************************************************************************
@@ -75,16 +74,17 @@ private:
// schedule computation
void schedule(void);
// program execution
void configLoop(void);
void execute(void);
void configLoop(void);
unsigned int execute(const std::vector<std::string> &program);
private:
std::string parameterFileName_;
GlobalPar par_;
Environment &env_;
ModuleFactory &modFactory_;
std::map<std::string, std::unique_ptr<Module>> module_;
std::map<std::string, std::string> associatedModule_;
std::vector<std::string> program_;
std::string parameterFileName_;
GlobalPar par_;
Environment &env_;
ModuleFactory &modFactory_;
std::map<std::string, std::unique_ptr<Module>> module_;
std::map<std::string, std::string> associatedModule_;
std::map<std::string, std::vector<std::string>> input_;
std::vector<std::string> program_;
};
END_HADRONS_NAMESPACE