Changeset 2063 for trunk/tsuite
- Timestamp:
- 05/14/08 07:35:20 (8 months ago)
- Location:
- trunk/tsuite
- Files:
-
- 2 modified
-
auto/run_parallel.pl (modified) (4 diffs)
-
slow/run_parallel.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tsuite/auto/run_parallel.pl
r1977 r2063 10 10 # run_parallel.pl cloudy.exe 16 11 11 # 12 # where the first parameter is the name of the Cloudy executable. It 13 # should either be in your search path, or the full pathname should 14 # be used. The second number is the number of processors to use. It 15 # can be any number >= 0. However, using numbers larger than roughly 12 # where the first parameter is the name of the Cloudy executable. 13 # If the parameter is completely omitted (or a "." is entered), it 14 # will default to "../../source/cloudy.exe". You can also supply the 15 # name of one of the sys_xxx directories, in which case the path will 16 # default to "../../source/sys_xxx/cloudy.exe". In all other cases 17 # cloudy.exe should either be in your search path, or the full pathname 18 # should be used. The second number is the number of processors to use. 19 # It can be any number >= 0. However, using numbers larger than roughly 16 20 # 16 will not give any speed advantage since the time will then be 17 21 # set by the longest running test sims. The second number is optional … … 34 38 # Peter van Hoof 35 39 36 if( "$ARGV[0]" eq "" ) { 37 print "The path to the cloudy binary must be supplied as the first parameter to this script...\n"; 38 exit; 40 if( -d "../../source/$ARGV[0]" ) { 41 $exe = "../../source/$ARGV[0]/cloudy.exe"; 42 } 43 else { 44 $exe = "$ARGV[0]"; 39 45 } 40 46 … … 70 76 } 71 77 78 if( $nproc > 0 && ! -e $exe ) { 79 print "No executable is found at ==$exe==\n"; 80 print "A correct path to the cloudy binary must be supplied as the first parameter to this script.\n"; 81 exit; 82 } 83 72 84 # clean up first 73 85 if( -e "./clean_tsuite.pl" ) { … … 94 106 } 95 107 $rules = "$rules$output: $input\n"; 96 $rules = "$rules\t$ ARGV[0]< $input > $output 2> $output2\n"108 $rules = "$rules\t$exe < $input > $output 2> $output2\n" 97 109 } 98 110 open( foo, ">Makefile" ); -
trunk/tsuite/slow/run_parallel.pl
r2033 r2063 10 10 # run_parallel.pl cloudy.exe 16 11 11 # 12 # where the first parameter is the name of the Cloudy executable. It 13 # should either be in your search path, or the full pathname should 14 # be used. The second number is the number of processors to use. It 15 # can be any number >= 0. However, using numbers larger than roughly 16 # 16 will not give any speed advantage since the time will then be 17 # set by the longest running test sims. The second number is optional 18 # and will default to the number of processosrs on your computer 19 # (this number is only correctly determined under Linux and Windows, 20 # it will be set to 1 on other systems). 12 # where the first parameter is the name of the Cloudy executable. 13 # If the parameter is completely omitted (or a "." is entered), it 14 # will default to "../../source/cloudy.exe". You can also supply the 15 # name of one of the sys_xxx directories, in which case the path will 16 # default to "../../source/sys_xxx/cloudy.exe". In all other cases 17 # cloudy.exe should either be in your search path, or the full pathname 18 # should be used. The second number is the number of processors to use. 19 # It can be any number >= 0. The second number is optional and will 20 # default to the number of processosrs on your computer (this number is 21 # only correctly determined under Linux and Windows, it will be set to 22 # 1 on other systems). 21 23 # 22 24 # If the number of processors is set to 0, the script will exit after … … 34 36 # Peter van Hoof 35 37 36 if( "$ARGV[0]" eq "" ) { 37 print "The path to the cloudy binary must be supplied as the first parameter to this script...\n"; 38 exit; 38 if( -d "../../source/$ARGV[0]" ) { 39 $exe = "../../source/$ARGV[0]/cloudy.exe"; 40 } 41 else { 42 $exe = "$ARGV[0]"; 39 43 } 40 44 … … 70 74 } 71 75 76 if( $nproc > 0 && ! -e $exe ) { 77 print "No executable is found at ==$exe==\n"; 78 print "A correct path to the cloudy binary must be supplied as the first parameter to this script.\n"; 79 exit; 80 } 81 72 82 # clean up first 73 83 if( -e "./clean_tsuite.pl" ) { … … 94 104 } 95 105 $rules = "$rules$output: $input\n"; 96 $rules = "$rules\t$ ARGV[0]< $input > $output 2> $output2\n"106 $rules = "$rules\t$exe < $input > $output 2> $output2\n" 97 107 } 98 108 open( foo, ">Makefile" );
