Loading src/core/tnlOmp.cpp +3 −0 Original line number Diff line number Diff line Loading @@ -36,6 +36,9 @@ void tnlOmp::disable() void tnlOmp::setMaxThreadsCount( int maxThreadsCount_ ) { maxThreadsCount = maxThreadsCount_; #ifdef HAVE_OPENMP omp_set_num_threads( maxThreadsCount ); #endif } int tnlOmp::getMaxThreadsCount() Loading src/matrices/tnlCSRMatrix_impl.h +1 −1 Original line number Diff line number Diff line Loading @@ -726,7 +726,7 @@ class tnlCSRMatrixDeviceDependentCode< tnlHost > const InVector* inVectorPtr = &inVector; OutVector* outVectorPtr = &outVector; #ifdef HAVE_OPENMP #pragma omp parallel for private( matrixPtr, inVectorPtr, outVectorPtr ), schedule(static ), if( tnlOmp::isEnabled() ) #pragma omp parallel for firstprivate( matrixPtr, inVectorPtr, outVectorPtr ), schedule(static ), if( tnlOmp::isEnabled() ) #endif for( Index row = 0; row < rows; row ++ ) ( *outVectorPtr )[ row ] = matrixPtr->rowVectorProduct( row, *inVectorPtr ); Loading Loading
src/core/tnlOmp.cpp +3 −0 Original line number Diff line number Diff line Loading @@ -36,6 +36,9 @@ void tnlOmp::disable() void tnlOmp::setMaxThreadsCount( int maxThreadsCount_ ) { maxThreadsCount = maxThreadsCount_; #ifdef HAVE_OPENMP omp_set_num_threads( maxThreadsCount ); #endif } int tnlOmp::getMaxThreadsCount() Loading
src/matrices/tnlCSRMatrix_impl.h +1 −1 Original line number Diff line number Diff line Loading @@ -726,7 +726,7 @@ class tnlCSRMatrixDeviceDependentCode< tnlHost > const InVector* inVectorPtr = &inVector; OutVector* outVectorPtr = &outVector; #ifdef HAVE_OPENMP #pragma omp parallel for private( matrixPtr, inVectorPtr, outVectorPtr ), schedule(static ), if( tnlOmp::isEnabled() ) #pragma omp parallel for firstprivate( matrixPtr, inVectorPtr, outVectorPtr ), schedule(static ), if( tnlOmp::isEnabled() ) #endif for( Index row = 0; row < rows; row ++ ) ( *outVectorPtr )[ row ] = matrixPtr->rowVectorProduct( row, *inVectorPtr ); Loading