OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
vector_dist_operators_apply_kernel_unit_tests.cu
1/*
2 * vector_dist_operators_apply_kernel_unit_tests.hpp
3 *
4 * Created on: Jun 19, 2016
5 * Author: i-bird
6 */
7
8#include "config.h"
9#define BOOST_TEST_DYN_LINK
10#include <boost/test/unit_test.hpp>
11
12#include "Vector/vector_dist.hpp"
13#include "Operators/Vector/vector_dist_operators.hpp"
14#include "Operators/Vector/tests/vector_dist_operators_tests_util.hpp"
15
16BOOST_AUTO_TEST_SUITE( vector_dist_operators_apply_kernel_test_gpu )
17
18BOOST_AUTO_TEST_CASE( vector_dist_operators_apply_host_gpu_test )
19{
20 if (create_vcluster().getProcessingUnits() > 3)
21 return;
22
23 Box<3,float> box({0.0,0.0,0.0},{1.0,1.0,1.0});
24
25 // Boundary conditions
26 size_t bc[3]={PERIODIC,PERIODIC,PERIODIC};
27
28 // ghost
29 Ghost<3,float> ghost(0.05);
30
32
34}
35
36
37BOOST_AUTO_TEST_CASE( vector_dist_operators_apply_kernel_gpu_test )
38{
39 if (create_vcluster().getProcessingUnits() > 3)
40 return;
41
42 Box<3,float> box({0.0,0.0,0.0},{1.0,1.0,1.0});
43
44 // Boundary conditions
45 size_t bc[3]={PERIODIC,PERIODIC,PERIODIC};
46
47 // ghost
48 Ghost<3,float> ghost(0.05);
49
51
53}
54
55BOOST_AUTO_TEST_CASE( vector_dist_operators_apply_kernel_gpu_sort_test )
56{
57 if (create_vcluster().getProcessingUnits() > 3)
58 return;
59
60 Box<3,float> box({0.0,0.0,0.0},{1.0,1.0,1.0});
61
62 // Boundary conditions
63 size_t bc[3]={PERIODIC,PERIODIC,PERIODIC};
64
65 // ghost
66 Ghost<3,float> ghost(0.05);
67
69
70 check_all_apply_ker_sort::check(vd);
71}
72
73BOOST_AUTO_TEST_SUITE_END()
74
This class represent an N-dimensional box.
Definition Box.hpp:61
This class implement the point shape in an N-dimensional space.
Definition Point.hpp:28
Distributed vector.