Hi,

We have a multiprocessor ia64 machine that is being used for structure
calculations in xplor.  However, I was unable to convince xplor to use
multiple processors using the -num_threads option.  I hacked the xplor
shell script slightly so that you can use the -parallel option with a
multiprocessor box.  Basically, if the script encounters a machine name
'localhost' in the machines file, it will spawn a local job using /bin/sh
rather than a remote job using rsh/ssh.  This allows me to run parallel
structure calculations on a multiprocessor box using the same semantics
and xplor scripts as a parallel computation.

I have attached a patch file with the change to the xplor script.
Out of curiosity, is there another way to do this?

Thanks,
-Greg Zornetzer
[email protected]
-------------- next part --------------
--- bin/xplor.orig      2005-12-11 23:30:37.000000000 -0600
+++ bin/xplor   2005-12-11 23:50:11.000000000 -0600
@@ -409,7 +409,12 @@
     if [ "$inputFile" != "" ]; then
        cmd="$cmd < `pwd`/$inputFile"
     fi
-    $rsh $machine $cmd &
+
+    if [ "$machine" = "localhost" ]; then
+        /bin/sh $cmd &
+    else
+        $rsh $machine $cmd &
+    fi
     processes="$processes $!"
     count=`expr $count + 1`
 done

Reply via email to