CoreNEURON
|
#include "coreneuron/utils/memory.h"
#include <boost/mpl/list.hpp>
#include <boost/test/included/unit_test.hpp>
#include <cstdint>
#include <cstring>
Go to the source code of this file.
Classes | |
struct | data< T, n > |
Macros | |
#define | BOOST_TEST_MODULE PaddingCheck |
Typedefs | |
typedef boost::mpl::list< data< double >, data< long long int > > | chunk_default_data_type |
typedef boost::mpl::list< data< double, 2 >, data< double, 4 >, data< double, 8 >, data< double, 16 >, data< double, 32 >, data< int, 2 >, data< int, 4 >, data< int, 8 >, data< int, 16 >, data< int, 32 > > | chunk_data_type |
Functions | |
BOOST_AUTO_TEST_CASE (padding_simd) | |
BOOST_AUTO_TEST_CASE_TEMPLATE (memory_alignment_simd_false, T, chunk_default_data_type) | |
Even number is randomly depends of the TYPE!!! and the number of elements. More... | |
BOOST_AUTO_TEST_CASE_TEMPLATE (memory_alignment_simd_true, T, chunk_data_type) | |
#define BOOST_TEST_MODULE PaddingCheck |
Definition at line 11 of file alignment.cpp.
typedef boost::mpl::list<data<double, 2>, data<double, 4>, data<double, 8>, data<double, 16>, data<double, 32>, data<int, 2>, data<int, 4>, data<int, 8>, data<int, 16>, data<int, 32> > chunk_data_type |
Definition at line 35 of file alignment.cpp.
typedef boost::mpl::list<data<double>, data<long long int> > chunk_default_data_type |
Definition at line 23 of file alignment.cpp.
BOOST_AUTO_TEST_CASE | ( | padding_simd | ) |
AOS test
SOA tests with 11
SOA tests with 32
SOA tests with 33
Definition at line 37 of file alignment.cpp.
BOOST_AUTO_TEST_CASE_TEMPLATE | ( | memory_alignment_simd_false | , |
T | , | ||
chunk_default_data_type | |||
) |
Even number is randomly depends of the TYPE!!! and the number of elements.
This test work for 64 bits type not for 32 bits.
Definition at line 102 of file alignment.cpp.
BOOST_AUTO_TEST_CASE_TEMPLATE | ( | memory_alignment_simd_true | , |
T | , | ||
chunk_data_type | |||
) |
Definition at line 123 of file alignment.cpp.