]> https://gitweb.dealii.org/ - dealii.git/commitdiff
use 64 bit tbb range 7836/head
authorTimo Heister <timo.heister@gmail.com>
Thu, 21 Mar 2019 00:22:43 +0000 (18:22 -0600)
committerTimo Heister <timo.heister@gmail.com>
Thu, 21 Mar 2019 00:23:01 +0000 (18:23 -0600)
include/deal.II/lac/la_vector.templates.h
include/deal.II/lac/vector_operations_internal.h

index 7eaa6b3eea4135036c404e328dd826b01bca309e..94309bde36dbed006f89ddb787800bf1f26936e8 100644 (file)
@@ -92,7 +92,7 @@ namespace LinearAlgebra
     dealii::internal::VectorOperations::Vector_copy<Number, Number> copier(
       in_vector.values.get(), this->values.get());
     internal::VectorOperations::parallel_for(copier,
-                                             0,
+                                             static_cast<size_type>(0),
                                              this->size(),
                                              this->thread_loop_partitioner);
 
@@ -113,7 +113,7 @@ namespace LinearAlgebra
     dealii::internal::VectorOperations::Vector_copy<Number, Number2> copier(
       in_vector.values.get(), this->values.get());
     internal::VectorOperations::parallel_for(copier,
-                                             0,
+                                             static_cast<size_type>(0),
                                              this->size(),
                                              this->thread_loop_partitioner);
 
@@ -151,7 +151,7 @@ namespace LinearAlgebra
     internal::VectorOperations::Vectorization_multiply_factor<Number>
       vector_multiply(this->values.get(), factor);
     internal::VectorOperations::parallel_for(vector_multiply,
-                                             0,
+                                             static_cast<size_type>(0),
                                              this->size(),
                                              this->thread_loop_partitioner);
 
index 95ea6bc18caef8064694b14e3402edb509910e08..542c31499fa1feea2c992f891d2d74f0f676118f 100644 (file)
@@ -149,7 +149,7 @@ namespace internal
       }
 
       void
-      operator()(const tbb::blocked_range<unsigned int> &range) const
+      operator()(const tbb::blocked_range<size_type> &range) const
       {
         const size_type r_begin = start + range.begin() * chunk_size;
         const size_type r_end = std::min(start + range.end() * chunk_size, end);
@@ -188,8 +188,12 @@ namespace internal
             partitioner->acquire_one_partitioner();
 
           TBBForFunctor<Functor> generic_functor(functor, start, end);
-          parallel::internal::parallel_for(
-            0U, generic_functor.n_chunks, generic_functor, 1, tbb_partitioner);
+          parallel::internal::parallel_for(static_cast<size_type>(0),
+                                           static_cast<size_type>(
+                                             generic_functor.n_chunks),
+                                           generic_functor,
+                                           1,
+                                           tbb_partitioner);
           partitioner->release_one_partitioner(tbb_partitioner);
         }
       else if (vec_size > 0)
@@ -1317,7 +1321,7 @@ namespace internal
        * [range.begin(), range.end()).
        */
       void
-      operator()(const tbb::blocked_range<unsigned int> &range) const
+      operator()(const tbb::blocked_range<size_type> &range) const
       {
         for (size_type i = range.begin(); i < range.end(); ++i)
           accumulate_recursive(op,
@@ -1387,8 +1391,12 @@ namespace internal
           TBBReduceFunctor<Operation, ResultType> generic_functor(op,
                                                                   start,
                                                                   end);
-          parallel::internal::parallel_for(
-            0U, generic_functor.n_chunks, generic_functor, 1, tbb_partitioner);
+          parallel::internal::parallel_for(static_cast<size_type>(0),
+                                           static_cast<size_type>(
+                                             generic_functor.n_chunks),
+                                           generic_functor,
+                                           1,
+                                           tbb_partitioner);
           partitioner->release_one_partitioner(tbb_partitioner);
           result = generic_functor.do_sum();
         }

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.