]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Increase the timeout since we are on multicore systems.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 10 Dec 2010 16:46:14 +0000 (16:46 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Fri, 10 Dec 2010 16:46:14 +0000 (16:46 +0000)
git-svn-id: https://svn.dealii.org/trunk@22960 0785d39b-7218-0410-832d-ea1e28bc413d

tests/tests.h

index b1a4198ba0587d9929321c2006547b58b8cb8669..c77a5d6f7fa4fc96e5a01ed675f45feaff6b86f6 100644 (file)
@@ -114,12 +114,13 @@ set_grain_sizes;
 
 
 
-// spawn a thread that terminates the program after a certain time
-// given by the environment variable WALLTIME. this makes sure we
-// don't let jobs that deadlock on some mutex hang around
-// forever. note that this is orthogonal to using "ulimit" in
-// Makefile.rules, which only affects CPU time and consequently works
-// on infinite loops but not deadlocks
+// spawn a thread that terminates the program after a certain time given by
+// the environment variable WALLTIME (times a factor to account for the fact
+// that we run on multicore systems where things may take longer). this makes
+// sure we don't let jobs that deadlock on some mutex hang around
+// forever. note that this is orthogonal to using "ulimit" in Makefile.rules,
+// which only affects CPU time and consequently works on infinite loops but
+// not deadlocks
 #ifdef DEAL_II_USE_MT
 
 struct DeadlockKiller
@@ -136,7 +137,7 @@ struct DeadlockKiller
            conv >> delay;
            if (conv)
              {
-               sleep (delay);
+               sleep (delay*4);
                std::cerr << "Time's up: Killing job because it overran its allowed walltime"
                          << std::endl;
                std::abort ();

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.