Commit 23c01609 authored by Jö Fahlke's avatar Jö Fahlke

[!15] Fix use of old instantiation point.

Merge branch 'fix-warnings' into 'master'

ref:extensions/dune-vectorclass Closes: [#11]

See merge request [!15]

  [#11]: gitlab.dune-project.org/NoneNone/issues/11
  [!15]: gitlab.dune-project.org/extensions/dune-vectorclass/merge_requests/15


Closes #11
parents 0706c634 41603db2
Pipeline #17800 passed with stage
in 6 minutes and 9 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