Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
ScalFMM
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
5
Issues
5
List
Boards
Labels
Service Desk
Milestones
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
solverstack
ScalFMM
Commits
2c8edbec
Commit
2c8edbec
authored
Jan 12, 2016
by
BRAMAS Berenger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prepare split M2L messages
parent
e50838a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
Src/Core/FFmmAlgorithmThreadProc.hpp
Src/Core/FFmmAlgorithmThreadProc.hpp
+7
-9
No files found.
Src/Core/FFmmAlgorithmThreadProc.hpp
View file @
2c8edbec
...
...
@@ -756,9 +756,8 @@ protected:
FLOG
(
sendCounter
.
tic
());
// Then they can send and receive (because they know what they will receive)
// To send in asynchrone way
MPI_Request
*
const
requests
=
new
MPI_Request
[
2
*
nbProcess
*
OctreeHeight
];
MPI_Status
*
const
status
=
new
MPI_Status
[
2
*
nbProcess
*
OctreeHeight
];
int
iterRequest
=
0
;
std
::
vector
<
MPI_Request
>
requests
;
requests
.
reserve
(
2
*
nbProcess
*
OctreeHeight
);
for
(
int
idxLevel
=
2
;
idxLevel
<
OctreeHeight
;
++
idxLevel
){
for
(
int
idxProc
=
0
;
idxProc
<
nbProcess
;
++
idxProc
){
...
...
@@ -779,9 +778,10 @@ protected:
FAssertLF
(
sendBuffer
[
idxLevel
*
nbProcess
+
idxProc
]
->
getSize
()
==
toSendAtProcAtLevel
);
FAssertLF
(
sendBuffer
[
idxLevel
*
nbProcess
+
idxProc
]
->
getSize
()
<
std
::
numeric_limits
<
int
>::
max
());
requests
.
emplace_back
();
FMpi
::
MpiAssert
(
MPI_Isend
(
sendBuffer
[
idxLevel
*
nbProcess
+
idxProc
]
->
data
(),
int
(
sendBuffer
[
idxLevel
*
nbProcess
+
idxProc
]
->
getSize
()),
MPI_PACKED
,
idxProc
,
FMpi
::
TagLast
+
idxLevel
,
comm
.
getComm
(),
&
requests
[
iterRequest
++
]
)
,
__LINE__
);
FMpi
::
TagLast
+
idxLevel
*
100
,
comm
.
getComm
(),
&
requests
.
back
()
)
,
__LINE__
);
}
const
long
long
int
toReceiveFromProcAtLevel
=
globalReceiveMap
[(
idxProc
*
nbProcess
*
OctreeHeight
)
+
idxLevel
*
nbProcess
+
idProcess
];
...
...
@@ -789,9 +789,10 @@ protected:
recvBuffer
[
idxLevel
*
nbProcess
+
idxProc
]
=
new
FMpiBufferReader
(
comm
.
getComm
(),
int
(
toReceiveFromProcAtLevel
));
FAssertLF
(
recvBuffer
[
idxLevel
*
nbProcess
+
idxProc
]
->
getCapacity
()
<
std
::
numeric_limits
<
int
>::
max
());
requests
.
emplace_back
();
FMpi
::
MpiAssert
(
MPI_Irecv
(
recvBuffer
[
idxLevel
*
nbProcess
+
idxProc
]
->
data
(),
int
(
recvBuffer
[
idxLevel
*
nbProcess
+
idxProc
]
->
getCapacity
()),
MPI_PACKED
,
idxProc
,
FMpi
::
TagLast
+
idxLevel
,
comm
.
getComm
(),
&
requests
[
iterRequest
++
]
)
,
__LINE__
);
FMpi
::
TagLast
+
idxLevel
*
100
,
comm
.
getComm
(),
&
requests
.
back
()
)
,
__LINE__
);
}
}
}
...
...
@@ -801,10 +802,7 @@ protected:
//////////////////////////////////////////////////////////////////
// Wait to receive every things (and send every things)
FMpi
::
MpiAssert
(
MPI_Waitall
(
iterRequest
,
requests
,
status
),
__LINE__
);
delete
[]
requests
;
delete
[]
status
;
FMpi
::
MpiAssert
(
MPI_Waitall
(
int
(
requests
.
size
()),
requests
.
data
(),
MPI_STATUS_IGNORE
),
__LINE__
);
FLOG
(
sendCounter
.
tac
());
}
//End of Master region
...
...
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