Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
arbor
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
arbor-sim
arbor
Commits
d6218b18
Commit
d6218b18
authored
8 years ago
by
w.klijn
Browse files
Options
Downloads
Patches
Plain Diff
Fix namespace exporter
fix importing of file export parameters from json
parent
fc458060
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
miniapp/io.cpp
+12
-11
12 additions, 11 deletions
miniapp/io.cpp
miniapp/miniapp.cpp
+1
-1
1 addition, 1 deletion
miniapp/miniapp.cpp
tests/performance/io/disk_io.cpp
+2
-2
2 additions, 2 deletions
tests/performance/io/disk_io.cpp
with
15 additions
and
14 deletions
miniapp/io.cpp
+
12
−
11
View file @
d6218b18
...
...
@@ -127,7 +127,7 @@ cl_options read_options(int argc, char** argv) {
util
::
nothing
,
// trace_max_gid
// spike_output_parameters:
false
,
//
no
spike output
false
,
// spike output
false
,
// single_file_per_simulation
true
,
// Overwrite outputfile if exists
"./"
,
// output path
...
...
@@ -208,6 +208,17 @@ cl_options read_options(int argc, char** argv) {
update_option
(
options
.
probe_soma_only
,
fopts
,
"probe_soma_only"
);
update_option
(
options
.
trace_prefix
,
fopts
,
"trace_prefix"
);
update_option
(
options
.
trace_max_gid
,
fopts
,
"trace_max_gid"
);
// Parameters for spike output
update_option
(
options
.
spike_file_output
,
fopts
,
"spike_file_output"
);
if
(
options
.
spike_file_output
)
{
update_option
(
options
.
single_file_per_rank
,
fopts
,
"single_file_per_rank"
);
update_option
(
options
.
over_write
,
fopts
,
"over_write"
);
update_option
(
options
.
output_path
,
fopts
,
"output_path"
);
update_option
(
options
.
file_name
,
fopts
,
"file_name"
);
update_option
(
options
.
file_extention
,
fopts
,
"file_extention"
);
}
}
catch
(
std
::
exception
&
e
)
{
throw
model_description_error
(
...
...
@@ -260,18 +271,8 @@ cl_options read_options(int argc, char** argv) {
else
{
fopts
[
"trace_max_gid"
]
=
nullptr
;
}
fid
<<
std
::
setw
(
3
)
<<
fopts
<<
"
\n
"
;
// Parameters for spike output
options
.
spike_file_output
=
fopts
[
"spike_file_output"
];
if
(
options
.
spike_file_output
)
{
options
.
single_file_per_rank
=
fopts
[
"single_file_per_rank"
];
options
.
over_write
=
fopts
[
"over_write"
];
options
.
output_path
=
fopts
[
"output_path"
].
get
<
std
::
string
>
();;
options
.
file_name
=
fopts
[
"file_name"
].
get
<
std
::
string
>
();;
options
.
file_extention
=
fopts
[
"file_extention"
].
get
<
std
::
string
>
();;
}
}
catch
(
std
::
exception
&
e
)
{
throw
model_description_error
(
...
...
This diff is collapsed.
Click to expand it.
miniapp/miniapp.cpp
+
1
−
1
View file @
d6218b18
...
...
@@ -33,7 +33,7 @@ using lowered_cell = fvm::fvm_cell<double, cell_local_size_type>;
using
model_type
=
model
<
lowered_cell
>
;
using
time_type
=
model_type
::
time_type
;
using
sample_trace_type
=
sample_trace
<
time_type
,
model_type
::
value_type
>
;
using
file_export_type
=
communicat
io
n
::
exporter_spike_file
<
time_type
,
global_policy
>
;
using
file_export_type
=
io
::
exporter_spike_file
<
time_type
,
global_policy
>
;
void
banner
();
std
::
unique_ptr
<
recipe
>
make_recipe
(
const
io
::
cl_options
&
,
const
probe_distribution
&
);
std
::
unique_ptr
<
sample_trace_type
>
make_trace
(
cell_member_type
probe_id
,
probe_spec
probe
);
...
...
This diff is collapsed.
Click to expand it.
tests/performance/io/disk_io.cpp
+
2
−
2
View file @
d6218b18
...
...
@@ -22,7 +22,7 @@ using global_policy = communication::global_policy;
using
lowered_cell
=
fvm
::
fvm_cell
<
double
,
cell_local_size_type
>
;
using
cell_group_type
=
cell_group
<
lowered_cell
>
;
using
time_type
=
typename
cell_group_type
::
time_type
;
using
spike_type
=
communicat
io
n
::
exporter_spike_file
<
time_type
,
using
spike_type
=
io
::
exporter_spike_file
<
time_type
,
global_policy
>::
spike_type
;
using
timer
=
util
::
timer_type
;
...
...
@@ -68,7 +68,7 @@ int main(int argc, char** argv)
}
// Create the sut
communicat
io
n
::
exporter_spike_file
<
time_type
,
global_policy
>
exporter
(
io
::
exporter_spike_file
<
time_type
,
global_policy
>
exporter
(
"spikes"
,
"./"
,
"gdf"
,
true
);
// We need the nr of ranks to calculate the nr of spikes to produce per
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment