Commit b4e37410 authored by Tomáš Oberhuber's avatar Tomáš Oberhuber Committed by Jakub Klinkovský
Browse files

Trying to debug segments printing for GPUs.

parent afcbc391
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -35,7 +35,7 @@ void SegmentsExample()
    * Print the data managed by the segments.
    */
   auto fetch = [=] __cuda_callable__ ( int globalIdx ) -> double { return data_view[ globalIdx ]; };
   std::cout << segments.print( fetch ) << std::endl;
   printSegments( segments, fetch, std::cout );
}

int main( int argc, char* argv[] )
+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ void SegmentsExample()
    * Print the data managed by the segments.
    */
   auto fetch = [=] __cuda_callable__ ( int globalIdx ) -> double { return data_view[ globalIdx ]; };
   std::cout << segments.print( fetch ) << std::endl;
   printSegments( segments, fetch, std::cout );
}

int main( int argc, char* argv[] )
+1 −1
Original line number Diff line number Diff line
@@ -33,7 +33,7 @@ void SegmentsExample()
    * Print the data managed by the segments.
    */
   auto fetch = [=] __cuda_callable__ ( int globalIdx ) -> double { return data_view[ globalIdx ]; };
   std::cout << segments.print( fetch ) << std::endl;
   printSegments( segments, fetch, std::cout );
}

int main( int argc, char* argv[] )
+1 −1
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ void SegmentsExample()
    * Print the data managed by the segments.
    */
   auto fetch = [=] __cuda_callable__ ( int globalIdx ) -> double { return data_view[ globalIdx ]; };
   std::cout << segments.print( fetch ) << std::endl;
   printSegments( segments, fetch, std::cout );
}

int main( int argc, char* argv[] )
+0 −2
Original line number Diff line number Diff line
@@ -35,10 +35,8 @@ void SegmentsExample()
   /***
    * Print the data managed by the segments.
    */
   std::cerr << data << std::endl;
   auto fetch = [=] __cuda_callable__ ( IndexType globalIdx ) -> double { return data_view[ globalIdx ]; };
   printSegments( segments, fetch, std::cout );
   std::cout << segments.print( fetch ) << std::endl;

   /***
    * Compute sums of elements in particular segments.
Loading