OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
isolation.cu
1#define BOOST_DISABLE_ASSERTS
2#define FUSION_MAX_VECTOR_SIZE 20
3
4#include "config.h"
5#define BOOST_TEST_DYN_LINK
6#include <boost/test/unit_test.hpp>
7#include "util/math_util_complex.hpp"
8#include "Vector/map_vector.hpp"
9
10#define DISABLE_MPI_WRITTERS
11
12// initialization function:
13bool init_unit_test()
14{
15 return true;
16}
17
18std::vector<int> sieve_spf;
19
20// entry point:
21int main(int argc, char* argv[])
22{
23 openfpm::math::init_getFactorization();
24 return boost::unit_test::unit_test_main( &init_unit_test, argc, argv );
25}
26
27BOOST_AUTO_TEST_SUITE( util_test )
28
29template<typename vtype>
30__global__ void test(vtype v)
31{
32 v.template get<1>(100);
33}
34
35BOOST_AUTO_TEST_CASE( map_vector_std_util )
36{
38
39 v.resize(1000);
40
41 CUDA_LAUNCH_DIM3(test,1,1,v.toKernel());
42
43
44 typedef boost::fusion::vector<int,int,int> bfv;
45}
46
47BOOST_AUTO_TEST_SUITE_END()
48
49#include <boost/fusion/include/mpl.hpp>
50
51#include <iostream>
52#include <typeinfo>
53
54// Include tests
55
56
Implementation of 1-D std::vector like structure.