Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
openfpm_pdata
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sbalzarini Lab
Software
Parallel Computing
OpenFPM
openfpm_pdata
Commits
0b083860
Commit
0b083860
authored
5 years ago
by
Pietro Incardona
Browse files
Options
Downloads
Patches
Plain Diff
Fixing map performance tests
parent
9a560ecb
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/Vector/performance/vector_dist_gg_map_performance.hpp
+8
-2
8 additions, 2 deletions
src/Vector/performance/vector_dist_gg_map_performance.hpp
src/Vector/performance/vector_dist_performance_common.hpp
+2
-5
2 additions, 5 deletions
src/Vector/performance/vector_dist_performance_common.hpp
with
10 additions
and
7 deletions
src/Vector/performance/vector_dist_gg_map_performance.hpp
+
8
−
2
View file @
0b083860
...
...
@@ -45,10 +45,13 @@ double benchmark_map(size_t k_int, Vcluster<HeapMemory> & v_cl)
for
(
size_t
i
=
0
;
i
<
dim
;
i
++
)
{
bc
[
i
]
=
PERIODIC
;}
vector_dist
<
dim
,
float
,
aggregate
<
float
[
dim
]
>
>
vd
(
k_int
,
box
,
bc
,
Ghost
<
dim
,
float
>
(
0.1
));
vector_dist
<
dim
,
float
,
aggregate
<
float
[
dim
]
>
>
vd
(
v_cl
.
size
()
*
v_cl
.
size
()
*
k_int
,
box
,
bc
,
Ghost
<
dim
,
float
>
(
0.1
));
auto
&
dec
=
vd
.
getDecomposition
();
int
start
=
0
;
int
stop
=
k_int
;
for
(
size_t
i
=
0
;
i
<
v_cl
.
size
()
;
i
++
)
{
if
(
i
==
v_cl
.
rank
())
...
...
@@ -60,7 +63,10 @@ double benchmark_map(size_t k_int, Vcluster<HeapMemory> & v_cl)
{
// generate all particles in the near processor
vd_initialize_box_nomap
<
dim
>
(
vd
,
nn_box
.
get
(
0
),
v_cl
,
k_int
);
vd_initialize_box_nomap
<
dim
>
(
vd
,
nn_box
.
get
(
0
),
v_cl
,
start
,
stop
);
start
+=
k_int
;
stop
+=
k_int
;
}
}
...
...
This diff is collapsed.
Click to expand it.
src/Vector/performance/vector_dist_performance_common.hpp
+
2
−
5
View file @
0b083860
...
...
@@ -166,16 +166,13 @@ void vd_initialize(v_dist & vd, Vcluster<HeapMemory> & v_cl)
*
*/
template
<
unsigned
int
dim
,
typename
v_dist
>
void
vd_initialize_box_nomap
(
v_dist
&
vd
,
const
Box
<
dim
,
typename
v_dist
::
stype
>
&
box
,
Vcluster
<
HeapMemory
>
&
v_cl
,
int
np
art
)
void
vd_initialize_box_nomap
(
v_dist
&
vd
,
const
Box
<
dim
,
typename
v_dist
::
stype
>
&
box
,
Vcluster
<
HeapMemory
>
&
v_cl
,
int
st
art
,
int
stop
)
{
// The random generator engine
std
::
default_random_engine
eg
(
v_cl
.
getProcessUnitID
()
*
4313
);
std
::
uniform_real_distribution
<
float
>
ud
(
0.0
f
,
1.0
f
);
size_t
n
=
vd
.
size_local
();
size_t
n_stop
=
n
+
npart
;
auto
it
=
vd
.
getIterator
(
n
,
n_stop
);
auto
it
=
vd
.
getIterator
(
start
,
stop
);
while
(
it
.
isNext
())
{
...
...
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