Skip to content

Commit

Permalink
Added namespace to busy_sleep calls in regression patches for Dune
Browse files Browse the repository at this point in the history
  • Loading branch information
LuAbelt committed Nov 26, 2023
1 parent 1f90472 commit be9d1fa
Show file tree
Hide file tree
Showing 70 changed files with 80 additions and 80 deletions.
2 changes: 1 addition & 1 deletion DunePerfRegression/alu_grid_adapt_10000ms.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ index f7e1b5d1..785c4bea 100644
alu_inline_tmp
bool ALU3dGrid< dim, dimworld, elType, Comm >::adapt ()
{
+ busy_sleep_for_millisecs(10000);
+ fp_util::busy_sleep_for_millisecs(10000);
+
bool ref = false;

Expand Down
2 changes: 1 addition & 1 deletion DunePerfRegression/alu_grid_adapt_1000ms.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ index f7e1b5d1..0d776882 100644
alu_inline_tmp
bool ALU3dGrid< dim, dimworld, elType, Comm >::adapt ()
{
+ busy_sleep_for_millisecs(1000);
+ fp_util::busy_sleep_for_millisecs(1000);
+
bool ref = false;

Expand Down
2 changes: 1 addition & 1 deletion DunePerfRegression/alu_grid_adapt_100ms.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ index f7e1b5d1..f890b952 100644
alu_inline_tmp
bool ALU3dGrid< dim, dimworld, elType, Comm >::adapt ()
{
+ busy_sleep_for_millisecs(100);
+ fp_util::busy_sleep_for_millisecs(100);
+
bool ref = false;

Expand Down
2 changes: 1 addition & 1 deletion DunePerfRegression/alu_grid_adapt_10ms.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ index f7e1b5d1..55955dc0 100644
alu_inline_tmp
bool ALU3dGrid< dim, dimworld, elType, Comm >::adapt ()
{
+ busy_sleep_for_millisecs(10);
+ fp_util::busy_sleep_for_millisecs(10);
+
bool ref = false;

Expand Down
2 changes: 1 addition & 1 deletion DunePerfRegression/alu_grid_adapt_1ms.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ index f7e1b5d1..124dd058 100644
alu_inline_tmp
bool ALU3dGrid< dim, dimworld, elType, Comm >::adapt ()
{
+ busy_sleep_for_millisecs(1);
+ fp_util::busy_sleep_for_millisecs(1);
+
bool ref = false;

Expand Down
2 changes: 1 addition & 1 deletion DunePerfRegression/bicgstab_solver_apply_10000ms.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ index 5a7e901e..a8a37b31 100644
*/
virtual void apply (X& x, X& b, InverseOperatorResult& res)
{
+ busy_sleep_for_millisecs(10000);
+ fp_util::busy_sleep_for_millisecs(10000);
+
using std::abs;
const Simd::Scalar<real_type> EPSILON=1e-80;
Expand Down
2 changes: 1 addition & 1 deletion DunePerfRegression/bicgstab_solver_apply_1000ms.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ index 5a7e901e..a8a37b31 100644
*/
virtual void apply (X& x, X& b, InverseOperatorResult& res)
{
+ busy_sleep_for_millisecs(1000);
+ fp_util::busy_sleep_for_millisecs(1000);
+
using std::abs;
const Simd::Scalar<real_type> EPSILON=1e-80;
Expand Down
2 changes: 1 addition & 1 deletion DunePerfRegression/bicgstab_solver_apply_100ms.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ index 5a7e901e..a8a37b31 100644
*/
virtual void apply (X& x, X& b, InverseOperatorResult& res)
{
+ busy_sleep_for_millisecs(100);
+ fp_util::busy_sleep_for_millisecs(100);
+
using std::abs;
const Simd::Scalar<real_type> EPSILON=1e-80;
Expand Down
2 changes: 1 addition & 1 deletion DunePerfRegression/bicgstab_solver_apply_10ms.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ index 5a7e901e..a8a37b31 100644
*/
virtual void apply (X& x, X& b, InverseOperatorResult& res)
{
+ busy_sleep_for_millisecs(10);
+ fp_util::busy_sleep_for_millisecs(10);
+
using std::abs;
const Simd::Scalar<real_type> EPSILON=1e-80;
Expand Down
2 changes: 1 addition & 1 deletion DunePerfRegression/bicgstab_solver_apply_1ms.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ index 5a7e901e..a8a37b31 100644
*/
virtual void apply (X& x, X& b, InverseOperatorResult& res)
{
+ busy_sleep_for_millisecs(1);
+ fp_util::busy_sleep_for_millisecs(1);
+
using std::abs;
const Simd::Scalar<real_type> EPSILON=1e-80;
Expand Down
2 changes: 1 addition & 1 deletion DunePerfRegression/cg_solver_apply_10000ms.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ index 5a7e901e..b4528c22 100644
*/
virtual void apply (X& x, X& b, InverseOperatorResult& res)
{
+ busy_sleep_for_millisecs(10000);
+ fp_util::busy_sleep_for_millisecs(10000);
+
Iteration iteration(*this,res);
_prec->pre(x,b); // prepare preconditioner
Expand Down
2 changes: 1 addition & 1 deletion DunePerfRegression/cg_solver_apply_1000ms.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ index 5a7e901e..b4528c22 100644
*/
virtual void apply (X& x, X& b, InverseOperatorResult& res)
{
+ busy_sleep_for_millisecs(1000);
+ fp_util::busy_sleep_for_millisecs(1000);
+
Iteration iteration(*this,res);
_prec->pre(x,b); // prepare preconditioner
Expand Down
2 changes: 1 addition & 1 deletion DunePerfRegression/cg_solver_apply_100ms.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ index 5a7e901e..b4528c22 100644
*/
virtual void apply (X& x, X& b, InverseOperatorResult& res)
{
+ busy_sleep_for_millisecs(100);
+ fp_util::busy_sleep_for_millisecs(100);
+
Iteration iteration(*this,res);
_prec->pre(x,b); // prepare preconditioner
Expand Down
2 changes: 1 addition & 1 deletion DunePerfRegression/cg_solver_apply_10ms.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ index 5a7e901e..b4528c22 100644
*/
virtual void apply (X& x, X& b, InverseOperatorResult& res)
{
+ busy_sleep_for_millisecs(10);
+ fp_util::busy_sleep_for_millisecs(10);
+
Iteration iteration(*this,res);
_prec->pre(x,b); // prepare preconditioner
Expand Down
2 changes: 1 addition & 1 deletion DunePerfRegression/cg_solver_apply_1ms.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ index 5a7e901e..b4528c22 100644
*/
virtual void apply (X& x, X& b, InverseOperatorResult& res)
{
+ busy_sleep_for_millisecs(1);
+ fp_util::busy_sleep_for_millisecs(1);
+
Iteration iteration(*this,res);
_prec->pre(x,b); // prepare preconditioner
Expand Down
2 changes: 1 addition & 1 deletion DunePerfRegression/gradient_solver_apply_10000ms.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ index 5a7e901e..e57b4dd0 100644
*/
virtual void apply (X& x, X& b, InverseOperatorResult& res)
{
+ busy_sleep_for_millisecs(10000);
+ fp_util::busy_sleep_for_millisecs(10000);
+
Iteration iteration(*this, res);
_prec->pre(x,b); // prepare preconditioner
Expand Down
2 changes: 1 addition & 1 deletion DunePerfRegression/gradient_solver_apply_1000ms.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ index 5a7e901e..e57b4dd0 100644
*/
virtual void apply (X& x, X& b, InverseOperatorResult& res)
{
+ busy_sleep_for_millisecs(1000);
+ fp_util::busy_sleep_for_millisecs(1000);
+
Iteration iteration(*this, res);
_prec->pre(x,b); // prepare preconditioner
Expand Down
2 changes: 1 addition & 1 deletion DunePerfRegression/gradient_solver_apply_100ms.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ index 5a7e901e..e57b4dd0 100644
*/
virtual void apply (X& x, X& b, InverseOperatorResult& res)
{
+ busy_sleep_for_millisecs(100);
+ fp_util::busy_sleep_for_millisecs(100);
+
Iteration iteration(*this, res);
_prec->pre(x,b); // prepare preconditioner
Expand Down
2 changes: 1 addition & 1 deletion DunePerfRegression/gradient_solver_apply_10ms.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ index 5a7e901e..e57b4dd0 100644
*/
virtual void apply (X& x, X& b, InverseOperatorResult& res)
{
+ busy_sleep_for_millisecs(10);
+ fp_util::busy_sleep_for_millisecs(10);
+
Iteration iteration(*this, res);
_prec->pre(x,b); // prepare preconditioner
Expand Down
2 changes: 1 addition & 1 deletion DunePerfRegression/gradient_solver_apply_1ms.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ index 5a7e901e..e57b4dd0 100644
*/
virtual void apply (X& x, X& b, InverseOperatorResult& res)
{
+ busy_sleep_for_millisecs(1);
+ fp_util::busy_sleep_for_millisecs(1);
+
Iteration iteration(*this, res);
_prec->pre(x,b); // prepare preconditioner
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ index e088ff8..d595565 100644
static std::unique_ptr<Grid> create() {
Dune::GridFactory<Grid> gf;
-
+ busy_sleep_for_millisecs(10000);
+ fp_util::busy_sleep_for_millisecs(10000);
int fake_argc = 0;
char **fake_argv = NULL;

Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ index e088ff8..8653626 100644
static std::unique_ptr<Grid> create() {
Dune::GridFactory<Grid> gf;
-
+ busy_sleep_for_millisecs(1000);
+ fp_util::busy_sleep_for_millisecs(1000);
int fake_argc = 0;
char **fake_argv = NULL;

2 changes: 1 addition & 1 deletion DunePerfRegression/kuhn_unit_cube_maker_create_100ms.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ index e088ff8..4393a1f 100644
static std::unique_ptr<Grid> create() {
Dune::GridFactory<Grid> gf;
-
+ busy_sleep_for_millisecs(100);
+ fp_util::busy_sleep_for_millisecs(100);
int fake_argc = 0;
char **fake_argv = NULL;

2 changes: 1 addition & 1 deletion DunePerfRegression/kuhn_unit_cube_maker_create_10ms.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ index e088ff8..d400286 100644
static std::unique_ptr<Grid> create() {
Dune::GridFactory<Grid> gf;
-
+ busy_sleep_for_millisecs(10);
+ fp_util::busy_sleep_for_millisecs(10);
int fake_argc = 0;
char **fake_argv = NULL;

2 changes: 1 addition & 1 deletion DunePerfRegression/kuhn_unit_cube_maker_create_1ms.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ index e088ff8..077bf3f 100644
static std::unique_ptr<Grid> create() {
Dune::GridFactory<Grid> gf;
-
+ busy_sleep_for_millisecs(1);
+ fp_util::busy_sleep_for_millisecs(1);
int fake_argc = 0;
char **fake_argv = NULL;

2 changes: 1 addition & 1 deletion DunePerfRegression/loop_solver_apply_10000ms.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ index 5a7e901e..2b29e5f1 100644
//! \copydoc InverseOperator::apply(X&,Y&,InverseOperatorResult&)
virtual void apply (X& x, X& b, InverseOperatorResult& res)
{
+ busy_sleep_for_millisecs(10000);
+ fp_util::busy_sleep_for_millisecs(10000);
+
Iteration iteration(*this, res);
_prec->pre(x,b);
Expand Down
2 changes: 1 addition & 1 deletion DunePerfRegression/loop_solver_apply_1000ms.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ index 5a7e901e..2b29e5f1 100644
//! \copydoc InverseOperator::apply(X&,Y&,InverseOperatorResult&)
virtual void apply (X& x, X& b, InverseOperatorResult& res)
{
+ busy_sleep_for_millisecs(1000);
+ fp_util::busy_sleep_for_millisecs(1000);
+
Iteration iteration(*this, res);
_prec->pre(x,b);
Expand Down
2 changes: 1 addition & 1 deletion DunePerfRegression/loop_solver_apply_100ms.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ index 5a7e901e..2b29e5f1 100644
//! \copydoc InverseOperator::apply(X&,Y&,InverseOperatorResult&)
virtual void apply (X& x, X& b, InverseOperatorResult& res)
{
+ busy_sleep_for_millisecs(100);
+ fp_util::busy_sleep_for_millisecs(100);
+
Iteration iteration(*this, res);
_prec->pre(x,b);
Expand Down
2 changes: 1 addition & 1 deletion DunePerfRegression/loop_solver_apply_10ms.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ index 5a7e901e..2b29e5f1 100644
//! \copydoc InverseOperator::apply(X&,Y&,InverseOperatorResult&)
virtual void apply (X& x, X& b, InverseOperatorResult& res)
{
+ busy_sleep_for_millisecs(10);
+ fp_util::busy_sleep_for_millisecs(10);
+
Iteration iteration(*this, res);
_prec->pre(x,b);
Expand Down
2 changes: 1 addition & 1 deletion DunePerfRegression/loop_solver_apply_1ms.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ index 5a7e901e..2b29e5f1 100644
//! \copydoc InverseOperator::apply(X&,Y&,InverseOperatorResult&)
virtual void apply (X& x, X& b, InverseOperatorResult& res)
{
+ busy_sleep_for_millisecs(1);
+ fp_util::busy_sleep_for_millisecs(1);
+
Iteration iteration(*this, res);
_prec->pre(x,b);
Expand Down
2 changes: 1 addition & 1 deletion DunePerfRegression/minres_solver_apply_10000ms.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ index 5a7e901e..a23b36fc 100644
*/
virtual void apply (X& x, X& b, InverseOperatorResult& res)
{
+ busy_sleep_for_millisecs(10000);
+ fp_util::busy_sleep_for_millisecs(10000);
+
using std::sqrt;
using std::abs;
Expand Down
2 changes: 1 addition & 1 deletion DunePerfRegression/minres_solver_apply_1000ms.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ index 5a7e901e..a23b36fc 100644
*/
virtual void apply (X& x, X& b, InverseOperatorResult& res)
{
+ busy_sleep_for_millisecs(1000);
+ fp_util::busy_sleep_for_millisecs(1000);
+
using std::sqrt;
using std::abs;
Expand Down
2 changes: 1 addition & 1 deletion DunePerfRegression/minres_solver_apply_100ms.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ index 5a7e901e..a23b36fc 100644
*/
virtual void apply (X& x, X& b, InverseOperatorResult& res)
{
+ busy_sleep_for_millisecs(100);
+ fp_util::busy_sleep_for_millisecs(100);
+
using std::sqrt;
using std::abs;
Expand Down
2 changes: 1 addition & 1 deletion DunePerfRegression/minres_solver_apply_10ms.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ index 5a7e901e..a23b36fc 100644
*/
virtual void apply (X& x, X& b, InverseOperatorResult& res)
{
+ busy_sleep_for_millisecs(10);
+ fp_util::busy_sleep_for_millisecs(10);
+
using std::sqrt;
using std::abs;
Expand Down
2 changes: 1 addition & 1 deletion DunePerfRegression/minres_solver_apply_1ms.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ index 5a7e901e..a23b36fc 100644
*/
virtual void apply (X& x, X& b, InverseOperatorResult& res)
{
+ busy_sleep_for_millisecs(1);
+ fp_util::busy_sleep_for_millisecs(1);
+
using std::sqrt;
using std::abs;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ index b7c7d74..1fe0833 100644
typename DomainContainerTy,
typename RangeContainerTy>
static auto create(MatrixTy m) {
+ busy_sleep_for_millisecs(10000);
+ fp_util::busy_sleep_for_millisecs(10000);
return Dune::Richardson<DomainContainerTy,
RangeContainerTy>(1.0);
};
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ index b7c7d74..5e2d4df 100644
typename DomainContainerTy,
typename RangeContainerTy>
static auto create(MatrixTy m) {
+ busy_sleep_for_millisecs(1000);
+ fp_util::busy_sleep_for_millisecs(1000);
return Dune::Richardson<DomainContainerTy,
RangeContainerTy>(1.0);
};
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ index b7c7d74..c766fab 100644
typename DomainContainerTy,
typename RangeContainerTy>
static auto create(MatrixTy m) {
+ busy_sleep_for_millisecs(100);
+ fp_util::busy_sleep_for_millisecs(100);
return Dune::Richardson<DomainContainerTy,
RangeContainerTy>(1.0);
};
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ index b7c7d74..cc3ef15 100644
typename DomainContainerTy,
typename RangeContainerTy>
static auto create(MatrixTy m) {
+ busy_sleep_for_millisecs(10);
+ fp_util::busy_sleep_for_millisecs(10);
return Dune::Richardson<DomainContainerTy,
RangeContainerTy>(1.0);
};
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ index b7c7d74..af9bdf6 100644
typename DomainContainerTy,
typename RangeContainerTy>
static auto create(MatrixTy m) {
+ busy_sleep_for_millisecs(1);
+ fp_util::busy_sleep_for_millisecs(1);
return Dune::Richardson<DomainContainerTy,
RangeContainerTy>(1.0);
};
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ index 5c17d2b..75901e6 100644
typename RangeContainerTy>
static auto create(MatrixTy m) {
using Dune::PDELab::Backend::native;
+ busy_sleep_for_millisecs(10000);
+ fp_util::busy_sleep_for_millisecs(10000);
return Dune::SeqILU<typename MatrixTy::Container,
DomainContainerTy,
RangeContainerTy>(native(m),1.0);
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ index 5c17d2b..18b73dc 100644
typename RangeContainerTy>
static auto create(MatrixTy m) {
using Dune::PDELab::Backend::native;
+ busy_sleep_for_millisecs(1000);
+ fp_util::busy_sleep_for_millisecs(1000);
return Dune::SeqILU<typename MatrixTy::Container,
DomainContainerTy,
RangeContainerTy>(native(m),1.0);
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ index 5c17d2b..1228788 100644
typename RangeContainerTy>
static auto create(MatrixTy m) {
using Dune::PDELab::Backend::native;
+ busy_sleep_for_millisecs(100);
+ fp_util::busy_sleep_for_millisecs(100);
return Dune::SeqILU<typename MatrixTy::Container,
DomainContainerTy,
RangeContainerTy>(native(m),1.0);
2 changes: 1 addition & 1 deletion DunePerfRegression/seqilu_preconditioner_create_10ms.patch
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ index 5c17d2b..57822e5 100644
typename RangeContainerTy>
static auto create(MatrixTy m) {
using Dune::PDELab::Backend::native;
+ busy_sleep_for_millisecs(10);
+ fp_util::busy_sleep_for_millisecs(10);
return Dune::SeqILU<typename MatrixTy::Container,
DomainContainerTy,
RangeContainerTy>(native(m),1.0);
Loading

0 comments on commit be9d1fa

Please sign in to comment.