18#ifndef TTK_ENABLE_KAMIKAZE
44 static std::tuple<idVertex, idPropagation>
46#ifndef TTK_ENABLE_KAMIKAZE
50 dbg.printErr(
"getChunk called with nbElemnt null");
53 dbg.printErr(
"getChunk called with neither nbtasks nor grainSize");
56 dbg.printErr(
"getChunk called with both nbtasks and grainSize");
65 return std::make_tuple(grainSize, nbTasks);
71 return offset + grainSize * chunkId;
76 const idVertex maxEnd = nullVertex) {
77 const idVertex computedEnd = grainSize * (chunkId + 1);
78 return std::min(maxEnd, computedEnd);
Minimalist debugging class.
void setDebugMsgPrefix(const std::string &prefix)
TTK FTRGraph tasks management tools.
static std::tuple< idVertex, idPropagation > getChunk(const TaskChunk ¶ms)
static idVertex getBegin(const idPropagation chunkId, const idVertex grainSize, const idVertex offset=0)
static idVertex getEnd(const idPropagation chunkId, const idVertex grainSize, const idVertex maxEnd=nullVertex)
idNode idPropagation
for task identifiers
SimplexId idVertex
Vertex index in scalars_.
TaskChunk(const idVertex nbel)