]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fiddling with a multiplier for the wait time doesn't seem to work. Rather use what...
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 17 Dec 2010 14:10:20 +0000 (14:10 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 17 Dec 2010 14:10:20 +0000 (14:10 +0000)
git-svn-id: https://svn.dealii.org/trunk@22992 0785d39b-7218-0410-832d-ea1e28bc413d

tests/Makefile.rules
tests/tests.h

index e597c11d28031eef9cbc3635b2dbcd8ea65a6361..ec3d9a301a9cd5b04066e4d66e8c764c960c2349 100644 (file)
@@ -84,7 +84,7 @@ endif
        @echo =====Running======= $<
        @echo Running > $(dir $@)/status
        @$(ULIMIT) -t $(if $(ULIMIT_LIMIT),$(ULIMIT_LIMIT),300) ; \
-         export WALLTIME=$(if $(ULIMIT_LIMIT),$(ULIMIT_LIMIT),300) ; \
+         export WALLTIME=3600 ; \
          ./$< ; \
          if test ! $$? = 0 ; then rm $@ ; false ; fi
        @perl -pi $(normalize)  $@
index 4427d4087ec1b10f6b46ac37b496834854dd59f1..e7dcacc4fe006242e56c38886da904d41c23ce15 100644 (file)
@@ -22,7 +22,6 @@
 #include <base/exceptions.h>
 #include <base/utilities.h>
 #include <base/thread_management.h>
-#include <base/multithread_info.h>
 #include <cmath>
 #include <fstream>
 #include <sstream>
@@ -116,9 +115,7 @@ set_grain_sizes;
 
 
 // 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 -- let's take 4*n_cpus as a factor). this makes
+// 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
@@ -142,7 +139,7 @@ struct DeadlockKiller
            conv >> delay;
            if (conv)
              {
-               sleep (delay*multithread_info.n_cpus*4);
+               sleep (delay);
                std::cerr << "Time's up: Killing job because it overran its allowed walltime"
                          << std::endl;
                std::abort ();
@@ -158,8 +155,9 @@ struct DeadlockKiller
                                           // environment variable is
                                           // not set, so assume
                                           // infinite wait time and
-                                          // simply quite this thread
-         ;
+                                          // simply quit this thread
+         {
+         }
       }
 
   public:

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.