TraceMaker
C++ API of the engine
Loading...
Searching...
No Matches
tmk::session::SessionOptions Struct Reference

#include <session/session.hpp>

Public Attributes

std::string in
 the board; its project files supply the rules
std::string out
 where save writes; empty = save is refused
std::uint64_t seed = 1
 router seed of a route call that does not give one
long work_limit = 0
 search work of the whole session (expansions plus flood cells); 0 = none
int gpu_device = -1
 GPU for cost-to-go fields; -1 = CPU reference (same results).
int threads = 4
 portfolio threads of a route with several variants (the result does not depend on it)
std::string log
 JSON-lines log of the calls; empty = none.
events::Sink * sink = nullptr
 the router's events (the viewer)

Detailed Description

Definition at line 27 of file session.hpp.

Member Data Documentation

◆ gpu_device

int tmk::session::SessionOptions::gpu_device = -1

GPU for cost-to-go fields; -1 = CPU reference (same results).

Definition at line 32 of file session.hpp.

◆ in

std::string tmk::session::SessionOptions::in

the board; its project files supply the rules

Definition at line 28 of file session.hpp.

◆ log

std::string tmk::session::SessionOptions::log

JSON-lines log of the calls; empty = none.

Definition at line 34 of file session.hpp.

◆ out

std::string tmk::session::SessionOptions::out

where save writes; empty = save is refused

Definition at line 29 of file session.hpp.

◆ seed

std::uint64_t tmk::session::SessionOptions::seed = 1

router seed of a route call that does not give one

Definition at line 30 of file session.hpp.

◆ sink

events::Sink* tmk::session::SessionOptions::sink = nullptr

the router's events (the viewer)

Definition at line 35 of file session.hpp.

◆ threads

int tmk::session::SessionOptions::threads = 4

portfolio threads of a route with several variants (the result does not depend on it)

Definition at line 33 of file session.hpp.

◆ work_limit

long tmk::session::SessionOptions::work_limit = 0

search work of the whole session (expansions plus flood cells); 0 = none

Definition at line 31 of file session.hpp.


The documentation for this struct was generated from the following file: