forked from stassa/louise
-
Notifications
You must be signed in to change notification settings - Fork 0
/
load_project.pl
79 lines (70 loc) · 2.57 KB
/
load_project.pl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
% Start in dark mode
%:-use_module(library(theme/dark)).
% Start in dork mode
%:-use_module((themes/dork)).
:- set_prolog_flag(encoding, utf8).
:-prolog_load_context(directory, Dir)
,asserta(user:file_search_path(project_root, Dir)).
user:file_search_path(src, project_root(src)).
user:file_search_path(subsystems, src(subsystems)).
user:file_search_path(lib, project_root(lib)).
user:file_search_path(data, project_root(data)).
user:file_search_path(output, project_root(output)).
user:file_search_path(scripts, data(scripts)).
:-doc_browser.
:-use_module(configuration).
:-use_module(src(louise)).
:-use_module(src(mil_problem)).
:-use_module(src(auxiliaries)).
:-use_module(subsystems(examples_invention)).
:-use_module(subsystems(metagen)).
:-use_module(subsystems(metarule_extraction)).
:-use_module(subsystems(toil)).
:-use_module(subsystems(greedy)).
:-use_module(subsystems(thelma/thelma)).
:-use_module(lib(evaluation/evaluation)).
:-use_module(lib(folding_unfolding/folding_unfolding)).
:-use_module(lib(sampling/sampling)).
edit_files:-
% Uncomment, or add, the paths of files you want to open in the IDE when
% the project loads, below.
configuration:experiment_file(P,_)
,edit(project_root(load_project))
,edit(project_root(configuration))
,edit(src(louise))
,edit(src(vanilla))
%,edit(src(mil_problem))
,edit(src(auxiliaries))
%,edit(subsystems(examples_invention))
%,edit(subsystems(metagen))
%,edit(subsystems(metarule_extraction))
%,edit(subsystems(toil))
%,edit(subsystems(thelma/thelma))
%,edit(subsystems(greedy))
%,edit(lib(evaluation/evaluation))
%,edit(lib(folding_unfolding/folding_unfolding))
%,edit(lib(sampling/sampling))
,edit(P)
.
:-edit_files.
%:-load_test_files([]).
%:-run_tests.
% Large data may require a larger stack.
:- set_prolog_flag(stack_limit, 2_147_483_648).
%:- set_prolog_flag(stack_limit, 4_294_967_296).
%:-set_prolog_flag(stack_limit, 8_589_934_592).
%:-set_prolog_flag(stack_limit, 17_179_869_184).
:-current_prolog_flag(stack_limit, V)
,format('Global stack limit ~D~n',[V]).
% Large hypotheses may require large tables particularly for evaluation
% purposes
:-set_prolog_flag(table_space, 2_147_483_648).
%:-set_prolog_flag(table_space, 4_294_967_296).
%:-set_prolog_flag(table_space, 8_589_934_592).
%:-set_prolog_flag(table_space, 17_179_869_184).
%:-set_prolog_flag(table_space, 34_359_738_368). % 32 GB
%:-set_prolog_flag(table_space, 49_392_123_904). % 46 GB
%:-set_prolog_flag(table_space, 51_539_607_552). % 48 GB
%:-set_prolog_flag(table_space, 53_687_091_200). % 50 GB
:-current_prolog_flag(table_space, V)
,format('Table space ~D~n',[V]).