Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
O
openfpm_pdata
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
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_pdata
Commits
1d9215ba
Commit
1d9215ba
authored
Aug 07, 2017
by
incardon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing pdata to work with coverage
parent
c186c9a8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
0 deletions
+49
-0
src/Vector/vector_dist_cell_list_tests.hpp
src/Vector/vector_dist_cell_list_tests.hpp
+6
-0
src/Vector/vector_dist_unit_test.hpp
src/Vector/vector_dist_unit_test.hpp
+43
-0
No files found.
src/Vector/vector_dist_cell_list_tests.hpp
View file @
1d9215ba
...
...
@@ -5,6 +5,8 @@
* Author: i-bird
*/
#include "config.h"
#ifndef SRC_VECTOR_VECTOR_DIST_CELL_LIST_TESTS_HPP_
#define SRC_VECTOR_VECTOR_DIST_CELL_LIST_TESTS_HPP_
...
...
@@ -24,7 +26,11 @@ BOOST_AUTO_TEST_CASE( vector_dist_reorder_2d_test )
std
::
default_random_engine
eg
;
std
::
uniform_real_distribution
<
float
>
ud
(
0.0
f
,
1.0
f
);
#ifdef TEST_COVERAGE_MODE
long
int
k
=
24288
*
v_cl
.
getProcessingUnits
();
#else
long
int
k
=
524288
*
v_cl
.
getProcessingUnits
();
#endif
long
int
big_step
=
k
/
4
;
big_step
=
(
big_step
==
0
)
?
1
:
big_step
;
...
...
src/Vector/vector_dist_unit_test.hpp
View file @
1d9215ba
...
...
@@ -8,6 +8,8 @@
#ifndef VECTOR_DIST_UNIT_TEST_HPP_
#define VECTOR_DIST_UNIT_TEST_HPP_
#include "config.h"
#include <random>
#include "Vector/vector_dist.hpp"
#include "data_type/aggregate.hpp"
...
...
@@ -306,7 +308,11 @@ BOOST_AUTO_TEST_CASE( vector_dist_iterator_test_use_2d )
std
::
default_random_engine
eg
;
std
::
uniform_real_distribution
<
float
>
ud
(
0.0
f
,
1.0
f
);
#ifdef TEST_COVERAGE_MODE
long
int
k
=
24288
*
v_cl
.
getProcessingUnits
();
#else
long
int
k
=
524288
*
v_cl
.
getProcessingUnits
();
#endif
long
int
big_step
=
k
/
4
;
big_step
=
(
big_step
==
0
)
?
1
:
big_step
;
...
...
@@ -377,7 +383,11 @@ BOOST_AUTO_TEST_CASE( vector_dist_iterator_test_use_3d )
std
::
default_random_engine
eg
;
std
::
uniform_real_distribution
<
float
>
ud
(
0.0
f
,
1.0
f
);
#ifdef TEST_COVERAGE_MODE
long
int
k
=
24288
*
v_cl
.
getProcessingUnits
();
#else
long
int
k
=
524288
*
v_cl
.
getProcessingUnits
();
#endif
long
int
big_step
=
k
/
4
;
big_step
=
(
big_step
==
0
)
?
1
:
big_step
;
...
...
@@ -450,7 +460,11 @@ BOOST_AUTO_TEST_CASE( vector_dist_iterator_fixed_dec_3d )
std
::
default_random_engine
eg
;
std
::
uniform_real_distribution
<
float
>
ud
(
0.0
f
,
1.0
f
);
#ifdef TEST_COVERAGE_MODE
long
int
k
=
2428
*
v_cl
.
getProcessingUnits
();
#else
long
int
k
=
52428
*
v_cl
.
getProcessingUnits
();
#endif
long
int
big_step
=
k
/
4
;
big_step
=
(
big_step
==
0
)
?
1
:
big_step
;
...
...
@@ -523,7 +537,11 @@ BOOST_AUTO_TEST_CASE( vector_dist_periodic_test_use_2d )
std
::
default_random_engine
eg
;
std
::
uniform_real_distribution
<
float
>
ud
(
0.0
f
,
1.0
f
);
#ifdef TEST_COVERAGE_MODE
long
int
k
=
24288
*
v_cl
.
getProcessingUnits
();
#else
long
int
k
=
524288
*
v_cl
.
getProcessingUnits
();
#endif
long
int
big_step
=
k
/
4
;
big_step
=
(
big_step
==
0
)
?
1
:
big_step
;
...
...
@@ -627,7 +645,11 @@ BOOST_AUTO_TEST_CASE( vector_dist_periodic_test_use_3d )
std
::
default_random_engine
eg
;
std
::
uniform_real_distribution
<
float
>
ud
(
0.0
f
,
1.0
f
);
#ifdef TEST_COVERAGE_MODE
long
int
k
=
24288
*
v_cl
.
getProcessingUnits
();
#else
long
int
k
=
524288
*
v_cl
.
getProcessingUnits
();
#endif
long
int
big_step
=
k
/
4
;
big_step
=
(
big_step
==
0
)
?
1
:
big_step
;
...
...
@@ -974,7 +996,12 @@ void Test_interacting(Box<3,float> & box)
std
::
uniform_real_distribution
<
float
>
ud
(
-
0.5
f
,
0.5
f
);
size_t
nsz
[]
=
{
0
,
32
,
4
};
#ifdef TEST_COVERAGE_MODE
nsz
[
0
]
=
5536
*
v_cl
.
getProcessingUnits
();
#else
nsz
[
0
]
=
65536
*
v_cl
.
getProcessingUnits
();
#endif
print_test_v
(
"Testing 3D random walk interacting particles vector k="
,
nsz
[
0
]);
...
...
@@ -1106,7 +1133,11 @@ BOOST_AUTO_TEST_CASE( vector_dist_periodic_test_interacting_particles )
BOOST_AUTO_TEST_CASE
(
vector_dist_grid_iterator
)
{
#ifdef TEST_COVERAGE_MODE
long
int
k
=
32
*
32
*
32
*
create_vcluster
().
getProcessingUnits
();
#else
long
int
k
=
64
*
64
*
64
*
create_vcluster
().
getProcessingUnits
();
#endif
k
=
std
::
pow
(
k
,
1
/
3.
);
long
int
big_step
=
k
/
30
;
...
...
@@ -1171,7 +1202,11 @@ BOOST_AUTO_TEST_CASE( vector_dist_grid_iterator )
BOOST_AUTO_TEST_CASE
(
vector_dist_cell_verlet_test
)
{
#ifdef TEST_COVERAGE_MODE
long
int
k
=
16
*
16
*
16
*
create_vcluster
().
getProcessingUnits
();
#else
long
int
k
=
64
*
64
*
64
*
create_vcluster
().
getProcessingUnits
();
#endif
k
=
std
::
pow
(
k
,
1
/
3.
);
long
int
big_step
=
k
/
30
;
...
...
@@ -1303,7 +1338,11 @@ BOOST_AUTO_TEST_CASE( vector_dist_periodic_map_list )
std
::
default_random_engine
eg
;
std
::
uniform_real_distribution
<
float
>
ud
(
0.0
f
,
1.0
f
);
#ifdef TEST_COVERAGE_MODE
long
int
k
=
24288
*
v_cl
.
getProcessingUnits
();
#else
long
int
k
=
524288
*
v_cl
.
getProcessingUnits
();
#endif
long
int
big_step
=
k
/
4
;
big_step
=
(
big_step
==
0
)
?
1
:
big_step
;
...
...
@@ -1423,7 +1462,11 @@ BOOST_AUTO_TEST_CASE( vector_dist_ghost_with_ghost_buffering )
std
::
default_random_engine
eg
;
std
::
uniform_real_distribution
<
float
>
ud
(
0.0
f
,
1.0
f
);
#ifdef TEST_COVERAGE_MODE
long
int
k
=
24288
*
v_cl
.
getProcessingUnits
();
#else
long
int
k
=
524288
*
v_cl
.
getProcessingUnits
();
#endif
long
int
big_step
=
k
/
4
;
big_step
=
(
big_step
==
0
)
?
1
:
big_step
;
...
...
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