Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sbalzarini Lab
S
Software
P
Parallel Computing
OpenFPM
openfpm_vcluster
Commits
fc67fe7c
Commit
fc67fe7c
authored
Jul 12, 2015
by
Pietro Incardona
Browse files
Make send generic + Fix jenkins script
parent
3d5287d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
build_vcluster.sh
View file @
fc67fe7c
...
...
@@ -77,15 +77,15 @@ then
make
if
[
$?
-ne
0
]
;
then
exit
1
;
fi
salloc
-
n
16
--time
=
00:05:00
--mem-per-cpu
=
1900
--partition
=
sandy mpirun
-np
16 src/vcluster
salloc
-
-nodes
=
1
--ntasks-per-node
=
16
--time
=
00:05:00
--mem-per-cpu
=
1900
--partition
=
sandy mpirun
-np
16 src/vcluster
if
[
$?
-ne
0
]
;
then
exit
1
;
fi
salloc
-
n32
--time
=
00:05:00
--mem-per-cpu
=
1900
--partition
=
sandy mpirun
-np
32 src/vcluster
salloc
-
-nodes
=
2
--ntasks-per-node
=
16
--time
=
00:05:00
--mem-per-cpu
=
1900
--partition
=
sandy mpirun
-np
32 src/vcluster
if
[
$?
-ne
0
]
;
then
exit
1
;
fi
salloc
-
n64
--time
=
00:05:00
--mem-per-cpu
=
1900
--partition
=
sandy mpirun
-np
64 src/vcluster
salloc
-
-nodes
=
4
--ntasks-per-node
=
16
--time
=
00:05:00
--mem-per-cpu
=
1900
--partition
=
sandy mpirun
-np
64 src/vcluster
if
[
$?
-ne
0
]
;
then
exit
1
;
fi
salloc
-
n128
--time
=
00:05:00
--mem-per-cpu
=
1900
--partition
=
sandy mpirun
-np
128 src/vcluster
salloc
-
-nodes
=
8
--ntasks-per-node
=
16
--time
=
00:05:00
--mem-per-cpu
=
1900
--partition
=
sandy mpirun
-np
128 src/vcluster
if
[
$?
-ne
0
]
;
then
exit
1
;
fi
salloc
-
n25
6
--time
=
00:5:00
--mem-per-cpu
=
1900
--partition
=
sandy mpirun
-np
256 src/vcluster
salloc
-
-nodes
=
16
--ntasks-per-node
=
1
6
--time
=
00:5:00
--mem-per-cpu
=
1900
--partition
=
sandy mpirun
-np
256 src/vcluster
if
[
$?
-ne
0
]
;
then
exit
1
;
fi
else
...
...
src/VCluster.hpp
View file @
fc67fe7c
...
...
@@ -14,7 +14,7 @@
#include "Vector/map_vector.hpp"
#ifdef DEBUG
#include "util/check_no_pointers.hpp"
#include "util.hpp"
#include "util
/util_debug
.hpp"
#endif
#include "util/Vcluster_log.hpp"
...
...
@@ -720,8 +720,10 @@ public:
* \param tag id
* \param v buffer to send
*
* \return true if succeed false otherwise
*
*/
template
<
typename
T
>
bool
send
(
size_t
proc
,
size_t
tag
,
openfpm
::
vector
<
T
>
&
v
)
template
<
typename
T
,
typename
ly
,
typename
Mem
,
typename
gr
>
bool
send
(
size_t
proc
,
size_t
tag
,
openfpm
::
vector
<
T
,
ly
,
Mem
,
gr
>
&
v
)
{
#ifdef DEBUG
checkType
<
T
>
();
...
...
@@ -732,8 +734,10 @@ public:
// Create one request
req
.
add
();
//
reduce
//
send
MPI_IsendW
<
T
>::
send
(
proc
,
SEND_RECV_BASE
+
tag
,
v
,
req
.
last
());
return
true
;
}
/*! \brief Recv data from a processor
...
...
@@ -750,6 +754,8 @@ public:
* \param tag id
* \param v buffer to send
*
* \return true if succeed false otherwise
*
*/
template
<
typename
T
>
bool
recv
(
size_t
proc
,
size_t
tag
,
openfpm
::
vector
<
T
>
&
v
)
{
...
...
@@ -762,8 +768,10 @@ public:
// Create one request
req
.
add
();
// re
duc
e
// re
ceiv
e
MPI_IrecvW
<
T
>::
recv
(
proc
,
SEND_RECV_BASE
+
tag
,
v
,
req
.
last
());
return
true
;
}
/*! \brief Execute all the requests
...
...
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