Add static chrono
This commit is contained in:
@@ -3,10 +3,11 @@
|
||||
#include <sstream>
|
||||
#include <string>
|
||||
#include <map>
|
||||
#include <chrono>
|
||||
|
||||
#include <ctf.hpp>
|
||||
|
||||
#include <atrip/Utils.hpp>
|
||||
|
||||
#define ADD_ATTRIBUTE(_type, _name, _default) \
|
||||
_type _name = _default; \
|
||||
Input& with_ ## _name(_type i) { \
|
||||
@@ -20,6 +21,7 @@ namespace atrip {
|
||||
|
||||
static int rank;
|
||||
static int np;
|
||||
static Timings chrono;
|
||||
static void init();
|
||||
|
||||
struct Input {
|
||||
|
||||
@@ -229,7 +229,7 @@ static Slice& findOneByType(std::vector<Slice> &slices, Slice::Type type) {
|
||||
});
|
||||
WITH_CRAZY_DEBUG
|
||||
WITH_RANK
|
||||
<< "\t__ looking for " << type << "\n";
|
||||
<< "__slice__:find:looking for " << type << "\n";
|
||||
if (sliceIt == slices.end())
|
||||
throw std::domain_error("Slice by type not found!");
|
||||
return *sliceIt;
|
||||
|
||||
@@ -110,6 +110,10 @@ struct NaiveDistribution : public TuplesDistribution {
|
||||
, tuplesPerRank * (rank + 1) - 1
|
||||
};
|
||||
|
||||
WITH_RANK << "range = "
|
||||
<< range.first << " -> " << range.second
|
||||
<< std::endl;
|
||||
|
||||
std::vector<ABCTuple> result(range.second - range.first, FAKE_TUPLE);
|
||||
std::copy(all.begin() + range.first,
|
||||
range.second >= all.size()
|
||||
|
||||
Reference in New Issue
Block a user