Skip to content
Snippets Groups Projects
Commit 2bc54529 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Added missing guards against explicit templates instantiation

parent eab48a79
No related branches found
No related tags found
No related merge requests found
...@@ -20,17 +20,21 @@ ...@@ -20,17 +20,21 @@
#include <functors/tnlTestFunction.h> #include <functors/tnlTestFunction.h>
#ifdef INSTANTIATE_FLOAT
template class tnlTestFunction< 1, float, tnlHost >; template class tnlTestFunction< 1, float, tnlHost >;
template class tnlTestFunction< 2, float, tnlHost >; template class tnlTestFunction< 2, float, tnlHost >;
template class tnlTestFunction< 3, float, tnlHost >; template class tnlTestFunction< 3, float, tnlHost >;
#endif
template class tnlTestFunction< 1, double, tnlHost >; template class tnlTestFunction< 1, double, tnlHost >;
template class tnlTestFunction< 2, double, tnlHost >; template class tnlTestFunction< 2, double, tnlHost >;
template class tnlTestFunction< 3, double, tnlHost >; template class tnlTestFunction< 3, double, tnlHost >;
#ifdef INSTANTIATE_LONG_DOUBLE
template class tnlTestFunction< 1, long double, tnlHost >; template class tnlTestFunction< 1, long double, tnlHost >;
template class tnlTestFunction< 2, long double, tnlHost >; template class tnlTestFunction< 2, long double, tnlHost >;
template class tnlTestFunction< 3, long double, tnlHost >; template class tnlTestFunction< 3, long double, tnlHost >;
#endif
#endif #endif
...@@ -20,17 +20,21 @@ ...@@ -20,17 +20,21 @@
#include <functors/tnlTestFunction.h> #include <functors/tnlTestFunction.h>
#ifdef INSTANTIATE_FLOAT
template class tnlTestFunction< 1, float, tnlCuda >; template class tnlTestFunction< 1, float, tnlCuda >;
template class tnlTestFunction< 2, float, tnlCuda >; template class tnlTestFunction< 2, float, tnlCuda >;
template class tnlTestFunction< 3, float, tnlCuda >; template class tnlTestFunction< 3, float, tnlCuda >;
#endif
template class tnlTestFunction< 1, double, tnlCuda >; template class tnlTestFunction< 1, double, tnlCuda >;
template class tnlTestFunction< 2, double, tnlCuda >; template class tnlTestFunction< 2, double, tnlCuda >;
template class tnlTestFunction< 3, double, tnlCuda >; template class tnlTestFunction< 3, double, tnlCuda >;
/*template class tnlTestFunction< 1, long double, tnlCuda >; #ifdef INSTANTIATE_LONG_DOUBLE
template class tnlTestFunction< 1, long double, tnlCuda >;
template class tnlTestFunction< 2, long double, tnlCuda >; template class tnlTestFunction< 2, long double, tnlCuda >;
template class tnlTestFunction< 3, long double, tnlCuda >;*/ template class tnlTestFunction< 3, long double, tnlCuda >;
#endif
#endif #endif
#endif #endif
...@@ -413,30 +413,38 @@ tnlTestFunction< FunctionDimensions, Real, Device >:: ...@@ -413,30 +413,38 @@ tnlTestFunction< FunctionDimensions, Real, Device >::
#ifdef TEMPLATE_EXPLICIT_INSTANTIATION #ifdef TEMPLATE_EXPLICIT_INSTANTIATION
#ifdef INSTANTIATE_FLOAT
extern template class tnlTestFunction< 1, float, tnlHost >; extern template class tnlTestFunction< 1, float, tnlHost >;
extern template class tnlTestFunction< 2, float, tnlHost >; extern template class tnlTestFunction< 2, float, tnlHost >;
extern template class tnlTestFunction< 3, float, tnlHost >; extern template class tnlTestFunction< 3, float, tnlHost >;
#endif
extern template class tnlTestFunction< 1, double, tnlHost >; extern template class tnlTestFunction< 1, double, tnlHost >;
extern template class tnlTestFunction< 2, double, tnlHost >; extern template class tnlTestFunction< 2, double, tnlHost >;
extern template class tnlTestFunction< 3, double, tnlHost >; extern template class tnlTestFunction< 3, double, tnlHost >;
#ifdef INSTANTIATE_LONG_DOUBLE
extern template class tnlTestFunction< 1, long double, tnlHost >; extern template class tnlTestFunction< 1, long double, tnlHost >;
extern template class tnlTestFunction< 2, long double, tnlHost >; extern template class tnlTestFunction< 2, long double, tnlHost >;
extern template class tnlTestFunction< 3, long double, tnlHost >; extern template class tnlTestFunction< 3, long double, tnlHost >;
#endif
#ifdef HAVE_CUDA #ifdef HAVE_CUDA
#ifdef INSTANTIATE_FLOAT
extern template class tnlTestFunction< 1, float, tnlCuda>; extern template class tnlTestFunction< 1, float, tnlCuda>;
extern template class tnlTestFunction< 2, float, tnlCuda >; extern template class tnlTestFunction< 2, float, tnlCuda >;
extern template class tnlTestFunction< 3, float, tnlCuda >; extern template class tnlTestFunction< 3, float, tnlCuda >;
#endif
extern template class tnlTestFunction< 1, double, tnlCuda >; extern template class tnlTestFunction< 1, double, tnlCuda >;
extern template class tnlTestFunction< 2, double, tnlCuda >; extern template class tnlTestFunction< 2, double, tnlCuda >;
extern template class tnlTestFunction< 3, double, tnlCuda >; extern template class tnlTestFunction< 3, double, tnlCuda >;
/*extern template class tnlTestFunction< 1, long double, tnlCuda >; #ifdef INSTANTIATE_LONG_DOUBLE
extern template class tnlTestFunction< 1, long double, tnlCuda >;
extern template class tnlTestFunction< 2, long double, tnlCuda >; extern template class tnlTestFunction< 2, long double, tnlCuda >;
extern template class tnlTestFunction< 3, long double, tnlCuda >;*/ extern template class tnlTestFunction< 3, long double, tnlCuda >;
#endif
#endif #endif
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment