osl の実行環境に関する指定 More...
#include <oslConfig.h>
Public Types | |
enum | UsiMode { NoUSI, PortableUSI, ExtendedUSI } |
Static Public Member Functions | |
static const std::string & | home (const std::string &initialize_if_first_invocation="") |
compile時に指定されたディレクトリを返す. More... | |
static const char * | home_c_str () |
static const std::string | gpsusiConf () |
static const std::string | testPrivate () |
テストケースのデータ More... | |
static const std::string | testPublic () |
static const char * | testPrivateFile (const std::string &filename) |
static const char * | testPublicFile (const std::string &filename) |
static const char * | testCsaFile (const std::string &filename) |
static const char * | openingBook (const std::string &filenamme="") |
標準の定跡ファイルを返す More... | |
static void | setVerbose (bool verbose) |
static bool | verbose () |
static void | showOslHome () |
static void | setNumCPUs (int ncpu) |
static int | numCPUs () |
static int | dfpnMaxDepth () |
static void | setDfpnMaxDepth (int) |
static UsiMode | usiMode () |
static void | setUsiMode (UsiMode new_mode=PortableUSI) |
static bool | usiModeInSilent () |
static void | setUsiSilent (bool silent=true) |
static bool | searchExactValueInOneReply () |
static void | setSearchExactValueInOneReply (bool new_value) |
static size_t | residentMemoryUse () |
static size_t | memoryUseLimit () |
static void | setMemoryUseLimit (size_t limit) |
static double | memoryUseRatio () |
static bool | isMemoryLimitEffective () |
static void | setMemoryUsePercent (double limit) |
static unsigned int | evalRandom () |
static void | setEvalRandom (unsigned int sigma) |
static void | setUsiOutputPawnValue (int new_value) |
static int | usiOutputPawnValue () |
static int | inUnitTest () |
static bool | inUnitTestShort () |
static bool | inUnitTestLong () |
static void | setInUnitTest (int new_value) |
static void | setUp () |
標準の設定で評価関数等を初期化 More... | |
static bool | hasByoyomi () |
static void | setHasByoyomi (bool) |
static bool | healthCheck () |
static int | resignThreshold () |
static std::string | configuration () |
Static Public Attributes | |
static const int | MaxThreads =16 |
static boost::mutex | lock_io |
Static Private Member Functions | |
static const std::string | makeHome (const std::string &first_try="") |
static const std::string | makeTest () |
static const std::string | makeTestPublic () |
static bool | isGoodDir (const std::string &) |
static void | trySetDir (std::string &, const std::string &) |
static void | showOslHome (const std::string &) |
Static Private Attributes | |
static size_t | memory_use_limit = system_memory_use_limit() |
static double | memory_use_percent = 100.0 |
static const size_t | memory_use_limit_system_max |
static unsigned int | eval_random = 0 |
static bool | is_verbose = false |
static const int | default_ncpus = osl::misc::ncores() |
static int | num_cpu = default_ncpus |
static volatile UsiMode | usi_mode = osl::OslConfig::NoUSI |
static volatile bool | usi_mode_silent = false |
static int | usi_output_pawn_value = 100 |
static bool | search_exact_value_in_one_reply = false |
static bool | has_byoyomi = false |
static volatile bool | force_root_window = false |
static volatile int | root_window_alpha = 0 |
static volatile int | root_window_beta = 0 |
static volatile int | in_unit_test = 0 |
static int | dfpn_max_depth = 256 |
osl の実行環境に関する指定
Definition at line 15 of file oslConfig.h.
Enumerator | |
---|---|
NoUSI | |
PortableUSI | |
ExtendedUSI |
Definition at line 46 of file oslConfig.h.
|
static |
Definition at line 484 of file oslConfig.cc.
References OSL_USE_SSE, and OSL_WORDSIZE.
|
static |
Definition at line 475 of file oslConfig.cc.
|
inlinestatic |
Definition at line 78 of file oslConfig.h.
References eval_random.
Referenced by osl::game_playing::SearchPlayer::setUpTable().
|
static |
Definition at line 251 of file oslConfig.cc.
|
static |
Definition at line 176 of file oslConfig.cc.
|
static |
Definition at line 441 of file oslConfig.cc.
References osl::eval::ml::OpenMidEndingEval::defaultFilename(), osl::progress::ml::NewProgress::defaultFilename(), osl::eval::ml::OpenMidEndingEval::setUp(), osl::progress::ml::NewProgress::setUp(), and verbose.
|
static |
compile時に指定されたディレクトリを返す.
実行時の指定は環境変数が基本
Definition at line 240 of file oslConfig.cc.
Referenced by osl::rating::FeatureSet::defaultDirectory(), osl::eval::ml::OpenMidEndingEval::defaultFilename(), osl::progress::ml::NewProgress::defaultFilename(), main(), osl::move_probability::StandardFeatureSet::setUp(), and osl::rating::StandardFeatureSet::StandardFeatureSet().
|
static |
Definition at line 246 of file oslConfig.cc.
|
inlinestatic |
Definition at line 84 of file oslConfig.h.
References in_unit_test.
Referenced by osl::record::csa::InputStream::load().
|
inlinestatic |
Definition at line 86 of file oslConfig.h.
References in_unit_test.
|
inlinestatic |
Definition at line 85 of file oslConfig.h.
References in_unit_test.
|
staticprivate |
Definition at line 197 of file oslConfig.cc.
|
inlinestatic |
Definition at line 65 of file oslConfig.h.
References memory_use_limit, memory_use_limit_system_max, and residentMemoryUse().
|
staticprivate |
Definition at line 214 of file oslConfig.cc.
|
staticprivate |
Definition at line 275 of file oslConfig.cc.
References result.
|
staticprivate |
Definition at line 288 of file oslConfig.cc.
References result.
|
inlinestatic |
Definition at line 56 of file oslConfig.h.
References memory_use_limit, and memory_use_percent.
Referenced by osl::search::AlphaBeta2Tree< EvalT >::alphaBetaSearchAfterMove(), main(), memoryUseRatio(), and osl::checkmate::DualDfpn::runGC().
|
inlinestatic |
Definition at line 61 of file oslConfig.h.
References memoryUseLimit(), and residentMemoryUse().
Referenced by osl::search::AlphaBeta2< EvalT >::computeBestMoveIteratively(), osl::misc::NonBlockDelete::resetAny(), osl::checkmate::DfpnTable::runGC(), osl::checkmate::DfpnPathTable::runGC(), osl::search::AlphaBeta2Tree< EvalT >::showPV(), and osl::search::SearchTimer::testAndUpdateNextTimeTest().
|
static |
Definition at line 136 of file oslConfig.cc.
|
static |
標準の定跡ファイルを返す
filename | specify to use non-standard file (absolute path, or home()/data/filename otherwise) |
Definition at line 370 of file oslConfig.cc.
Referenced by main().
|
static |
Definition at line 389 of file oslConfig.cc.
References count.
Referenced by isMemoryLimitEffective(), main(), and memoryUseRatio().
|
static |
Definition at line 268 of file oslConfig.cc.
|
static |
Definition at line 167 of file oslConfig.cc.
Referenced by osl::search::AlphaBeta2< EvalT >::alphaBetaSearchRoot().
|
static |
Definition at line 479 of file oslConfig.cc.
Referenced by main().
|
inlinestatic |
Definition at line 79 of file oslConfig.h.
References eval_random.
|
static |
Definition at line 181 of file oslConfig.cc.
|
inlinestatic |
Definition at line 87 of file oslConfig.h.
References in_unit_test.
|
inlinestatic |
Definition at line 60 of file oslConfig.h.
References limit, and memory_use_limit.
|
inlinestatic |
Definition at line 70 of file oslConfig.h.
References limit, osl::eval::max(), memory_use_percent, and osl::eval::min().
|
static |
Definition at line 127 of file oslConfig.cc.
References MaxThreads, and num_cpu.
|
static |
Definition at line 171 of file oslConfig.cc.
|
static |
標準の設定で評価関数等を初期化
Definition at line 434 of file oslConfig.cc.
References osl::eval::ml::OpenMidEndingEval::setUp(), and osl::progress::ml::NewProgress::setUp().
Referenced by osl_init().
|
static |
Definition at line 155 of file oslConfig.cc.
|
inlinestatic |
Definition at line 81 of file oslConfig.h.
References usi_output_pawn_value.
|
static |
Definition at line 163 of file oslConfig.cc.
Referenced by osl::game_playing::SpeculativeSearchPlayer::pushMove(), osl::game_playing::SpeculativeSearchPlayer::selectBestMove(), and osl::game_playing::SpeculativeAllMoves::SearchAllMoves::stopOtherThan().
|
static |
Definition at line 141 of file oslConfig.cc.
|
static |
Definition at line 192 of file oslConfig.cc.
|
staticprivate |
Definition at line 186 of file oslConfig.cc.
References OSL_WORDSIZE.
|
static |
Definition at line 360 of file oslConfig.cc.
|
static |
テストケースのデータ
Definition at line 301 of file oslConfig.cc.
|
static |
Definition at line 340 of file oslConfig.cc.
|
static |
Definition at line 307 of file oslConfig.cc.
|
static |
Definition at line 350 of file oslConfig.cc.
|
staticprivate |
Definition at line 203 of file oslConfig.cc.
References verbose.
|
static |
Definition at line 151 of file oslConfig.cc.
Referenced by osl::search::AlphaBeta2< EvalT >::computeBestMoveIteratively(), osl::game_playing::SpeculativeSearchPlayer::pushMove(), osl::search::AlphaBeta2Tree< EvalT >::searchAllMoves(), osl::game_playing::SpeculativeSearchPlayer::selectBestMove(), osl::search::AlphaBeta2Tree< EvalT >::showPV(), osl::game_playing::SpeculativeAllMoves::SearchAllMoves::stopOtherThan(), and osl::game_playing::SpeculativeAllMoves::waitResult().
|
static |
Definition at line 159 of file oslConfig.cc.
Referenced by osl::search::UsiMonitor::rootForcedMove(), and osl::search::UsiMonitor::rootLossByCheckmate().
|
inlinestatic |
Definition at line 82 of file oslConfig.h.
References usi_output_pawn_value.
Referenced by osl::search::AlphaBeta2Tree< EvalT >::addMultiPV(), osl::search::AlphaBeta2< EvalT >::alphaBetaSearchRoot(), and osl::search::AlphaBeta2Tree< EvalT >::updateRootPV().
|
static |
Definition at line 146 of file oslConfig.cc.
Referenced by osl::misc::BinaryElementReader< T >::State::tryRead().
|
staticprivate |
Definition at line 109 of file oslConfig.h.
|
staticprivate |
Definition at line 118 of file oslConfig.h.
|
staticprivate |
Definition at line 107 of file oslConfig.h.
Referenced by evalRandom(), and setEvalRandom().
|
staticprivate |
Definition at line 115 of file oslConfig.h.
|
staticprivate |
Definition at line 114 of file oslConfig.h.
|
staticprivate |
Definition at line 117 of file oslConfig.h.
Referenced by inUnitTest(), inUnitTestLong(), inUnitTestShort(), and setInUnitTest().
|
staticprivate |
Definition at line 108 of file oslConfig.h.
|
static |
Definition at line 120 of file oslConfig.h.
Referenced by osl::search::AlphaBeta2Tree< EvalT >::addMultiPV(), osl::search::AlphaBeta2< EvalT >::alphaBetaSearchRoot(), osl::search::AlphaBeta2< EvalT >::computeBestMoveIteratively(), osl::search::AlphaBeta2Tree< EvalT >::examineMovesRoot(), osl::search::SearchTimer::testAndUpdateNextTimeTest(), and osl::search::AlphaBeta2Tree< EvalT >::updateRootPV().
|
static |
Definition at line 17 of file oslConfig.h.
Referenced by setNumCPUs().
|
staticprivate |
Definition at line 104 of file oslConfig.h.
Referenced by isMemoryLimitEffective(), memoryUseLimit(), and setMemoryUseLimit().
|
staticprivate |
Definition at line 106 of file oslConfig.h.
Referenced by isMemoryLimitEffective().
|
staticprivate |
Definition at line 105 of file oslConfig.h.
Referenced by memoryUseLimit(), and setMemoryUsePercent().
|
staticprivate |
Definition at line 110 of file oslConfig.h.
Referenced by setNumCPUs().
|
staticprivate |
Definition at line 116 of file oslConfig.h.
|
staticprivate |
Definition at line 116 of file oslConfig.h.
|
staticprivate |
Definition at line 114 of file oslConfig.h.
|
staticprivate |
Definition at line 111 of file oslConfig.h.
|
staticprivate |
Definition at line 112 of file oslConfig.h.
|
staticprivate |
Definition at line 113 of file oslConfig.h.
Referenced by setUsiOutputPawnValue(), and usiOutputPawnValue().