Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ADIOS2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Podhorszki, Norbert
ADIOS2
Commits
4cdd0934
Commit
4cdd0934
authored
7 years ago
by
Jason Wang
Committed by
William F Godoy
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fixed JSON exception for helloDataManWriter (#6)
and clang-format issues
parent
0724681f
No related branches found
No related tags found
1 merge request
!124
Refactor
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
examples/hello/datamanWriter/helloDataManWriter.cpp
+1
-1
1 addition, 1 deletion
examples/hello/datamanWriter/helloDataManWriter.cpp
source/dataman/DataMan.cpp
+14
-2
14 additions, 2 deletions
source/dataman/DataMan.cpp
source/dataman/MdtmMan.cpp
+7
-0
7 additions, 0 deletions
source/dataman/MdtmMan.cpp
with
22 additions
and
3 deletions
examples/hello/datamanWriter/helloDataManWriter.cpp
+
1
−
1
View file @
4cdd0934
...
...
@@ -32,7 +32,7 @@ int main(int argc, char *argv[])
adios
::
IO
&
dataManIO
=
adios
.
DeclareIO
(
"WANIO"
);
dataManIO
.
SetEngine
(
"DataManWriter"
);
dataManIO
.
SetParameters
(
"peer-to-peer=yes"
,
"real_time=yes"
,
"compress=no"
,
"method=
cache
"
);
"compress=no"
,
"method=
dump
"
);
// Define variable and local size
auto
bpFloats
=
...
...
This diff is collapsed.
Click to expand it.
source/dataman/DataMan.cpp
+
14
−
2
View file @
4cdd0934
...
...
@@ -72,11 +72,23 @@ void DataMan::add_stream(json a_jmsg)
a_jmsg
[
"num_channels"
]
=
num_channels
;
}
int
local_port
=
12306
,
remote_port
=
12307
;
if
(
a_jmsg
[
"local_port"
].
is_number
())
{
local_port
=
a_jmsg
[
"local_port"
].
get
<
int
>
();
}
if
(
a_jmsg
[
"remote_port"
].
is_number
())
{
local_port
=
a_jmsg
[
"remote_port"
].
get
<
int
>
();
}
for
(
int
i
=
0
;
i
<
num_channels
;
i
++
)
{
a_jmsg
[
"channel_id"
]
=
i
;
a_jmsg
[
"local_port"
]
=
a_jmsg
[
"
local_port
"
].
get
<
int
>
()
+
2
;
a_jmsg
[
"remote_port"
]
=
a_jmsg
[
"
remote_port
"
].
get
<
int
>
()
+
2
;
a_jmsg
[
"local_port"
]
=
local_port
+
2
;
a_jmsg
[
"remote_port"
]
=
remote_port
+
2
;
auto
man
=
get_man
(
method
);
if
(
man
)
{
...
...
This diff is collapsed.
Click to expand it.
source/dataman/MdtmMan.cpp
+
7
−
0
View file @
4cdd0934
...
...
@@ -19,6 +19,7 @@
int
MdtmMan
::
init
(
json
a_jmsg
)
{
std
::
cout
<<
" 1 MdtmMan::init "
<<
m_channel_id
<<
std
::
endl
;
StreamMan
::
init
(
a_jmsg
);
if
(
a_jmsg
[
"pipe_prefix"
].
is_string
())
...
...
@@ -68,16 +69,22 @@ int MdtmMan::init(json a_jmsg)
// Make pipes
mkdir
(
m_pipepath
.
c_str
(),
0755
);
std
::
cout
<<
"making "
<<
m_full_pipename
<<
std
::
endl
;
mkfifo
(
m_full_pipename
.
c_str
(),
0666
);
std
::
cout
<<
"made "
<<
m_full_pipename
<<
std
::
endl
;
if
(
m_stream_mode
==
"sender"
)
{
std
::
cout
<<
"opening "
<<
m_full_pipename
<<
std
::
endl
;
m_pipe_handler
=
open
(
m_full_pipename
.
c_str
(),
O_WRONLY
);
std
::
cout
<<
"opened "
<<
m_full_pipename
<<
std
::
endl
;
}
if
(
m_stream_mode
==
"receiver"
)
{
m_pipe_handler
=
open
(
m_full_pipename
.
c_str
(),
O_RDONLY
|
O_NONBLOCK
);
}
return
0
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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