Commit 41603db2 authored by Jö Fahlke's avatar Jö Fahlke

Fix use of old instantiation point.

Closes: #11
parent 67dcd64b
Pipeline #17799 passed with stage
in 6 minutes and 8 seconds
......@@ -8,16 +8,20 @@
#include <cstdlib>
#include <dune/common/simd/test.hh>
#include <dune/common/typelist.hh>
#include <dune/vectorclass/test/vectorclasstest.hh>
#include <dune/vectorclass/vectorclass.hh>
using Rebinds = Dune::TypeList<bool, int, long, float, double>;
int main() {
Dune::Simd::UnitTest test;
#cmake @template@
#if MAX_VECTOR_SIZE >= @VECTOR_SIZE@
test.checkVector<Vec@LANES@@TYPE@, Rebinds>();
test.checkVector<Vec@LANES@@TYPE@b, Rebinds>();
test.check<Vec@LANES@@TYPE@, Rebinds>();
test.check<Vec@LANES@@TYPE@b, Rebinds>();
#endif // MAX_VECTOR_SIZE >= @VECTOR_SIZE@
#cmake @endtemplate@
......
......@@ -3,22 +3,17 @@
#ifndef DUNE_VECTORCLASS_TEST_VECTORCLASSTEST_HH
#define DUNE_VECTORCLASS_TEST_VECTORCLASSTEST_HH
#include <cstddef>
#include <dune/common/simd/test.hh>
#include <dune/common/typelist.hh>
#include <dune/vectorclass/vectorclass.hh>
using Rebinds = Dune::TypeList<bool, int, long, float, double>;
namespace Dune {
namespace Simd {
#cmake @template@
#if MAX_VECTOR_SIZE >= @VECTOR_SIZE@
extern template void UnitTest::checkVector<Vec@LANES@@TYPE@, Rebinds>();
extern template void UnitTest::checkVector<Vec@LANES@@TYPE@b, Rebinds>();
extern template void UnitTest::checkType<Vec@LANES@@TYPE@>();
extern template void UnitTest::checkType<Vec@LANES@@TYPE@b>();
#endif // MAX_VECTOR_SIZE >= @VECTOR_SIZE@
#cmake @endtemplate@
......
......@@ -8,7 +8,7 @@ namespace Dune {
namespace Simd {
#if MAX_VECTOR_SIZE >= @VECTOR_SIZE@
template void UnitTest::checkVector<Vec@LANES@@TYPE@b, Rebinds>();
template void UnitTest::checkType<Vec@LANES@@TYPE@b>();
#endif // MAX_VECTOR_SIZE >= @VECTOR_SIZE@
}
......
......@@ -8,7 +8,7 @@ namespace Dune {
namespace Simd {
#if MAX_VECTOR_SIZE >= @VECTOR_SIZE@
template void UnitTest::checkVector<Vec@LANES@@TYPE@, Rebinds>();
template void UnitTest::checkType<Vec@LANES@@TYPE@>();
#endif // MAX_VECTOR_SIZE >= @VECTOR_SIZE@
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment