Loading src/TNL/Containers/Array.hpp +1 −1 Original line number Diff line number Diff line Loading @@ -921,7 +921,7 @@ template< typename Value, typename Device, typename Index, typename Allocator > void receive( Array< Value, Device, Index, Allocator >& array, int src, int tag, MPI_Comm comm ) { #ifdef HAVE_MPI TNL_ASSERT( false, "Does not work" ); TNL_ASSERT_TRUE( false, "Does not work" ); MPI_Status status; Index size; MPI_Recv( ( void* ) size, 1, MPI::getDataType< Index >(), src, tag, comm, &status ); Loading src/TNL/Containers/ArrayView.hpp +1 −1 Original line number Diff line number Diff line Loading @@ -544,7 +544,7 @@ template< typename Value, typename Device, typename Index > void send( const ArrayView< Value, Device, Index >& view, int dest, int tag, MPI_Comm comm ) { #ifdef HAVE_MPI TNL_ASSERT( false, "Does not work" ); TNL_ASSERT_TRUE( false, "Does not work" ); auto size = view.getSize(); MPI_Send( ( const void* ) size, 1, MPI::getDataType< Index >(), dest, tag, comm ); MPI_Send( ( const void* ) view.getData(), view.getSize() * sizeof( Value ), MPI_BYTE, dest, tag, comm ); Loading Loading
src/TNL/Containers/Array.hpp +1 −1 Original line number Diff line number Diff line Loading @@ -921,7 +921,7 @@ template< typename Value, typename Device, typename Index, typename Allocator > void receive( Array< Value, Device, Index, Allocator >& array, int src, int tag, MPI_Comm comm ) { #ifdef HAVE_MPI TNL_ASSERT( false, "Does not work" ); TNL_ASSERT_TRUE( false, "Does not work" ); MPI_Status status; Index size; MPI_Recv( ( void* ) size, 1, MPI::getDataType< Index >(), src, tag, comm, &status ); Loading
src/TNL/Containers/ArrayView.hpp +1 −1 Original line number Diff line number Diff line Loading @@ -544,7 +544,7 @@ template< typename Value, typename Device, typename Index > void send( const ArrayView< Value, Device, Index >& view, int dest, int tag, MPI_Comm comm ) { #ifdef HAVE_MPI TNL_ASSERT( false, "Does not work" ); TNL_ASSERT_TRUE( false, "Does not work" ); auto size = view.getSize(); MPI_Send( ( const void* ) size, 1, MPI::getDataType< Index >(), dest, tag, comm ); MPI_Send( ( const void* ) view.getData(), view.getSize() * sizeof( Value ), MPI_BYTE, dest, tag, comm ); Loading