Loading src/core/tnlLongVectorCUDATester.h +9 −1 Original line number Diff line number Diff line Loading @@ -57,10 +57,15 @@ template< class T > class tnlLongVectorCUDATester : public CppUnit :: TestCase return suiteOfTests; } void testKernel(); void testKernel() { #ifdef HAVE_CUDA #endif }; void testCopying() { #ifdef HAVE_CUDA tnlLongVector< T > host_vector( 500 ); tnlLongVectorCUDA< T > device_vector( 500 ); for( int i = 0; i < 500; i ++ ) Loading @@ -72,10 +77,12 @@ template< class T > class tnlLongVectorCUDATester : public CppUnit :: TestCase for( int i = 0; i < 500; i ++ ) if( host_vector[ i ] != i ) errs ++; CPPUNIT_ASSERT( ! errs ); #endif } void testAllocation() { #ifdef HAVE_CUDA tnlLongVectorCUDA< T > cuda_vector_1; CPPUNIT_ASSERT( !cuda_vector_1 ); Loading Loading @@ -105,6 +112,7 @@ template< class T > class tnlLongVectorCUDATester : public CppUnit :: TestCase */ delete cuda_vector_5; delete cuda_vector_4; #endif } }; Loading tools/src/Makefile.am +1 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ tnlerrnormssources = mdiff-err-norms.cpp \ compare-objects.cpp \ $(common) tnlgridviewsources = mgrid-view.cpp \ tnlgridviewsources = tnl-grid-view.cpp \ $(common) tnlcurve2gnuplotsources = tnlcurve2gnuplot.cpp \ Loading tools/src/mgrid-view.cpp→tools/src/tnl-grid-view.cpp +3 −3 File changed and moved.Contains only whitespace changes. Show changes Loading
src/core/tnlLongVectorCUDATester.h +9 −1 Original line number Diff line number Diff line Loading @@ -57,10 +57,15 @@ template< class T > class tnlLongVectorCUDATester : public CppUnit :: TestCase return suiteOfTests; } void testKernel(); void testKernel() { #ifdef HAVE_CUDA #endif }; void testCopying() { #ifdef HAVE_CUDA tnlLongVector< T > host_vector( 500 ); tnlLongVectorCUDA< T > device_vector( 500 ); for( int i = 0; i < 500; i ++ ) Loading @@ -72,10 +77,12 @@ template< class T > class tnlLongVectorCUDATester : public CppUnit :: TestCase for( int i = 0; i < 500; i ++ ) if( host_vector[ i ] != i ) errs ++; CPPUNIT_ASSERT( ! errs ); #endif } void testAllocation() { #ifdef HAVE_CUDA tnlLongVectorCUDA< T > cuda_vector_1; CPPUNIT_ASSERT( !cuda_vector_1 ); Loading Loading @@ -105,6 +112,7 @@ template< class T > class tnlLongVectorCUDATester : public CppUnit :: TestCase */ delete cuda_vector_5; delete cuda_vector_4; #endif } }; Loading
tools/src/Makefile.am +1 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ tnlerrnormssources = mdiff-err-norms.cpp \ compare-objects.cpp \ $(common) tnlgridviewsources = mgrid-view.cpp \ tnlgridviewsources = tnl-grid-view.cpp \ $(common) tnlcurve2gnuplotsources = tnlcurve2gnuplot.cpp \ Loading
tools/src/mgrid-view.cpp→tools/src/tnl-grid-view.cpp +3 −3 File changed and moved.Contains only whitespace changes. Show changes