Cluster Installation: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 7: Line 7:
In order to setup XDS in cluster mode, forkcolspot and forkintegrate scripts need to be changed to access the gridengine environment and send jobs to different machines. Example scripts are below, need to be changed according to the environment.
In order to setup XDS in cluster mode, forkcolspot and forkintegrate scripts need to be changed to access the gridengine environment and send jobs to different machines. Example scripts are below, need to be changed according to the environment.


<code>
<pre>
<nowiki>#forkcolspot
#forkcolspot


ntask=$1  #total number of jobs
ntask=$1  #total number of jobs
Line 55: Line 55:
wait  #wait for all background processes issued by this shell
wait  #wait for all background processes issued by this shell
rm -f mcolspot.tmp  #this temporary file was generated by xds
rm -f mcolspot.tmp  #this temporary file was generated by xds
rm -rf fork*job*</nowiki>
rm -rf fork*job*
</code>
</pre>


----
----


<code>
<pre>
<nowiki>#forkcolspot_job
#forkcolspot_job


#!/bin/csh
#!/bin/csh
Line 68: Line 68:
set itask=$1
set itask=$1


echo $itask | mcolspot_par</nowiki>
echo $itask | mcolspot_par
</code>
</pre>


----
----




<code>
<pre>
<nowiki>#forkintegate
#forkintegate


fframe=$1 #id number of the first image
fframe=$1 #id number of the first image
Line 142: Line 142:
wait  #wait for all background processes issued by this shell
wait  #wait for all background processes issued by this shell
rm -f mintegrate.tmp  #this temporary file was generated by mintegrate
rm -f mintegrate.tmp  #this temporary file was generated by mintegrate
rm -rf fork*job*</nowiki>
rm -rf fork*job*
</code>
</pre>


<code>
<pre>
<nowiki>#forkintegrate_job
#forkintegrate_job


#!/bin/bash
#!/bin/bash
Line 157: Line 157:
set host=`uname -a | awk '{print $2}'`
set host=`uname -a | awk '{print $2}'`
echo $image1 $nitask $itask $nbatask $host >> jobs.log
echo $image1 $nitask $itask $nbatask $host >> jobs.log
echo $image1 $nitask $itask $nbatask | mintegrate_par</nowiki>
echo $image1 $nitask $itask $nbatask | mintegrate_par
</code>
</pre>




38

edits