|
HMLP: High-performance Machine Learning Primitives
|
This class provides the ability to perform dependency analysis. More...
#include <runtime.hpp>
Public Member Functions | |
| ReadWrite () | |
| void | DependencyAnalysis (ReadWriteType type, Task *task) |
| This is the key function that encode the dependency. More... | |
| void | DependencyCleanUp () |
Public Attributes | |
| deque< Task * > | read |
| deque< Task * > | write |
This class provides the ability to perform dependency analysis.
end RecuDistTaskExecute() class ReadWrite
| hmlp::ReadWrite::ReadWrite | ( | ) |
(Default) ReadWrite constructor.
| void hmlp::ReadWrite::DependencyAnalysis | ( | ReadWriteType | type, |
| Task * | task | ||
| ) |
This is the key function that encode the dependency.
Update the read set.
Read-After-Write (RAW) data dependencies.
Write-After-Read (WAR) anti-dependencies.
Clean up both read and write sets.
Update the write set.
| void hmlp::ReadWrite::DependencyCleanUp | ( | ) |
Clean both read and write sets.
| deque<Task*> hmlp::ReadWrite::read |
Tracking the read set of the object.
| deque<Task*> hmlp::ReadWrite::write |
Tracking the write set of the object.