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

Revert "Fix of array operations containsValue and containsOnlyValue to compile with g++-4.8."

The original was simpler/more readable and we require GCC 5.0 now.

This reverts commit d920a278.
parent 0088abdc
No related branches found
No related tags found
No related merge requests found
......@@ -201,10 +201,9 @@ containsValue( const Element* data,
TNL_ASSERT_GE( size, 0, "" );
if( size == 0 ) return false;
bool result = false;
using Operation = Algorithms::ParallelReductionContainsValue< Element >;
Operation reductionContainsValue;
Algorithms::ParallelReductionContainsValue< Element > reductionContainsValue;
reductionContainsValue.setValue( value );
Reduction< Devices::Cuda >::template reduce< Operation, Index >( reductionContainsValue, size, data, 0, result );
Reduction< Devices::Cuda >::reduce( reductionContainsValue, size, data, 0, result );
return result;
}
......@@ -220,10 +219,9 @@ containsOnlyValue( const Element* data,
TNL_ASSERT_GE( size, 0, "" );
if( size == 0 ) return false;
bool result = false;
using Operation = Algorithms::ParallelReductionContainsOnlyValue< Element >;
Operation reductionContainsOnlyValue;
Algorithms::ParallelReductionContainsOnlyValue< Element > reductionContainsOnlyValue;
reductionContainsOnlyValue.setValue( value );
Reduction< Devices::Cuda >::template reduce< Operation, Index >( reductionContainsOnlyValue, size, data, 0, result );
Reduction< Devices::Cuda >::reduce( reductionContainsOnlyValue, size, data, 0, result );
return result;
}
......
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