Loading src/TNL/Matrices/Legacy/CSR.h +8 −6 Original line number Diff line number Diff line Loading @@ -31,7 +31,9 @@ class CusparseCSR; template< typename Device > class CSRDeviceDependentCode; template< typename Real, typename Device = Devices::Host, typename Index = int > enum CSRKernel { CSRScalar, CVSVector, CSRAdaptive, CSRStream }; template< typename Real, typename Device = Devices::Host, typename Index = int >//, CSRKernel KernelType = CSRAdaptive > class CSR : public Sparse< Real, Device, Index > { private: Loading Loading @@ -60,7 +62,7 @@ public: typename _Index = Index > using Self = CSR< _Real, _Device, _Index >; enum SPMVCudaKernel { scalar, vector, hybrid }; //enum SPMVCudaKernel { scalar, vector, hybrid }; CSR(); Loading Loading @@ -198,10 +200,10 @@ public: void print( std::ostream& str ) const; void setCudaKernelType( const SPMVCudaKernel kernel ); //void setCudaKernelType( const SPMVCudaKernel kernel ); __cuda_callable__ SPMVCudaKernel getCudaKernelType() const; //__cuda_callable__ //SPMVCudaKernel getCudaKernelType() const; void setCudaWarpSize( const int warpSize ); Loading Loading @@ -281,7 +283,7 @@ protected: Containers::Vector< Index, Device, Index > rowPointers; SPMVCudaKernel spmvCudaKernel; //SPMVCudaKernel spmvCudaKernel; int cudaWarpSize, hybridModeSplit; Loading src/TNL/Matrices/Legacy/CSR_impl.h +3 −3 Original line number Diff line number Diff line Loading @@ -34,7 +34,7 @@ template< typename Real, typename Device, typename Index > CSR< Real, Device, Index >::CSR() : spmvCudaKernel( hybrid ), : //spmvCudaKernel( hybrid ), cudaWarpSize( 32 ), //Cuda::getWarpSize() ) hybridModeSplit( 4 ) { Loading Loading @@ -621,7 +621,7 @@ void CSR< Real, Device, Index >::print( std::ostream& str ) const } } template< typename Real, /*template< typename Real, typename Device, typename Index > void CSR< Real, Device, Index >::setCudaKernelType( const SPMVCudaKernel kernel ) Loading @@ -636,7 +636,7 @@ __cuda_callable__ typename CSR< Real, Device, Index >::SPMVCudaKernel CSR< Real, Device, Index >::getCudaKernelType() const { return this->spmvCudaKernel; } }*/ template< typename Real, typename Device, Loading Loading
src/TNL/Matrices/Legacy/CSR.h +8 −6 Original line number Diff line number Diff line Loading @@ -31,7 +31,9 @@ class CusparseCSR; template< typename Device > class CSRDeviceDependentCode; template< typename Real, typename Device = Devices::Host, typename Index = int > enum CSRKernel { CSRScalar, CVSVector, CSRAdaptive, CSRStream }; template< typename Real, typename Device = Devices::Host, typename Index = int >//, CSRKernel KernelType = CSRAdaptive > class CSR : public Sparse< Real, Device, Index > { private: Loading Loading @@ -60,7 +62,7 @@ public: typename _Index = Index > using Self = CSR< _Real, _Device, _Index >; enum SPMVCudaKernel { scalar, vector, hybrid }; //enum SPMVCudaKernel { scalar, vector, hybrid }; CSR(); Loading Loading @@ -198,10 +200,10 @@ public: void print( std::ostream& str ) const; void setCudaKernelType( const SPMVCudaKernel kernel ); //void setCudaKernelType( const SPMVCudaKernel kernel ); __cuda_callable__ SPMVCudaKernel getCudaKernelType() const; //__cuda_callable__ //SPMVCudaKernel getCudaKernelType() const; void setCudaWarpSize( const int warpSize ); Loading Loading @@ -281,7 +283,7 @@ protected: Containers::Vector< Index, Device, Index > rowPointers; SPMVCudaKernel spmvCudaKernel; //SPMVCudaKernel spmvCudaKernel; int cudaWarpSize, hybridModeSplit; Loading
src/TNL/Matrices/Legacy/CSR_impl.h +3 −3 Original line number Diff line number Diff line Loading @@ -34,7 +34,7 @@ template< typename Real, typename Device, typename Index > CSR< Real, Device, Index >::CSR() : spmvCudaKernel( hybrid ), : //spmvCudaKernel( hybrid ), cudaWarpSize( 32 ), //Cuda::getWarpSize() ) hybridModeSplit( 4 ) { Loading Loading @@ -621,7 +621,7 @@ void CSR< Real, Device, Index >::print( std::ostream& str ) const } } template< typename Real, /*template< typename Real, typename Device, typename Index > void CSR< Real, Device, Index >::setCudaKernelType( const SPMVCudaKernel kernel ) Loading @@ -636,7 +636,7 @@ __cuda_callable__ typename CSR< Real, Device, Index >::SPMVCudaKernel CSR< Real, Device, Index >::getCudaKernelType() const { return this->spmvCudaKernel; } }*/ template< typename Real, typename Device, Loading