Skip to content
Snippets Groups Projects
Commit 317b5bfd authored by Tomáš Oberhuber's avatar Tomáš Oberhuber Committed by Jakub Klinkovský
Browse files

GridTraverser_impl.h splitted into GridTraverser_1D.hpp, GridTraverser_2D.hpp...

GridTraverser_impl.h splitted into GridTraverser_1D.hpp, GridTraverser_2D.hpp and GridTraverser_3D.hpp.
parent be8f2ac4
No related branches found
No related tags found
1 merge request!20Traversers optimizations
......@@ -57,13 +57,14 @@ class FunctionTimer
// the monitor, the timer is not interrupted after each loop.
if( ! performReset && verbose < 2 )
{
if( timing )
timer.start();
// Explicit synchronization of the CUDA device
#ifdef HAVE_CUDA
#ifdef HAVE_CUDA
if( std::is_same< Device, Devices::Cuda >::value )
cudaDeviceSynchronize();
#endif
#endif
if( timing )
timer.start();
for( loops = 0;
loops < maxLoops || ( timing && timer.getRealTime() < minTime );
++loops)
......
......@@ -14,7 +14,9 @@ SET( headers BoundaryGridEntityChecker.h
GridEntityMeasureGetter.h
GridEntityTopology.h
GridTraverser.h
GridTraverser_impl.h
GridTraverser_1D.hpp
GridTraverser_2D.hpp
GridTraverser_3D.hpp
NeighborGridEntitiesStorage.h
NeighborGridEntityGetter1D_impl.h
NeighborGridEntityGetter2D_impl.h
......
......@@ -351,5 +351,7 @@ class GridTraverser< Meshes::Grid< 3, Real, Devices::MIC, Index > >
} // namespace Meshes
} // namespace TNL
#include <TNL/Meshes/GridDetails/GridTraverser_impl.h>
#include <TNL/Meshes/GridDetails/GridTraverser_1D.hpp>
#include <TNL/Meshes/GridDetails/GridTraverser_2D.hpp>
#include <TNL/Meshes/GridDetails/GridTraverser_3D.hpp>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment