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

Avoided testing with CUDA Unified Memory in SharedPointer.

parent 27dc6c53
No related branches found
No related tags found
1 merge request!44Tutorials
......@@ -50,11 +50,6 @@ TEST( SharedPointerCudaTest, getDataTest )
typedef TNL::Containers::StaticArray< 2, int > TestType;
Pointers::SharedPointer< TestType, Devices::Cuda > ptr1( 1, 2 );
#ifdef HAVE_CUDA_UNIFIED_MEMORY
ASSERT_EQ( ptr1->x(), 1 );
ASSERT_EQ( ptr1->y(), 2 );
#else
Pointers::synchronizeSmartPointersOnDevice< Devices::Cuda >();
TestType aux;
......@@ -63,7 +58,6 @@ TEST( SharedPointerCudaTest, getDataTest )
ASSERT_EQ( aux[ 0 ], 1 );
ASSERT_EQ( aux[ 1 ], 2 );
#endif // HAVE_CUDA_UNIFIED_MEMORY
#endif // HAVE_CUDA
};
......
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