--- mlpack-mlpack-3.1.1/src/mlpack/methods/det/dt_utils_impl.hpp.orig	2019-06-24 13:37:13.042097900 +0300
+++ mlpack-mlpack-3.1.1/src/mlpack/methods/det/dt_utils_impl.hpp	2019-06-24 13:44:13.177713700 +0300
@@ -184,7 +184,7 @@
   // intmax_t because size_t is not yet supported by their OpenMP
   // implementation. omp_size_t is the appropriate type according to the
   // platform.
-  #pragma omp parallel for default(none) \
+  #pragma omp parallel for default(none) firstprivate(folds, testSize, cvData, minLeafSize, maxLeafSize, useVolumeReg) \
       shared(prunedSequence, regularizationConstants)
   for (omp_size_t fold = 0; fold < (omp_size_t) folds; fold++)
   {
