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

Fixing types in adaptive CSR kernel to avoid different types comparison warning.

parent 9dfbe5bc
No related branches found
No related tags found
1 merge request!89To/matrices adaptive csr
...@@ -99,7 +99,7 @@ struct CSRAdaptiveKernel ...@@ -99,7 +99,7 @@ struct CSRAdaptiveKernel
const Offsets& offsets, const Offsets& offsets,
const Index size, const Index size,
details::Type &type, details::Type &type,
Index &sum ); size_t &sum );
template< int SizeOfValue, template< int SizeOfValue,
typename Offsets > typename Offsets >
......
...@@ -122,7 +122,7 @@ findLimit( const Index start, ...@@ -122,7 +122,7 @@ findLimit( const Index start,
const Offsets& offsets, const Offsets& offsets,
const Index size, const Index size,
details::Type &type, details::Type &type,
Index &sum ) size_t &sum )
{ {
sum = 0; sum = 0;
for( Index current = start; current < size - 1; current++ ) for( Index current = start; current < size - 1; current++ )
...@@ -161,7 +161,8 @@ initValueSize( const Offsets& offsets ) ...@@ -161,7 +161,8 @@ initValueSize( const Offsets& offsets )
using HostOffsetsType = TNL::Containers::Vector< typename Offsets::IndexType, TNL::Devices::Host, typename Offsets::IndexType >; using HostOffsetsType = TNL::Containers::Vector< typename Offsets::IndexType, TNL::Devices::Host, typename Offsets::IndexType >;
HostOffsetsType hostOffsets( offsets ); HostOffsetsType hostOffsets( offsets );
const Index rows = offsets.getSize(); const Index rows = offsets.getSize();
Index sum, start( 0 ), nextStart( 0 ); Index start( 0 ), nextStart( 0 );
size_t sum;
// Fill blocks // Fill blocks
std::vector< details::CSRAdaptiveKernelBlockDescriptor< Index > > inBlocks; std::vector< details::CSRAdaptiveKernelBlockDescriptor< Index > > inBlocks;
......
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