Set up model environment

Un article de Informaticiens département des sciences de la Terre et l'atmosphère
Version depuis le 14 de julliette 2016 à 16:08 par Katja (Discuter | changes)
Aller à: navigation, charcher

Set up the model environment

You have to do this only once.
But before you set up the model environment on guillimin or colosse, make sure you have set up the  SSM environment. If you have not done this already, click here for instructions.
On the UQAM servers this has already been done by Nadjet during the creation of your account.

Set up the model 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_keys

  2. Only on guillimin create the "machine name" guillimin:

    cat >> ~/.ssh/config << EOF
    #
    Host guillimin
    Hostname localhost
    EOF

  3. Create directories for running CRCM5:
    This is different depending on the machine on which you are.

    3.1 Create directory/link for the execution directory (where the model will be running):
            mkdir ~/MODEL_EXEC_RUN

        On
    guillimin:
        For people working for or having their account via
    Pierre Gauthieryour project space is:
          
    PROJECT_SPACE=/gs/project/xgk-345-aa
        If you are with
    Laxmi Sushamayour project space is:
          
    PROJECT_SPACE=/gs/project/ugh-612-aa
         If you are with
    René Lapriseor Julie Theriaultyour project space is:
          
    PROJECT_SPACE=/gs/project/bgx-133-aa
        If you are with another PI, ask your PI for your project space.

       On the UQAM servers:

        Then create the following directory and symbolic link:
            mkdir -p ${PROJECT_SPACE}/${USER}/EXECDIR
            ln -s ${PROJECT_SPACE}/${USER}/EXECDIR ~/MODEL_EXEC_RUN/${TRUE_HOST}

    3.2 Create directory/link for the listings:
    While the model is running, all listing go into ~/listings/${TRUE_HOST}.
    But at the end of each job all listings get zipped and transfered to Arch mach in your Archdir as specified in your 'configexp.dot.cfg'.  Unless, of course, something went wrong...

            mkdir ~/listings

       
    On guillimin:
            mkdir -p ${PROJECT_SPACE}/${USER}/Listings
            ln -s ${PROJECT_SPACE}/${USER}/Listings ~/listings/''
    ${TRUE_HOST}

        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:
  4. 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 you will have to set in the above file:
       RAPid=xgk-345-ae
    If you are with Laxmi Sushama set:
       RAPid=ugh-612-ac
    or if you are with René Laprise you will have to set:
       RAPid=bgx-133-ab
    If you are with another PI, ask your PI for the "job accounting number".

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