Set up model environment : Différence entre versions

Un article de Informaticiens département des sciences de la Terre et l'atmosphère
Aller à: navigation, charcher
m
m
Ligne 6: Ligne 6:
  
 
#Allow 'ssh $TRUE_HOST' without typing password: <br> &nbsp; &nbsp; <span style="font-weight: bold;">cd ~/.ssh</span><br>Only if there is '''no(!)''' file 'id_rsa.pub' create it with:<br> <span style="font-weight: bold;">&nbsp;&nbsp; ssh-keygen</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (press just 'Enter' whenever asked a question, 3 times) <br>then<br> &nbsp; &nbsp; <span style="font-weight: bold;">cat id_rsa.pub &gt;&gt; authorized_keys2</span> &lt;span style="font-weight: bold;" /&gt; <br><br>  
 
#Allow 'ssh $TRUE_HOST' without typing password: <br> &nbsp; &nbsp; <span style="font-weight: bold;">cd ~/.ssh</span><br>Only if there is '''no(!)''' file 'id_rsa.pub' create it with:<br> <span style="font-weight: bold;">&nbsp;&nbsp; ssh-keygen</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (press just 'Enter' whenever asked a question, 3 times) <br>then<br> &nbsp; &nbsp; <span style="font-weight: bold;">cat id_rsa.pub &gt;&gt; authorized_keys2</span> &lt;span style="font-weight: bold;" /&gt; <br><br>  
#Create directories for running CRCM5.<br>This is different depending on the machine on which you are.<br>Create directory/link for the execution directory (where the model will be running):<br>&nbsp; &nbsp; &nbsp; &nbsp; '''mkdir ~/MODEL_EXEC_RUN'''<br>&nbsp;&nbsp;&nbsp; On '''guillimin''':<br>'''&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; mkdir -p /sb/project/xgk-345-ab/${USER}/EXECDIR<br>&nbsp; &nbsp; &nbsp; &nbsp; ln -s /sb/project/xgk-345-ab/${USER}/EXECDIR ~/MODEL_EXEC_RUN/localhost<br>&nbsp; &nbsp; &nbsp; &nbsp; ln -s /sb/project/xgk-345-ab/${USER}/EXECDIR ~/MODEL_EXEC_RUN/guillimin<br>'''&nbsp;&nbsp;&nbsp; On '''marvin''':<br>'''&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; mkdir -p /local/fiber1/${USER}/EXECDIR<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; ln -s /local/fiber1/${USER}/EXECDIR ~/MODEL_EXEC_RUN/headnode'''<br><br>Create directory/link for the listings:<br>'''&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; mkdir ~/listings<br>&nbsp;&nbsp;&nbsp; '''On '''guillimin''':'''<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; mkdir -p /sb/project/xgk-345-ab/${USER}/Listings<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; ln -s /sb/project/xgk-345-ab/${USER}/Listings ~/listings/localhost<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; ln -s /sb/project/xgk-345-ab/${USER}/Listings ~/listings/guillimin<br>'''&nbsp;&nbsp;&nbsp; On '''marvin''':<br>'''&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; mkdir -p /local/sata2/${USER}/Listings<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; ln -s /local/sata2/${USER}/Listings ~/listings/headnode'''<br>
+
#Create directories for running CRCM5.<br>This is different depending on the machine on which you are.<br>Create directory/link for the execution directory (where the model will be running):<br>&nbsp; &nbsp; &nbsp; &nbsp; '''mkdir ~/MODEL_EXEC_RUN'''<br>&nbsp;&nbsp;&nbsp; On '''guillimin''':<br>'''&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; mkdir -p /sb/project/xgk-345-ab/${USER}/EXECDIR<br>&nbsp; &nbsp; &nbsp; &nbsp; ln -s /sb/project/xgk-345-ab/${USER}/EXECDIR ~/MODEL_EXEC_RUN/localhost<br>&nbsp; &nbsp; &nbsp; &nbsp; ln -s /sb/project/xgk-345-ab/${USER}/EXECDIR ~/MODEL_EXEC_RUN/guillimin<br>'''&nbsp;&nbsp;&nbsp; On '''marvin''':<br>'''&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; mkdir -p /local/fiber1/${USER}/EXECDIR<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; ln -s /local/fiber1/${USER}/EXECDIR ~/MODEL_EXEC_RUN/headnode'''<br><br>Create directory/link for the listings:<br>'''&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; mkdir ~/listings<br>&nbsp;&nbsp;&nbsp; '''On '''guillimin''':'''<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; mkdir -p /sb/project/xgk-345-ab/${USER}/Listings<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; ln -s /sb/project/xgk-345-ab/${USER}/Listings ~/listings/localhost<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; ln -s /sb/project/xgk-345-ab/${USER}/Listings ~/listings/guillimin<br>'''&nbsp;&nbsp;&nbsp; On '''marvin''':<br>'''&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; mkdir -p /local/sata2/${USER}/Listings<br>&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; ln -s /local/sata2/${USER}/Listings ~/listings/headnode'''<br><br>The following you only have to do on guillimin:<br>  
#Set project name of which to use the core allocation<br>You will have to create a file in your HOME on guillimin which is called: <br>&nbsp; '''${HOME}/.CLUMEQ_accnt '''<br> <br>This file has to contain 1 variable called 'RAPid', set to the RAPid of the project under which you want to submit your job. <br>For people working for or having their account via Pierre Gauthier, Laxmi Sushama, René Laprise or Peter Yau you will have to set in the above file: <br>&nbsp; '''RAPid=xgk-345-ac '''<br> <br>Have a look at my file if you like: <br>&nbsp; ~winger/.CLUMEQ_accnt <br>  
+
#Set project name of which to use the core allocation<br>You will have to create a file in your HOME on guillimin which is called: <br>&nbsp; '''${HOME}/.CLUMEQ_accnt '''<br> <br>This file has to contain 1 variable called 'RAPid', set to the RAPid of the project under which you want to submit your job. <br>For people working for or having their account via Pierre Gauthier, Laxmi Sushama, René Laprise or Peter Yau you will have to set in the above file: <br>&nbsp; '''RAPid=xgk-345-ac '''<br> <br>Have a look at my file if you like: <br>&nbsp; ~winger/.CLUMEQ_accnt <br><br>  
 
