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

Fixed compiler warning in ArrayOperationsMIC_impl.h

parent 3688fbc0
No related branches found
No related tags found
No related merge requests found
......@@ -22,12 +22,11 @@
#include <TNL/Containers/Algorithms/Reduction.h>
#include <TNL/Containers/Algorithms/reduction-operations.h>
#define MIC_STACK_VAR_LIM 5*1024*1024
namespace TNL {
namespace Containers {
namespace Algorithms {
static constexpr std::size_t MIC_STACK_VAR_LIM = 5*1024*1024;
template< typename Element, typename Index >
void
......@@ -318,7 +317,7 @@ compareMemory( const Element1* destination,
#ifdef HAVE_MIC
Index compared( 0 );
Index transfer( 0 );
Index max_transfer=MIC_STACK_VAR_LIM/sizeof(Element2);
std::size_t max_transfer=MIC_STACK_VAR_LIM/sizeof(Element2);
uint8_t host_buffer[max_transfer*sizeof(Element2)];
Devices::MICHider<const Element2> src_ptr;
......
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