#include <searchEngine_impl.h>
Public Member Functions | |
SearchGroup (CkMigrateMessage *m) | |
SearchGroup () | |
void | killSearch () |
~SearchGroup () | |
double | getStartTimer () |
void | childCount (countMsg *) |
void | increment () |
double | getCost () |
void | updateCost (double c) |
void | inc_parallel_generate () |
void | inc_parallel_consume () |
void | inc_sequential_generate () |
void | decrease_sequential_generate () |
void | inc_sequential_consume () |
int | printfStatistic () |
void | sendCounts () |
long long | getTotalSolutions () |
void | init () |
void | setParallelLevel (int level) |
void | searchDepthChange (int depth) |
int | getParallelLevel () |
Data Fields | |
int | parallelize_level |
Private Attributes | |
CkGroupID | mygrp |
long long | myCount |
long long | totalCount |
double | starttimer |
double | minCost |
int | parallelnodes_generate |
int | parallelnodes_generate_sum |
int | parallelnodes_consume |
int | parallelnodes_consume_sum |
int | sequentialnodes_generate |
int | sequentialnodes_generate_sum |
int | sequentialnodes_consume |
int | sequentialnodes_consume_sum |
int | waitFor |
CthThread | threadId |
Definition at line 132 of file searchEngine_impl.h.
SearchGroup::SearchGroup | ( | CkMigrateMessage * | m | ) | [inline] |
Definition at line 158 of file searchEngine_impl.h.
SearchGroup::SearchGroup | ( | ) |
Definition at line 169 of file searchEngine.C.
References Converse::CkNumPes(), minCost, myCount, mygrp, parallelnodes_consume, parallelnodes_consume_sum, parallelnodes_generate, parallelnodes_generate_sum, sequentialnodes_consume, sequentialnodes_consume_sum, sequentialnodes_generate, sequentialnodes_generate_sum, IrrGroup::thisgroup, threadId, totalCount, and waitFor.
SearchGroup::~SearchGroup | ( | ) |
Definition at line 249 of file searchEngine.C.
void SearchGroup::killSearch | ( | ) |
Definition at line 272 of file searchEngine.C.
References CkExit(), and groupProxy.
double SearchGroup::getStartTimer | ( | ) | [inline] |
void SearchGroup::childCount | ( | countMsg * | m | ) | [inline] |
Definition at line 226 of file searchEngine.C.
References countMsg::count, CthAwaken(), parallelnodes_consume_sum, parallelnodes_generate_sum, countMsg::pc, countMsg::pg, countMsg::sc, sequentialnodes_consume_sum, sequentialnodes_generate_sum, countMsg::sg, threadId, totalCount, and waitFor.
void SearchGroup::increment | ( | ) | [inline] |
double SearchGroup::getCost | ( | ) | [inline] |
Definition at line 167 of file searchEngine_impl.h.
References minCost.
Referenced by SearchNode::SearchNode().
void SearchGroup::updateCost | ( | double | c | ) | [inline] |
void SearchGroup::inc_parallel_generate | ( | ) | [inline] |
void SearchGroup::inc_parallel_consume | ( | ) | [inline] |
void SearchGroup::inc_sequential_generate | ( | ) | [inline] |
void SearchGroup::decrease_sequential_generate | ( | ) | [inline] |
void SearchGroup::inc_sequential_consume | ( | ) | [inline] |
int SearchGroup::printfStatistic | ( | ) | [inline] |
Definition at line 179 of file searchEngine_impl.h.
References parallelnodes_consume_sum, parallelnodes_generate_sum, sequentialnodes_consume_sum, and sequentialnodes_generate_sum.
void SearchGroup::sendCounts | ( | ) | [inline] |
Definition at line 216 of file searchEngine.C.
References myCount, mygrp, parallelnodes_consume, parallelnodes_generate, sequentialnodes_consume, and sequentialnodes_generate.
long long SearchGroup::getTotalSolutions | ( | ) |
Definition at line 241 of file searchEngine.C.
References CthSelf(), CthSuspend(), mygrp, threadId, totalCount, and waitFor.
void SearchGroup::init | ( | void | ) |
Definition at line 253 of file searchEngine.C.
References parallelize_level, parallelLevel, searchEngineProxy, starttimer, THRESH_MAX, and THRESH_MIN.
void SearchGroup::setParallelLevel | ( | int | level | ) | [inline] |
void SearchGroup::searchDepthChange | ( | int | depth | ) | [inline] |
Definition at line 270 of file searchEngine.C.
int SearchGroup::getParallelLevel | ( | ) | [inline] |
CkGroupID SearchGroup::mygrp [private] |
Definition at line 135 of file searchEngine_impl.h.
Referenced by getTotalSolutions(), SearchGroup(), and sendCounts().
long long SearchGroup::myCount [private] |
Definition at line 136 of file searchEngine_impl.h.
Referenced by increment(), SearchGroup(), and sendCounts().
long long SearchGroup::totalCount [private] |
Reimplemented from CkReductionMgr.
Definition at line 137 of file searchEngine_impl.h.
Referenced by childCount(), getTotalSolutions(), and SearchGroup().
double SearchGroup::starttimer [private] |
double SearchGroup::minCost [private] |
Definition at line 141 of file searchEngine_impl.h.
Referenced by getCost(), SearchGroup(), and updateCost().
int SearchGroup::parallelnodes_generate [private] |
Definition at line 144 of file searchEngine_impl.h.
Referenced by inc_parallel_generate(), SearchGroup(), and sendCounts().
int SearchGroup::parallelnodes_generate_sum [private] |
Definition at line 145 of file searchEngine_impl.h.
Referenced by childCount(), printfStatistic(), and SearchGroup().
int SearchGroup::parallelnodes_consume [private] |
Definition at line 146 of file searchEngine_impl.h.
Referenced by inc_parallel_consume(), SearchGroup(), and sendCounts().
int SearchGroup::parallelnodes_consume_sum [private] |
Definition at line 147 of file searchEngine_impl.h.
Referenced by childCount(), printfStatistic(), and SearchGroup().
int SearchGroup::sequentialnodes_generate [private] |
Definition at line 148 of file searchEngine_impl.h.
Referenced by decrease_sequential_generate(), inc_sequential_generate(), SearchGroup(), and sendCounts().
int SearchGroup::sequentialnodes_generate_sum [private] |
Definition at line 149 of file searchEngine_impl.h.
Referenced by childCount(), printfStatistic(), and SearchGroup().
int SearchGroup::sequentialnodes_consume [private] |
Definition at line 150 of file searchEngine_impl.h.
Referenced by inc_sequential_consume(), SearchGroup(), and sendCounts().
int SearchGroup::sequentialnodes_consume_sum [private] |
Definition at line 151 of file searchEngine_impl.h.
Referenced by childCount(), printfStatistic(), and SearchGroup().
int SearchGroup::waitFor [private] |
Definition at line 153 of file searchEngine_impl.h.
Referenced by childCount(), getTotalSolutions(), and SearchGroup().
CthThread SearchGroup::threadId [private] |
Definition at line 154 of file searchEngine_impl.h.
Referenced by childCount(), getTotalSolutions(), and SearchGroup().
Definition at line 156 of file searchEngine_impl.h.
Referenced by getParallelLevel(), init(), and setParallelLevel().