Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
L
load_leveller
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Lukas Weber
load_leveller
Commits
2f7cdf33
Commit
2f7cdf33
authored
Sep 09, 2019
by
Lukas Weber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pt_statistics option to save all the replica trajectories
parent
bdbb9cfa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
4 deletions
+20
-4
src/runner_pt.cpp
src/runner_pt.cpp
+18
-3
src/runner_pt.h
src/runner_pt.h
+2
-1
No files found.
src/runner_pt.cpp
View file @
2f7cdf33
...
...
@@ -274,8 +274,19 @@ void runner_pt_master::write_params_json() {
file
<<
params
.
dump
(
1
)
<<
"
\n
"
;
}
void
runner_pt_master
::
write_param_optimization_stats
()
{
std
::
string
stat_name
=
job_
.
jobdir
()
+
"/pt_param_stats.h5"
;
void
runner_pt_master
::
write_statistics
(
const
pt_chain_run
&
chain_run
)
{
std
::
string
stat_name
=
job_
.
jobdir
()
+
"/pt_statistics.h5"
;
iodump
stat
=
iodump
::
open_readwrite
(
stat_name
);
auto
g
=
stat
.
get_root
();
g
.
write
(
"chain_length"
,
chain_len_
);
auto
cg
=
g
.
open_group
(
fmt
::
format
(
"chain{:04d}_run{:04d}"
,
chain_run
.
id
,
chain_run
.
run_id
));
cg
.
insert_back
(
"rank_to_pos"
,
chain_run
.
rank_to_pos
);
}
void
runner_pt_master
::
write_param_optimization_statistics
()
{
std
::
string
stat_name
=
job_
.
jobdir
()
+
"/pt_statistics.h5"
;
iodump
stat
=
iodump
::
open_readwrite
(
stat_name
);
auto
g
=
stat
.
get_root
();
...
...
@@ -420,7 +431,7 @@ void runner_pt_master::pt_param_optimization(pt_chain &chain) {
"convergence={:.2g}"
,
chain
.
id
,
chain
.
rejection_rate_entries
[
0
],
efficiency
,
convergence
));
checkpoint_write
();
write_param_optimization_stats
();
write_param_optimization_stat
istic
s
();
chain
.
clear_histograms
();
}
}
...
...
@@ -512,6 +523,10 @@ void runner_pt_master::react() {
MPI_Send
(
&
new_param
,
1
,
MPI_DOUBLE
,
rank_section
*
chain_len_
+
target
+
1
,
0
,
MPI_COMM_WORLD
);
}
if
(
job_
.
jobfile
[
"jobconfig"
].
get
<
bool
>
(
"pt_statistics"
,
false
))
{
write_statistics
(
chain_run
);
}
}
else
{
// S_TIMEUP
num_active_ranks_
--
;
}
...
...
src/runner_pt.h
View file @
2f7cdf33
...
...
@@ -77,7 +77,8 @@ private:
void
checkpoint_write
();
void
checkpoint_read
();
void
write_params_json
();
void
write_param_optimization_stats
();
void
write_statistics
(
const
pt_chain_run
&
chain_run
);
void
write_param_optimization_statistics
();
int
schedule_chain_run
();
void
pt_global_update
(
pt_chain
&
chain
,
pt_chain_run
&
chain_run
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment