diff --git a/Documentation/Tutorials/ForLoops/ParallelForExample-2D.cpp b/Documentation/Tutorials/ForLoops/ParallelForExample-2D.cpp index 642ff96928cf504c3bbfbcf08a8413a54a23b5f0..388c326ec2085d10ba50d265ee6bd8763310ae5a 100644 --- a/Documentation/Tutorials/ForLoops/ParallelForExample-2D.cpp +++ b/Documentation/Tutorials/ForLoops/ParallelForExample-2D.cpp @@ -5,7 +5,6 @@ using namespace TNL; using namespace TNL::Containers; -using namespace TNL::Algorithms; template< typename Device > void meshFunctionSum( const int xSize, @@ -29,7 +28,7 @@ void meshFunctionSum( const int xSize, const int idx = j * xSize + i; result_view[ idx ] = v1_view[ idx ] + v2_view[ idx ] + c; }; - ParallelFor2D< Device >::exec( 0, 0, xSize, ySize, sum, xSize, c ); + Algorithms::ParallelFor2D< Device >::exec( 0, 0, xSize, ySize, sum, xSize, c ); } int main( int argc, char* argv[] ) diff --git a/Documentation/Tutorials/ForLoops/ParallelForExample-3D.cpp b/Documentation/Tutorials/ForLoops/ParallelForExample-3D.cpp index 94479dd9b67117a51a7c94e35fc6c5b84a7e01ef..37e07c75ec1857d6792c43b11c1daf022dd1d2e9 100644 --- a/Documentation/Tutorials/ForLoops/ParallelForExample-3D.cpp +++ b/Documentation/Tutorials/ForLoops/ParallelForExample-3D.cpp @@ -5,7 +5,6 @@ using namespace TNL; using namespace TNL::Containers; -using namespace TNL::Algorithms; template< typename Device > void meshFunctionSum( const int xSize, @@ -30,7 +29,7 @@ void meshFunctionSum( const int xSize, const int idx = ( k * ySize + j ) * xSize + i; result_view[ idx ] = v1_view[ idx ] + v2_view[ idx ] + c; }; - ParallelFor3D< Device >::exec( 0, 0, 0, xSize, ySize,zSize, sum, xSize, ySize, c ); + Algorithms::ParallelFor3D< Device >::exec( 0, 0, 0, xSize, ySize,zSize, sum, xSize, ySize, c ); } int main( int argc, char* argv[] ) diff --git a/Documentation/Tutorials/ForLoops/ParallelForExample.cpp b/Documentation/Tutorials/ForLoops/ParallelForExample.cpp index 5714df7d3152a8b84f627cc377778793bccff5c4..8e5f4e8b24f6c4e4464d550dbf6df6f88ebe0706 100644 --- a/Documentation/Tutorials/ForLoops/ParallelForExample.cpp +++ b/Documentation/Tutorials/ForLoops/ParallelForExample.cpp @@ -5,7 +5,6 @@ using namespace TNL; using namespace TNL::Containers; -using namespace TNL::Algorithms; template< typename Device > void vectorSum( const Vector< double, Device >& v1, @@ -26,7 +25,7 @@ void vectorSum( const Vector< double, Device >& v1, auto sum = [=] __cuda_callable__ ( int i, const double c ) mutable { result_view[ i ] = v1_view[ i ] + v2_view[ i ] + c; }; - ParallelFor< Device >::exec( 0, v1.getSize(), sum, c ); + Algorithms::ParallelFor< Device >::exec( 0, v1.getSize(), sum, c ); } int main( int argc, char* argv[] )