Commit 24de3988 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Mesh::print works with CUDA meshes too

parent 2e8dfa1e
Loading
Loading
Loading
Loading
+2 −8
Original line number Diff line number Diff line
@@ -318,15 +318,9 @@ void
Mesh< MeshConfig, Device >::
print( std::ostream& str ) const
{
   // FIXME: there is a problem with multimaps and accessors holding pointers into the device memory
   if( std::is_same< Device, Devices::Cuda >::value ) {
      str << "Textual representation of meshes stored on the CUDA device is not supported." << std::endl;
   }
   else {
   StorageBaseType::print( str );
   EntityTagsLayerFamily::print( str );
}
}

template< typename MeshConfig, typename Device >
bool
+1 −0
Original line number Diff line number Diff line
@@ -97,6 +97,7 @@ void testMeshOnCuda( const Mesh& mesh )
   DeviceMesh dmesh2;
   dmesh2 = mesh;
   EXPECT_EQ( dmesh2, mesh );
   compareStringRepresentation( dmesh2, mesh );

   // test CUDA->CUDA copy
   testCopyAssignment( dmesh1 );