Skip to content
Snippets Groups Projects
Commit c1072c2b authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Renaming CSRKernelHybrid to CSRHybridKernel.

parent 4496b4cb
No related branches found
No related tags found
1 merge request!89To/matrices adaptive csr
...@@ -150,7 +150,7 @@ using CSRVector = CSR< Device, Index, CSRVectorKernel< Index, Device >, IndexAll ...@@ -150,7 +150,7 @@ using CSRVector = CSR< Device, Index, CSRVectorKernel< Index, Device >, IndexAll
template< typename Device, template< typename Device,
typename Index, typename Index,
typename IndexAllocator = typename Allocators::Default< Device >::template Allocator< Index > > typename IndexAllocator = typename Allocators::Default< Device >::template Allocator< Index > >
using CSRHybrid = CSR< Device, Index, CSRKernelHybrid< Index, Device >, IndexAllocator >; using CSRHybrid = CSR< Device, Index, CSRHybridKernel< Index, Device >, IndexAllocator >;
template< typename Device, template< typename Device,
typename Index, typename Index,
......
/*************************************************************************** /***************************************************************************
CSRKernelHybrid.h - description CSRHybridKernel.h - description
------------------- -------------------
begin : Jan 23, 2021 -> Joe Biden inauguration begin : Jan 23, 2021 -> Joe Biden inauguration
copyright : (C) 2021 by Tomas Oberhuber copyright : (C) 2021 by Tomas Oberhuber
...@@ -22,12 +22,12 @@ namespace TNL { ...@@ -22,12 +22,12 @@ namespace TNL {
template< typename Index, template< typename Index,
typename Device > typename Device >
struct CSRKernelHybrid struct CSRHybridKernel
{ {
using IndexType = Index; using IndexType = Index;
using DeviceType = Device; using DeviceType = Device;
using ViewType = CSRKernelHybrid< Index, Device >; using ViewType = CSRHybridKernel< Index, Device >;
using ConstViewType = CSRKernelHybrid< Index, Device >; using ConstViewType = CSRHybridKernel< Index, Device >;
template< typename Offsets > template< typename Offsets >
void init( const Offsets& offsets ); void init( const Offsets& offsets );
...@@ -63,4 +63,4 @@ struct CSRKernelHybrid ...@@ -63,4 +63,4 @@ struct CSRKernelHybrid
} // namespace Algorithms } // namespace Algorithms
} // namespace TNL } // namespace TNL
#include <TNL/Algorithms/Segments/CSRKernelHybrid.hpp> #include <TNL/Algorithms/Segments/CSRHybridKernel.hpp>
/*************************************************************************** /***************************************************************************
CSRKernelHybrid.hpp - description CSRHybridKernel.hpp - description
------------------- -------------------
begin : Jan 23, 2021 -> Joe Biden inauguration begin : Jan 23, 2021 -> Joe Biden inauguration
copyright : (C) 2021 by Tomas Oberhuber copyright : (C) 2021 by Tomas Oberhuber
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
#include <TNL/Containers/VectorView.h> #include <TNL/Containers/VectorView.h>
#include <TNL/Algorithms/ParallelFor.h> #include <TNL/Algorithms/ParallelFor.h>
#include <TNL/Algorithms/Segments/details/LambdaAdapter.h> #include <TNL/Algorithms/Segments/details/LambdaAdapter.h>
#include <TNL/Algorithms/Segments/CSRKernelHybrid.h> #include <TNL/Algorithms/Segments/CSRHybridKernel.h>
namespace TNL { namespace TNL {
namespace Algorithms { namespace Algorithms {
...@@ -86,7 +86,7 @@ template< typename Index, ...@@ -86,7 +86,7 @@ template< typename Index,
typename Device > typename Device >
template< typename Offsets > template< typename Offsets >
void void
CSRKernelHybrid< Index, Device >:: CSRHybridKernel< Index, Device >::
init( const Offsets& offsets ) init( const Offsets& offsets )
{ {
const Index segmentsCount = offsets.getSize() - 1; const Index segmentsCount = offsets.getSize() - 1;
...@@ -99,7 +99,7 @@ init( const Offsets& offsets ) ...@@ -99,7 +99,7 @@ init( const Offsets& offsets )
template< typename Index, template< typename Index,
typename Device > typename Device >
void void
CSRKernelHybrid< Index, Device >:: CSRHybridKernel< Index, Device >::
reset() reset()
{ {
this->threadsPerSegment = 0; this->threadsPerSegment = 0;
...@@ -108,7 +108,7 @@ reset() ...@@ -108,7 +108,7 @@ reset()
template< typename Index, template< typename Index,
typename Device > typename Device >
auto auto
CSRKernelHybrid< Index, Device >:: CSRHybridKernel< Index, Device >::
getView() -> ViewType getView() -> ViewType
{ {
return *this; return *this;
...@@ -117,7 +117,7 @@ getView() -> ViewType ...@@ -117,7 +117,7 @@ getView() -> ViewType
template< typename Index, template< typename Index,
typename Device > typename Device >
TNL::String TNL::String
CSRKernelHybrid< Index, Device >:: CSRHybridKernel< Index, Device >::
getKernelType() getKernelType()
{ {
return "Hybrid"; return "Hybrid";
...@@ -126,7 +126,7 @@ getKernelType() ...@@ -126,7 +126,7 @@ getKernelType()
template< typename Index, template< typename Index,
typename Device > typename Device >
auto auto
CSRKernelHybrid< Index, Device >:: CSRHybridKernel< Index, Device >::
getConstView() const -> ConstViewType getConstView() const -> ConstViewType
{ {
return *this; return *this;
...@@ -142,7 +142,7 @@ template< typename Index, ...@@ -142,7 +142,7 @@ template< typename Index,
typename Real, typename Real,
typename... Args > typename... Args >
void void
CSRKernelHybrid< Index, Device >:: CSRHybridKernel< Index, Device >::
segmentsReduction( const OffsetsView& offsets, segmentsReduction( const OffsetsView& offsets,
Index first, Index first,
Index last, Index last,
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
#include <TNL/Algorithms/Segments/SegmentView.h> #include <TNL/Algorithms/Segments/SegmentView.h>
#include <TNL/Algorithms/Segments/CSRScalarKernel.h> #include <TNL/Algorithms/Segments/CSRScalarKernel.h>
#include <TNL/Algorithms/Segments/CSRVectorKernel.h> #include <TNL/Algorithms/Segments/CSRVectorKernel.h>
#include <TNL/Algorithms/Segments/CSRKernelHybrid.h> #include <TNL/Algorithms/Segments/CSRHybridKernel.h>
#include <TNL/Algorithms/Segments/CSRKernelAdaptive.h> #include <TNL/Algorithms/Segments/CSRKernelAdaptive.h>
namespace TNL { namespace TNL {
...@@ -142,7 +142,7 @@ using CSRViewVector = CSRView< Device, Index, CSRVectorKernel< Index, Device > > ...@@ -142,7 +142,7 @@ using CSRViewVector = CSRView< Device, Index, CSRVectorKernel< Index, Device > >
template< typename Device, template< typename Device,
typename Index > typename Index >
using CSRViewHybrid = CSRView< Device, Index, CSRKernelHybrid< Index, Device > >; using CSRViewHybrid = CSRView< Device, Index, CSRHybridKernel< Index, Device > >;
template< typename Device, template< typename Device,
typename Index > typename Index >
......
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