#Open your HOME to the world<br>If you do want my or other help I suggest you open your HOME to the world:<br>&nbsp;&nbsp;&nbsp; '''chmod 755 /home/$USER'''<br>
 
#Open your HOME to the world<br>If you do want my or other help I suggest you open your HOME to the world:<br>&nbsp;&nbsp;&nbsp; '''chmod 755 /home/$USER'''<br>
  
 
<br>
 
<br>

Version depuis le 7 d'août 2013 à 21:32

Set up the model environment

You have to do this only once.
But before you set up the model environment, make sure you have the right ARMNLIB resp. SSM environment.


  1. Allow 'ssh $TRUE_HOST' without typing password:
        cd ~/.ssh
    Only if there is no(!) file 'id_rsa.pub' create it with:
       ssh-keygen         (press just 'Enter' whenever asked a question, 3 times)
    then
        cat id_rsa.pub >> authorized_keys2 <span style="font-weight: bold;" />

  2. Create directories for running CRCM5.
    This is different depending on the machine on which you are.
    Create directory/link for the execution directory (where the model will be running):
            mkdir ~/MODEL_EXEC_RUN
        On guillimin:
            mkdir -p /sb/project/xgk-345-ab/${USER}/EXECDIR
            ln -s /sb/project/xgk-345-ab/${USER}/EXECDIR ~/MODEL_EXEC_RUN/localhost
            ln -s /sb/project/xgk-345-ab/${USER}/EXECDIR ~/MODEL_EXEC_RUN/guillimin
        On marvin:
            mkdir -p /local/fiber1/${USER}/EXECDIR
            ln -s /local/fiber1/${USER}/EXECDIR ~/MODEL_EXEC_RUN/headnode


    Create directory/link for the listings:
            mkdir ~/listings
       
    On guillimin:
            mkdir -p /sb/project/xgk-345-ab/${USER}/Listings
            ln -s /sb/project/xgk-345-ab/${USER}/Listings ~/listings/localhost
            ln -s /sb/project/xgk-345-ab/${USER}/Listings ~/listings/guillimin
        On marvin:
            mkdir -p /local/sata2/${USER}/Listings
            ln -s /local/sata2/${USER}/Listings ~/listings/headnode


    The following you only have to do on guillimin:
  3. Set project name of which to use the core allocation
    You will have to create a file in your HOME on guillimin which is called:
      ${HOME}/.CLUMEQ_accnt

    This file has to contain 1 variable called 'RAPid', set to the RAPid of the project under which you want to submit your job.
    For people working for or having their account via Pierre Gauthier, Laxmi Sushama, René Laprise or Peter Yau you will have to set in the above file:
      RAPid=xgk-345-ac

    Have a look at my file if you like:
      ~winger/.CLUMEQ_accnt

  4. Open your HOME to the world
    If you do want my or other help I suggest you open your HOME to the world:
        chmod 755 /home/$USER