Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
O
openfpm_vcluster
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
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openfpm
openfpm_vcluster
Commits
2840e1b5
Commit
2840e1b5
authored
Dec 27, 2015
by
Pietro Incardona
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding additional SE_CLASS2 checks
parent
e4f99633
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletion
+23
-1
src/VCluster.hpp
src/VCluster.hpp
+23
-1
No files found.
src/VCluster.hpp
View file @
2840e1b5
...
...
@@ -529,6 +529,11 @@ public:
if
(
sz
[
i
]
!=
0
)
{
req
.
add
();
#ifdef SE_CLASS2
check_valid
(
ptr
[
i
],
sz
[
i
]);
#endif
MPI_SAFE_CALL
(
MPI_Issend
(
ptr
[
i
],
sz
[
i
],
MPI_BYTE
,
prc
[
i
],
SEND_SPARSE
+
NBX_cnt
,
MPI_COMM_WORLD
,
&
req
.
last
()));
log
.
logSend
(
prc
[
i
]);
}
...
...
@@ -567,7 +572,15 @@ public:
rid
++
;
// Check the pointer
#ifdef SE_CLASS2
check_valid
(
ptr
,
msize
);
#endif
MPI_SAFE_CALL
(
MPI_Recv
(
ptr
,
msize
,
MPI_BYTE
,
stat_t
.
MPI_SOURCE
,
SEND_SPARSE
+
NBX_cnt
,
MPI_COMM_WORLD
,
&
stat_t
));
#ifdef SE_CLASS2
check_valid
(
ptr
,
msize
);
#endif
}
// Check the status of all the MPI_issend and call the barrier if finished
...
...
@@ -719,6 +732,11 @@ public:
void
*
ptr
=
msg_alloc
(
proc_com
.
get
(
i
),
total_msg
,
n_proc_com
,
proc_com
.
get
(
n_proc_com
+
i
),
i
,
ptr_arg
);
req
.
add
();
#ifdef SE_CLASS2
check_valid
(
ptr
,
proc_com
.
get
(
i
));
#endif
MPI_SAFE_CALL
(
MPI_Irecv
(
ptr
,
proc_com
.
get
(
i
),
MPI_BYTE
,
proc_com
.
get
(
i
+
n_proc_com
),
MSG_SEND_RECV
,
MPI_COMM_WORLD
,
&
req
.
last
()));
}
...
...
@@ -727,6 +745,11 @@ public:
for
(
size_t
i
=
0
;
i
<
n_send
;
i
++
)
{
req
.
add
();
#ifdef SE_CLASS2
check_valid
(
ptr
[
i
],
sz
[
i
]);
#endif
MPI_SAFE_CALL
(
MPI_Isend
(
ptr
[
i
],
sz
[
i
],
MPI_BYTE
,
prc
[
i
],
MSG_SEND_RECV
,
MPI_COMM_WORLD
,
&
req
.
last
()));
}
...
...
@@ -734,7 +757,6 @@ public:
if
(
req
.
size
()
!=
0
)
{
MPI_SAFE_CALL
(
MPI_Waitall
(
req
.
size
(),
&
req
.
get
(
0
),
&
stat
.
get
(
0
)));}
// Remove the executed request
req
.
clear
();
stat
.
clear
();
}
...
...
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