Commit f855beb2 authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Adding debugging code to the destructor of tnlLongVectorCUDA.

parent 47da23bd
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -241,10 +241,14 @@ template< class T > class tnlLongVectorCUDA : public tnlObject
   {
#ifdef HAVE_CUDA
      if( data && ! shared_data )
      {
         if( debug )
            cout << "Freeing allocated memory of " << GetName() << " on CUDA device." << endl;
         if( cudaFree( data ) != cudaSuccess )
         {
            cerr << "Unable to free alocated memory on CUDA device of " << GetName() << "." << endl;
         }
      }
#else
      cerr << "CUDA support is missing on this system." << endl;
#endif