Commit b5a593dd authored by Doak, Peter W.'s avatar Doak, Peter W.
Browse files

some tests failing due to non determinism of threading

parent fe719820
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@
#define DCA_MATH_RANDOM_STD_RANDOM_WRAPPER_HPP

#include <cstdint>  // for uint64_t
#include <iostream>
#include <random>
#include "dca/math/random/random_utils.hpp"

@@ -35,7 +36,9 @@ public:
        initial_seed_(seed),
        seed_(detail::generateSeed(global_id_, seed)),
        engine_(seed_),
        distro_(0., 1.) {}
        distro_(0., 1.) {
    std::cout << "Generated Rng with global id: " << global_id_ << " and seed: " << seed_ << '\n';
  }

  // Make the random number generator object non-copyable, but move-constructible.
  // The implicit move assignment operator is deleted since with we have non-static const members.
+1 −1
Original line number Diff line number Diff line
@@ -398,7 +398,7 @@ void StdThreadQmciClusterSolver<QmciSolver>::iterateOverLocalMeasurements(
      f(meas_id, n_local_meas, print);
  }
  else {
    throw std::runtime_error("Non fixed_meas_per_walker accumulation is suspect and disabled at this time.");
    throw std::runtime_error("Non fix-meas-per-walker accumulation is suspect and disabled at this time.");
    // Perform the total number of loop with a shared atomic counter.
    // for (int meas_id = measurements_done_++; meas_id < n_local_meas; meas_id = measurements_done_++)
    //   f(meas_id, n_local_meas, print);
+3 −0
Original line number Diff line number Diff line
@@ -9,6 +9,9 @@
//
// No-change test for CT-INT.
// Square lattice with single band and double occupancy repulsion U.

// This test has been known to hang when exceptions are thrown.

#include <iostream>
#include <string>

+3 −2
Original line number Diff line number Diff line
@@ -60,9 +60,10 @@
    "measurements"           : 600,

    "threaded-solver" : {
      "walkers": 1,
      "walkers": 3,
      "accumulators": 3,
      "shared-walk-and-accumulation-thread": false
      "shared-walk-and-accumulation-thread": true,
      "fix-meas-per-walker": true
    },

    "seed" : 0
+1 −1
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@
      "k-mesh-recursion": 3,
      "periods": 2,
      "quadrature-rule": 1,
      "threads": 3
      "threads": 1
    }
  }
}