Loading src/TNL/Containers/Algorithms/CMakeLists.txt +2 −2 Original line number Diff line number Diff line Loading @@ -2,8 +2,6 @@ ADD_SUBDIRECTORY( TemplateExplicitInstantiation ) set( headers cuda-prefix-sum.h cuda-prefix-sum_impl.h cuda-reduction.h cuda-reduction_impl.h reduction-operations.h CublasWrapper.h CudaMultireductionKernel.h Loading @@ -11,6 +9,8 @@ set( headers cuda-prefix-sum.h CudaReductionKernel.h Multireduction.h Multireduction_impl.h Reduction.h Reduction_impl.h ) INSTALL( FILES ${headers} DESTINATION include/tnl-${tnlVersion}/TNL/Containers/Algorithms ) src/TNL/Containers/Algorithms/cuda-reduction.h→src/TNL/Containers/Algorithms/Reduction.h +11 −4 Original line number Diff line number Diff line /*************************************************************************** cuda-reduction.h - description Reduction.h - description ------------------- begin : Oct 28, 2010 copyright : (C) 2010 by Tomas Oberhuber copyright : (C) 2010 by Tomas Oberhuber et al. email : tomas.oberhuber@fjfi.cvut.cz ***************************************************************************/ Loading @@ -14,6 +14,14 @@ namespace TNL { namespace Containers { namespace Algorithms { // TODO: rename to // template< typename Device > // class Reduction // {}; // // and make a specialization for Devices::Host (as it is done in Multireduction.h) // It should be as fast as all the manual implementations in VectorOperations. template< typename Operation > bool reductionOnCudaDevice( const Operation& operation, const typename Operation :: IndexType size, Loading @@ -25,5 +33,4 @@ bool reductionOnCudaDevice( const Operation& operation, } // namespace Containers } // namespace TNL #include <TNL/Containers/Algorithms/cuda-reduction_impl.h> #include <TNL/Containers/Algorithms/Reduction_impl.h> src/TNL/Containers/Algorithms/cuda-reduction_impl.h→src/TNL/Containers/Algorithms/Reduction_impl.h +2 −2 Original line number Diff line number Diff line /*************************************************************************** cuda-reduction_impl.h - description Reduction_impl.h - description ------------------- begin : Mar 24, 2013 copyright : (C) 2013 by Tomas Oberhuber copyright : (C) 2013 by Tomas Oberhuber et al. email : tomas.oberhuber@fjfi.cvut.cz ***************************************************************************/ Loading src/TNL/Containers/Algorithms/TemplateExplicitInstantiation/cuda-reduction-abs-max_impl.cu +1 −1 Original line number Diff line number Diff line Loading @@ -9,7 +9,7 @@ /* See Copyright Notice in tnl/Copyright */ #include <TNL/Containers/Algorithms/reduction-operations.h> #include <TNL/Containers/Algorithms/cuda-reduction.h> #include <TNL/Containers/Algorithms/Reduction.h> namespace TNL { namespace Containers { Loading src/TNL/Containers/Algorithms/TemplateExplicitInstantiation/cuda-reduction-abs-min_impl.cu +1 −1 Original line number Diff line number Diff line Loading @@ -9,7 +9,7 @@ /* See Copyright Notice in tnl/Copyright */ #include <TNL/Containers/Algorithms/reduction-operations.h> #include <TNL/Containers/Algorithms/cuda-reduction.h> #include <TNL/Containers/Algorithms/Reduction.h> namespace TNL { namespace Containers { Loading Loading
src/TNL/Containers/Algorithms/CMakeLists.txt +2 −2 Original line number Diff line number Diff line Loading @@ -2,8 +2,6 @@ ADD_SUBDIRECTORY( TemplateExplicitInstantiation ) set( headers cuda-prefix-sum.h cuda-prefix-sum_impl.h cuda-reduction.h cuda-reduction_impl.h reduction-operations.h CublasWrapper.h CudaMultireductionKernel.h Loading @@ -11,6 +9,8 @@ set( headers cuda-prefix-sum.h CudaReductionKernel.h Multireduction.h Multireduction_impl.h Reduction.h Reduction_impl.h ) INSTALL( FILES ${headers} DESTINATION include/tnl-${tnlVersion}/TNL/Containers/Algorithms )
src/TNL/Containers/Algorithms/cuda-reduction.h→src/TNL/Containers/Algorithms/Reduction.h +11 −4 Original line number Diff line number Diff line /*************************************************************************** cuda-reduction.h - description Reduction.h - description ------------------- begin : Oct 28, 2010 copyright : (C) 2010 by Tomas Oberhuber copyright : (C) 2010 by Tomas Oberhuber et al. email : tomas.oberhuber@fjfi.cvut.cz ***************************************************************************/ Loading @@ -14,6 +14,14 @@ namespace TNL { namespace Containers { namespace Algorithms { // TODO: rename to // template< typename Device > // class Reduction // {}; // // and make a specialization for Devices::Host (as it is done in Multireduction.h) // It should be as fast as all the manual implementations in VectorOperations. template< typename Operation > bool reductionOnCudaDevice( const Operation& operation, const typename Operation :: IndexType size, Loading @@ -25,5 +33,4 @@ bool reductionOnCudaDevice( const Operation& operation, } // namespace Containers } // namespace TNL #include <TNL/Containers/Algorithms/cuda-reduction_impl.h> #include <TNL/Containers/Algorithms/Reduction_impl.h>
src/TNL/Containers/Algorithms/cuda-reduction_impl.h→src/TNL/Containers/Algorithms/Reduction_impl.h +2 −2 Original line number Diff line number Diff line /*************************************************************************** cuda-reduction_impl.h - description Reduction_impl.h - description ------------------- begin : Mar 24, 2013 copyright : (C) 2013 by Tomas Oberhuber copyright : (C) 2013 by Tomas Oberhuber et al. email : tomas.oberhuber@fjfi.cvut.cz ***************************************************************************/ Loading
src/TNL/Containers/Algorithms/TemplateExplicitInstantiation/cuda-reduction-abs-max_impl.cu +1 −1 Original line number Diff line number Diff line Loading @@ -9,7 +9,7 @@ /* See Copyright Notice in tnl/Copyright */ #include <TNL/Containers/Algorithms/reduction-operations.h> #include <TNL/Containers/Algorithms/cuda-reduction.h> #include <TNL/Containers/Algorithms/Reduction.h> namespace TNL { namespace Containers { Loading
src/TNL/Containers/Algorithms/TemplateExplicitInstantiation/cuda-reduction-abs-min_impl.cu +1 −1 Original line number Diff line number Diff line Loading @@ -9,7 +9,7 @@ /* See Copyright Notice in tnl/Copyright */ #include <TNL/Containers/Algorithms/reduction-operations.h> #include <TNL/Containers/Algorithms/cuda-reduction.h> #include <TNL/Containers/Algorithms/Reduction.h> namespace TNL { namespace Containers { Loading