Commit e251a3bf authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Renamed cuda-reduction.h to Reduction.h

parent e28f675f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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
@@ -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 )
+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
 ***************************************************************************/

@@ -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,
@@ -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>
+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
 ***************************************************************************/

+1 −1
Original line number Diff line number Diff line
@@ -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 {
+1 −1
Original line number Diff line number Diff line
@@ -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