Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Sassena
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DAPHNE4NFDI
Sassena
Commits
c84e1f27
Commit
c84e1f27
authored
14 years ago
by
Benjamin Lindner2
Browse files
Options
Downloads
Patches
Plain Diff
bundled frames in all-to-all communication
parent
98fdd9fd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/decomposition/decomposition_plan.cpp
+2
-2
2 additions, 2 deletions
src/decomposition/decomposition_plan.cpp
src/scatter_devices/data_stager.cpp
+13
-8
13 additions, 8 deletions
src/scatter_devices/data_stager.cpp
with
15 additions
and
10 deletions
src/decomposition/decomposition_plan.cpp
+
2
−
2
View file @
c84e1f27
...
...
@@ -104,10 +104,10 @@ DecompositionPlan::DecompositionPlan(size_t nn,size_t nq,size_t naf,size_t elbyt
Err
::
Inst
()
->
write
(
"Either change the partition size manually or change the number of nodes."
);
Err
::
Inst
()
->
write
(
"Beware that size of a partition <= frames / atoms (depends)"
);
Err
::
Inst
()
->
write
(
"Limits:"
);
Err
::
Inst
()
->
write
(
string
(
"limits.memory.data="
)
+
boost
::
lexical_cast
<
string
>
(
nmaxbytesize
));
Err
::
Inst
()
->
write
(
string
(
"limits.
stage.
memory.data="
)
+
boost
::
lexical_cast
<
string
>
(
nmaxbytesize
));
Err
::
Inst
()
->
write
(
"Minimal Requirements:"
);
DecompositionParameters
dp
(
nn
,
nq
,
naf
,
npmax
,
elbytesize
);
Err
::
Inst
()
->
write
(
string
(
"limits.memory.data="
)
+
boost
::
lexical_cast
<
string
>
(
dp
.
nbytesize
()));
Err
::
Inst
()
->
write
(
string
(
"limits.
stage.
memory.data="
)
+
boost
::
lexical_cast
<
string
>
(
dp
.
nbytesize
()));
throw
;
}
...
...
This diff is collapsed.
Click to expand it.
src/scatter_devices/data_stager.cpp
+
13
−
8
View file @
c84e1f27
...
...
@@ -486,20 +486,25 @@ void DataStagerByAtom::distribute_coordinates(coor_t* p_coordinates_buffer,std::
DivAssignment
zero_node_assignment
(
NNPP
,
0
,
NA
);
size_t
maxatoms
=
zero_node_assignment
.
size
();
coor_t
*
p_alignedframe
=
(
coor_t
*
)
malloc
((
maxatoms
*
NNPP
)
*
3
*
sizeof
(
coor_t
));
coor_t
*
p_alignedframeOUT
=
(
coor_t
*
)
malloc
((
maxatoms
*
NNPP
)
*
3
*
sizeof
(
coor_t
));
coor_t
*
p_alignedframe
=
(
coor_t
*
)
malloc
(
LNF
*
(
maxatoms
*
NNPP
)
*
3
*
sizeof
(
coor_t
));
coor_t
*
p_alignedframeOUT
=
(
coor_t
*
)
malloc
(
LNF
*
(
maxatoms
*
NNPP
)
*
3
*
sizeof
(
coor_t
));
for
(
size_t
f
=
0
;
f
<
LNF
;
++
f
)
{
// first frame = frameoffset
size_t
firstframe
=
framesbuffer
[
0
][
f
];
coor_t
*
p_from
=
&
(
p_coordinates_buffer
[
f
*
NA
*
3
]);
copyalign_frame
(
p_alignedframe
,
p_from
,
maxatoms
);
boost
::
mpi
::
all_to_all
(
partitioncomm_
,
p_alignedframe
,
3
*
maxatoms
,
p_alignedframeOUT
);
fill_alignedframe
(
p_alignedframeOUT
,
maxatoms
,
firstframe
);
coor_t
*
p_to
=
&
(
p_alignedframe
[
i
*
(
maxatoms
*
NNPP
)
*
3
]);
copyalign_frame
(
p_to
,
p_from
,
maxatoms
);
}
boost
::
mpi
::
all_to_all
(
partitioncomm_
,
p_alignedframe
,
3
*
maxatoms
*
LNF
,
p_alignedframeOUT
);
for
(
size_t
f
=
0
;
f
<
LNF
;
++
f
)
{
size_t
firstframe
=
framesbuffer
[
0
][
f
];
fill_alignedframe
(
p_alignedframeOUT
,
maxatoms
,
firstframe
);
}
free
(
p_alignedframe
);
free
(
p_alignedframeOUT
);
...
...
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