Skip to content
Snippets Groups Projects
Commit 6ddce075 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Fixed ILU0 to compile with nvcc 8.0

parent b09f347e
No related branches found
No related tags found
No related merge requests found
......@@ -152,19 +152,19 @@ protected:
}
// TODO: extend Matrices::copySparseMatrix accordingly
template< typename Matrix,
typename = typename std::enable_if< ! std::is_same< DeviceType, typename Matrix::DeviceType >::value >::type >
void copyMatrix( const Matrix& matrix )
template< typename MatrixT,
typename = typename std::enable_if< ! std::is_same< DeviceType, typename MatrixT::DeviceType >::value >::type >
void copyMatrix( const MatrixT& matrix )
{
typename Matrix::CudaType A_tmp;
typename MatrixT::CudaType A_tmp;
A_tmp = matrix;
Matrices::copySparseMatrix( A, A_tmp );
}
template< typename Matrix,
typename = typename std::enable_if< std::is_same< DeviceType, typename Matrix::DeviceType >::value >::type,
template< typename MatrixT,
typename = typename std::enable_if< std::is_same< DeviceType, typename MatrixT::DeviceType >::value >::type,
typename = void >
void copyMatrix( const Matrix& matrix )
void copyMatrix( const MatrixT& matrix )
{
Matrices::copySparseMatrix( A, matrix );
}
......
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