Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tnl-dev
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
TNL
tnl-dev
Commits
2bc54529
There was an error fetching the commit references. Please try again later.
Commit
2bc54529
authored
9 years ago
by
Jakub Klinkovský
Browse files
Options
Downloads
Patches
Plain Diff
Added missing guards against explicit templates instantiation
parent
eab48a79
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/functors/tnlTestFunction_impl.cpp
+4
-0
4 additions, 0 deletions
src/functors/tnlTestFunction_impl.cpp
src/functors/tnlTestFunction_impl.cu
+6
-2
6 additions, 2 deletions
src/functors/tnlTestFunction_impl.cu
src/functors/tnlTestFunction_impl.h
+10
-2
10 additions, 2 deletions
src/functors/tnlTestFunction_impl.h
with
20 additions
and
4 deletions
src/functors/tnlTestFunction_impl.cpp
+
4
−
0
View file @
2bc54529
...
@@ -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
This diff is collapsed.
Click to expand it.
src/functors/tnlTestFunction_impl.cu
+
6
−
2
View file @
2bc54529
...
@@ -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
This diff is collapsed.
Click to expand it.
src/functors/tnlTestFunction_impl.h
+
10
−
2
View file @
2bc54529
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment