1 #define BOOST_DISABLE_ASSERTS 2 #define FUSION_MAX_VECTOR_SIZE 20 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" 10 #define DISABLE_MPI_WRITTERS 18 std::vector<int> sieve_spf;
21 int main(
int argc,
char* argv[])
23 openfpm::math::init_getFactorization();
24 return boost::unit_test::unit_test_main( &init_unit_test, argc, argv );
27 BOOST_AUTO_TEST_SUITE( util_test )
29 template<
typename vtype>
30 __global__
void test(vtype v)
32 v.template get<1>(100);
35 BOOST_AUTO_TEST_CASE( map_vector_std_util )
41 CUDA_LAUNCH_DIM3(test,1,1,v.toKernel());
44 typedef boost::fusion::vector<int,int,int> bfv;
47 BOOST_AUTO_TEST_SUITE_END()
49 #include <boost/fusion/include/mpl.hpp> Implementation of 1-D std::vector like structure.