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

Changing default setting for CSR light threads mapping.

parent 922acbc3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -437,7 +437,7 @@ benchmarkSpMVCSRLight( BenchmarkType& benchmark,
      cudaMatrix.vectorProduct( cudaInVector, cudaOutVector );
   };

   cudaMatrix.getSegments().getKernel().setThreadsMapping( Algorithms::Segments::CSRLightAutomaticThreadsLightSpMV );
   cudaMatrix.getSegments().getKernel().setThreadsMapping( Algorithms::Segments::CSRLightAutomaticThreads );
   String format = MatrixInfo< HostMatrix >::getFormat();
   SpmvBenchmarkResult< Real, Devices::Cuda, int > cudaBenchmarkResults( format, csrResultVector, cudaOutVector, cudaMatrix.getNonzeroElementsCount() );
   benchmark.time< Devices::Cuda >( resetCudaVectors, "GPU", spmvCuda, cudaBenchmarkResults );
+1 −1
Original line number Diff line number Diff line
@@ -68,7 +68,7 @@ struct CSRLightKernel

   protected:

      LightCSRSThreadsMapping mapping = LightCSRConstantThreads;
      LightCSRSThreadsMapping mapping = CSRLightAutomaticThreads;

      int threadsPerSegment = 32;
};