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

Commenting out the code which cannot be compiled.

parent 8573f541
No related branches found
No related tags found
1 merge request!48Segments
...@@ -594,13 +594,13 @@ forRows( IndexType first, IndexType last, Function& function ) const ...@@ -594,13 +594,13 @@ forRows( IndexType first, IndexType last, Function& function ) const
const auto columns_view = this->columnIndexes.getConstView(); const auto columns_view = this->columnIndexes.getConstView();
const auto values_view = this->values.getConstView(); const auto values_view = this->values.getConstView();
const IndexType paddingIndex_ = this->getPaddingIndex(); const IndexType paddingIndex_ = this->getPaddingIndex();
auto fetch_ = [=] __cuda_callable__ ( IndexType rowIdx, IndexType localIdx, IndexType globalIdx ) mutable -> decltype( fetch( IndexType(), IndexType(), RealType() ) ) { /*auto fetch_ = [=] __cuda_callable__ ( IndexType rowIdx, IndexType localIdx, IndexType globalIdx ) mutable -> decltype( fetch( IndexType(), IndexType(), RealType() ) ) {
IndexType columnIdx = columns_view[ globalIdx ]; IndexType columnIdx = columns_view[ globalIdx ];
if( columnIdx != paddingIndex_ ) if( columnIdx != paddingIndex_ )
return fetch( rowIdx, columnIdx, values_view[ globalIdx ] ); return fetch( rowIdx, columnIdx, values_view[ globalIdx ] );
return zero; return zero;
}; };
this->segments.segmentsReduction( first, last, fetch_, reduce, keep, zero ); this->segments.segmentsReduction( first, last, fetch_, reduce, keep, zero );*/
} }
...@@ -704,7 +704,7 @@ operator=( const SparseMatrix< Real2, Segments2, Device2, Index2, RealAllocator2 ...@@ -704,7 +704,7 @@ operator=( const SparseMatrix< Real2, Segments2, Device2, Index2, RealAllocator2
using RHSMatrixType = SparseMatrix< Real2, Segments2, Device2, Index2, RealAllocator2, IndexAllocator2 >; using RHSMatrixType = SparseMatrix< Real2, Segments2, Device2, Index2, RealAllocator2, IndexAllocator2 >;
if( std::is_same< Device, Device2 >::value ) if( std::is_same< Device, Device2 >::value )
{ {
RowsCapacitiesType rowLengths; /*RowsCapacitiesType rowLengths;
matrix.getCompressedRowLengths( rowLengths ); matrix.getCompressedRowLengths( rowLengths );
this->setCompressedRowLengths( rowLengths ); this->setCompressedRowLengths( rowLengths );
// TODO: Replace this with SparseMatrixView // TODO: Replace this with SparseMatrixView
...@@ -724,7 +724,7 @@ operator=( const SparseMatrix< Real2, Segments2, Device2, Index2, RealAllocator2 ...@@ -724,7 +724,7 @@ operator=( const SparseMatrix< Real2, Segments2, Device2, Index2, RealAllocator2
this_values_view[ thisGlobalIdx ] = value; this_values_view[ thisGlobalIdx ] = value;
} }
}; };
matrix.forAllRows( f ); matrix.forAllRows( f );*/
} }
} }
......
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