Skip to content
Snippets Groups Projects
Commit 3301b95a authored by Jö Fahlke's avatar Jö Fahlke
Browse files

Merge branch 'aligned-number-simd-test' into 'master'

[AlignedNumber] Run the SIMD testsuite.

Closes #123

See merge request !511
parents 134ca303 7662149d
Branches
Tags
1 merge request!511[AlignedNumber] Run the SIMD testsuite.
Pipeline #
......@@ -460,7 +460,7 @@ namespace Dune {
}
template<class T, std::size_t align>
const T& lane(ADLTag<5>, std::size_t l, const AlignedNumber<T, align> &v)
T lane(ADLTag<5>, std::size_t l, const AlignedNumber<T, align> &v)
{
assert(l == 0);
return v.value();
......
......@@ -77,6 +77,10 @@ dune_add_test(SOURCES debugaligntest.cc
LINK_LIBRARIES dunecommon
LABELS quick)
dune_add_test(SOURCES debugalignsimdtest.cc
LINK_LIBRARIES dunecommon
LABELS quick)
dune_add_test(SOURCES densematrixassignmenttest.cc
LINK_LIBRARIES dunecommon
LABELS quick)
......
#include <config.h>
#include <cstdlib>
#include <dune/common/debugalign.hh>
#include <dune/common/parallel/mpihelper.hh>
#include <dune/common/simd/test.hh>
int main(int argc, char **argv)
{
Dune::MPIHelper::instance(argc, argv);
Dune::Simd::UnitTest test;
test.checkVector<Dune::AlignedNumber<double> >();
return test.good() ? EXIT_SUCCESS : EXIT_FAILURE;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment