flowlog.c)OR-par workers run deep recursive solver code and can overflow small pthread stacks.
Try:
--threads NFLOWLOG_ORPAR_STACK_SIZE=33554432
(32 MiB)FLOWLOG_ORPAR_MAX_WORKERS=NParallelism is enabled by default
(flowlog_parallel_profile=fast).
If you only see one core in use, check:
:- set_prolog_flag(flowlog_parallel_profile, off).:- set_prolog_flag(flowlog_parallel_or, off).--threads 1 (or
FLOWLOG_N_CPUPROC=1).FLOWLOG_DEBUG_ORPAR=all) to see
whether work is being spawned.--engine wamvm (default) or try
--engine wam for the WAM-lite engine.Also confirm Flowlog sees your CPU count:
FLOWLOG_N_CPUPROC is not set to 1--threads 1Notes:
flowlog_parallel_profile=iso),
Flowlog may limit parallelism to preserve classic enumeration
order.FLOWLOG_DEBUG_ORPAR=1 (or 2) and
optionally
FLOWLOG_DEBUG_ORPAR_LOG=/tmp/flowlog_orpar.logThe line editor is enabled only when stdin/stdout are TTYs. If you run the REPL via redirected input/output, Flowlog falls back to plain line reads.
History is written to:
~/.flowlog_history by defaultOverride with:
FLOWLOG_HISTORY_FILE=/path/to/fileIf your terminal looks like output is indented further and further to
the right, your terminal may have been left in a bad
termios state after a crash.
Fix:
reset[file]. doesn’t load
my program”Flowlog supports the common top-level consult shorthand, but it only works when the file can be resolved on disk.
Try:
?- [program]. (Flowlog will also try
program.pl if program is missing)?- ['path/with/slash/program.pl']. (quote paths with
spaces or special characters):load program.pl /
./flowlog program.pl