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

Enabled meshes on CUDA in BuildConfigTags

parent 644b6fc6
No related branches found
No related tags found
No related merge requests found
......@@ -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 }; };
......
......@@ -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 >;
......
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