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

Temporary commenting incompatible code in diagonal preconditioner.

parent 93e26419
No related branches found
No related tags found
No related merge requests found
...@@ -32,11 +32,12 @@ update( const MatrixPointer& matrixPointer ) ...@@ -32,11 +32,12 @@ update( const MatrixPointer& matrixPointer )
diagonal.setSize( matrixPointer->getRows() ); diagonal.setSize( matrixPointer->getRows() );
VectorViewType diag_view( diagonal ); VectorViewType diag_view( diagonal );
const Matrix* kernel_matrix = &matrixPointer.template getData< DeviceType >(); const auto kernel_matrix = matrixPointer->getView(); //.template getData< DeviceType >();
// TODO: Rewrite this with SparseMatrix::forAllRows
auto kernel = [=] __cuda_callable__ ( IndexType i ) mutable auto kernel = [=] __cuda_callable__ ( IndexType i ) mutable
{ {
diag_view[ i ] = kernel_matrix->getElementFast( i, i ); diag_view[ i ] = kernel_matrix.getElement( i, i );
}; };
Algorithms::ParallelFor< DeviceType >::exec( (IndexType) 0, diagonal.getSize(), kernel ); Algorithms::ParallelFor< DeviceType >::exec( (IndexType) 0, diagonal.getSize(), kernel );
......
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