Env Vars

General Env Vars

EnvVar Default Description
DOT “dot” Path to GraphViz dot
SOL_CLEAR_CACHE Similar to sol.cache.clear(). Available values: [‘TRUE’]
SOL_CWD “~/.cache/sol” Overrides the folder used to store the SOL cache. By default SOL stores it in the user’s cache folder. HOME and XDG_CACHE_HOME are obeyed to determine the location of the user’s cache folder. When SOL_CWD is set, the cache is generated in $SOL_CWD/.sol.
SOL_DEBUG Comma separated list of debug flags. Available values [‘ALL’, ‘COMPILER’, ‘JIT’, ‘GRAPH’, ‘TEXT’, ‘MEMORY’, ‘PARSER’, ‘STACKTRACE’]
SOL_JIT_THREADS Sets the max number of parallel JIT compilation processes. Default: (number of physical cores - 1)
SOL_LOG “INFO” Defines SOL log level. Available values: [‘TRACE’, ‘DEBUG’, ‘INFO’, ‘WARN’, ‘ERROR’]
SOL_PROFILE “FALSE:ALL:” Enables SOL profiler. Accepted format is MODE:DATA:FILENAME with MODE: [‘FALSE’, ‘TRUE’, ‘TSV’, ‘CSV’, ‘TENSORBOARD’], DATA: [‘ALL’, ‘PERFORMANCE’, ‘MEMORY’] and FILENAME as valid filename to write the performance data to. DATA and FILENAME are optional.
SOL_SQLITE_JOURNAL_MODE “WAL” Sets the SQLite pragma “journal_mode”
SOL_SQLITE_LOCKING_MODE “NORMAL” Sets the SQLite pragma “locking_mode”
SOL_SQLITE_READONLY Opens the SOL cache in readonly mode. No new models can be compiled! Should only be used with an already initialized SOL cache.
SOL_SQLITE_SYNCHRONOUS “FULL” Sets the SQLite pragma “synchronous”

SOL_DEBUG Options

Option Effect
COMPILER Adds additional checks and device synchronization instructions.
GRAPH Generates the computation graphs and stores them in {SOL_CWD}/debug.
JIT Compiles the code with debug flags.
MEMORY Generates a memory consumption estimation and stores it in {SOL_CWD}/debug.
PARSER Prints additional debug information while parsing.
TEXT Generates a textual representation of the computation graphs and stores them in {SOL_CWD}/debug.

Device specific env vars are listed in the respective section ( X86, NVIDIA, NEC SX-Aurora )