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
0b0c8f3e
There was an error fetching the commit references. Please try again later.
Commit
0b0c8f3e
authored
8 years ago
by
Jakub Klinkovský
Browse files
Options
Downloads
Patches
Plain Diff
Enabled meshes on CUDA in BuildConfigTags
parent
644b6fc6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/TNL/Meshes/BuildConfigTags.h
+4
-2
4 additions, 2 deletions
src/TNL/Meshes/BuildConfigTags.h
src/TNL/Solvers/PDE/MeshDependentTimeSteps.h
+2
-1
2 additions, 1 deletion
src/TNL/Solvers/PDE/MeshDependentTimeSteps.h
with
6 additions
and
3 deletions
src/TNL/Meshes/BuildConfigTags.h
+
4
−
2
View file @
0b0c8f3e
...
...
@@ -65,10 +65,12 @@ struct GridTag< ConfigTag, Grid< Dimension, Real, Device, Index > >
* Configuration for unstructured meshes
*/
// Meshes are enabled only on host.
// TODO: enable Devices::Cuda by default when implemented
// Meshes are enabled on all available devices by default.
template
<
typename
ConfigTag
,
typename
Device
>
struct
MeshDeviceTag
{
enum
{
enabled
=
false
};
};
template
<
typename
ConfigTag
>
struct
MeshDeviceTag
<
ConfigTag
,
Devices
::
Host
>
{
enum
{
enabled
=
true
};
};
#ifdef HAVE_CUDA
template
<
typename
ConfigTag
>
struct
MeshDeviceTag
<
ConfigTag
,
Devices
::
Cuda
>
{
enum
{
enabled
=
true
};
};
#endif
// All available cell topologies are disabled by default.
template
<
typename
ConfigTag
,
typename
CellTopology
>
struct
MeshCellTopologyTag
{
enum
{
enabled
=
false
};
};
...
...
This diff is collapsed.
Click to expand it.
src/TNL/Solvers/PDE/MeshDependentTimeSteps.h
+
2
−
1
View file @
0b0c8f3e
...
...
@@ -57,8 +57,9 @@ protected:
};
template
<
typename
MeshConfig
,
typename
Device
,
typename
Real
>
class
MeshDependentTimeSteps
<
TNL
::
Meshes
::
Mesh
<
MeshConfig
>
,
Real
>
class
MeshDependentTimeSteps
<
TNL
::
Meshes
::
Mesh
<
MeshConfig
,
Device
>
,
Real
>
{
public:
using
MeshType
=
TNL
::
Meshes
::
Mesh
<
MeshConfig
>
;
...
...
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