Znn3bq.jpeg
ÉÇÍ·´óѧº£Ñó¿ÆÑ§½ÓÊܵ÷¼Á
²é¿´: 994  |  »Ø¸´: 1

bjwang

Ìú¸Ëľ³æ (ÕýʽдÊÖ)

[ÇóÖú] wien2kÔËÐнű¾ÈçºÎÐÞ¸Ä--sge£¨openmpi£©?

¹ÙÍøÉϸøµÄ½Å±¾Àý×ÓÊÇtcshµÄScript for "sge" £¬http://www.wien2k.at/reg_user/faq/sge.job ÎÒ´òËãÓÃbashµÄ¡£
ÔÚÍøÉÏÕÒÁ˸öbashÏÂÓÃÔÚsgeÉϵÄwien2k½Å±¾£¬²»ÖªµÀÐèÒªÐÞ¸ÄÄÄЩλÖÿÉÒÔΪ¼ºËùÓã¬ÓÐÓÃsgeµÄͬѧÄÜ·ñÖ¸µãһϡ£ÄÜÌṩ¸öÖ±½Ó¿ÉÓõĸüºÃ£¬Ð»Ð»£¡
#! /bin/bash
#
# Sample wien2k script for use with sge in ITP
# adopted from the tcsh version in wien2k/qsub-job0-sge
#
#   $NSLOTS
#       the number of tasks to be used
#   $TMPDIR/machines
#       a valid machine file to be passed to mpirun
#
# Options passed to qsub (denoted by #$) :
#
# Pass your environment to job
#$ -V
#
# Run in current working directory (in most cases a good idea)
#$ -cwd
# Rename the STDOUT und STDERR Stream to an friendly name
#$ -o job.out
#$ -e job.err

# select a queue
#$ -q dwarfs
#
# How many resources do I need (per slot)
# Lightly overcommit the memory, that it runs on 8GB machine
#$ -l h_vmem=2G,virtual_free=1800G
#
# Selected parallel environment and number of slots/processes
# mpi is needed, although we do not start a mpi job
#$ -pe mpil 6      »»³É#$ -pe ompi  6  £¿
# define the environment, eventually not needed
export WIENROOT="/home/wien2k/wien2k"
export PATH="$WIENROOT:$PATH"
export SCRATCH="/tmp"

# Set internal parallelization code in mkl to only use
# on thread per process.
export OMP_NUM_THREADS=1

# some information
echo "Got $NSLOTS slots." >> job.out
echo "Got $NSLOTS slots." >> job.err

# read the mpi machines files (generated by the sge)
proclist=(`cat $TMPDIR/machines`)
nproc=$NSLOTS
echo $nproc nodes for this job: $proclist

rm .machines

# Convert proclist to one line per slot/k-point.
# In a single queue all nodes have equal performance.
for a in ${proclist
  • }; do
        echo 1:$a >> .machines
    done

    #This line would force the mpi version
    #echo 1:$proclist  >> .machines

    echo 'granularity:1' >>.machines
    echo 'extrafine:1' >>.machines

    # Run your caclulation
    x lapw1 ¨Cp

    [ Last edited by bjwang on 2012-5-16 at 16:10 ]
  • »Ø¸´´ËÂ¥

    » ²ÂÄãϲ»¶

    » ±¾Ö÷ÌâÏà¹Ø¼ÛÖµÌùÍÆ¼ö£¬¶ÔÄúͬÑùÓаïÖú:

    It is a shame for the soul to be first to give way in this life,when thy body does not give way.
    ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû

    bjwang

    Ìú¸Ëľ³æ (ÕýʽдÊÖ)

    ûÓÐͬѧ¸øÐ©½¨ÒéÂð£¿×Ô¼º¶¥Æð£¬Ï£Íû¸÷λ°ï档лл£¡
    It is a shame for the soul to be first to give way in this life,when thy body does not give way.
    2Â¥2012-10-28 09:40:51
    ÒÑÔÄ   »Ø¸´´ËÂ¥   ¹Ø×¢TA ¸øTA·¢ÏûÏ¢ ËÍTAºì»¨ TAµÄ»ØÌû
    Ïà¹Ø°æ¿éÌø×ª ÎÒÒª¶©ÔÄÂ¥Ö÷ bjwang µÄÖ÷Ìâ¸üÐÂ
    ×î¾ßÈËÆøÈÈÌûÍÆ¼ö [²é¿´È«²¿] ×÷Õß »Ø/¿´ ×îºó·¢±í
    [¿¼ÑÐ] 291·Öµ÷¼Á +6 Éϰ¶Ð¡Ó¨¼ÓÓÍ 2026-04-09 7/350 2026-04-14 17:58 by lhj2009
    [¿¼ÑÐ] 367Çóµ÷¼Á +11 hffQAQ 2026-04-09 11/550 2026-04-14 17:48 by lhj2009
    [¿¼ÑÐ] ¸´ÊÔµ÷¼Á +18 »ý¼«ÏòÉÏ£» 2026-04-10 20/1000 2026-04-14 16:11 by zs92450
    [½Ìʦ֮¼Ò] ɽ¶«Ë«·ÇԺУ¿¼ºË³¬¼¶ÎÞµ×Ïߣ¬Áìµ¼ÐÒÔÖÀÖ»ö£¬½ÌʦÔâÑê¿Ö +3 qut2026 2026-04-11 7/350 2026-04-12 20:24 by qut2026
    [¿¼ÑÐ] Ò»Ö¾Ô¸Ö£ÖÝ´óѧ 22408 305·ÖÇóµ÷¼Á +5 °²Ð¡Âúzzz 2026-04-08 5/250 2026-04-12 00:41 by À¶ÔÆË¼Óê
    [¿¼ÑÐ] 352 Çóµ÷¼Á +6 yzion 2026-04-11 8/400 2026-04-11 16:24 by Ã÷Ô´ËʱÓÐ
    [¿¼ÑÐ] 085501»úеר˶ 302·Ö ²»ÌôרҵÇóµ÷¼Á +7 Íôij. 2026-04-09 7/350 2026-04-11 14:37 by luhong1990
    [¿¼ÑÐ] 085600²ÄÁÏÓ뻯¹¤329·ÖÇóµ÷¼Á +16 Ò¶zilin 2026-04-10 16/800 2026-04-11 11:04 by may_ÐÂÓî
    [¿¼ÑÐ] »úеר˶270Çóµ÷¼Á£¬½ÓÊÜ¿çרҵ +12 ÀÏʦ¿´¿´ÎÒ°Éaba 2026-04-09 14/700 2026-04-11 10:21 by laoshidan
    [¿¼ÑÐ] ²ÄÁÏÓ뻯¹¤µ÷¼Á +12 ·ñ¼«Ì©À´2026 2026-04-10 13/650 2026-04-11 00:28 by wangjihu
    [¿¼ÑÐ] Ò»Ö¾Ô¸±±Àí¹¤298Ó¢Ò»Êý¶þÒÑÉϰ¶£¬¸Ðл¸÷λÀÏʦ +14 Reframe 2026-04-10 16/800 2026-04-10 23:07 by caotw2020
    [¿¼ÑÐ] 263ÄÜÔ´¶¯Á¦×¨Ë¶Çóµ÷¼Á +3 ¼Ó´óºÅ·¹ºÐ´ü 2026-04-10 3/150 2026-04-10 22:23 by 286640313
    [¿¼ÑÐ] Ò»Ö¾Ô¸¿ó´ó£¬²ÄÁϹ¤³Ìר˶314·Ö£¬0856¿Éµ÷¶¼¿ÉÒÔ +15 ÎÞи¿É»÷µÄ¾ÞÈË 2026-04-09 15/750 2026-04-10 18:10 by hmn_wj
    [¿¼ÑÐ] ¿¼Ñе÷¼Á-²ÄÁÏÀà-284 +28 Ïë»»ÊÖ»ú²»Ïë½âÊ 2026-04-08 28/1400 2026-04-09 20:08 by µ¹Êý321?
    [¿¼ÑÐ] Çóµ÷¼Á²ÄÁÏ¿ÆÑ§Ó빤³ÌÒ»Ö¾Ô¸985³õÊÔ365·Ö +5 ²Ä»¯Àî¿É 2026-04-08 5/250 2026-04-09 17:00 by Lilly_Li
    [ÂÛÎÄͶ¸å] ÇóÖúÎÄÏ×Ô­ÎÄ 10+3 18500821399 2026-04-08 3/150 2026-04-09 16:56 by ±±¾©À³ÒðÈóÉ«
    [¿¼ÑÐ] ¸´ÊÔµ÷¼Á£¬Ò»Ö¾Ô¸Ö£ÖÝ´óѧ²ÄÁÏÓ뻯¹¤289·Ö +31 ˶ÐǸ° 2026-04-08 31/1550 2026-04-09 16:54 by Delta2012
    [¿¼ÑÐ] 311Çóµ÷¼Á +6 surte 2026-04-08 13/650 2026-04-09 14:00 by surte
    [¿¼ÑÐ] Èí¼þ¹¤³ÌÇóµ÷¼Á22Èí¹¤296·ÖÇóµ÷¼Á£¬½ÓÊÜ¿çµ÷ +4 yangchen2017 2026-04-08 5/250 2026-04-08 21:56 by ÍÁľ˶ʿÕÐÉú
    [¿¼ÑÐ] ÉúÎïѧѧ˶£¬³õÊÔ351·Ö£¬Çóµ÷¼Á +4 ¡­¡«¡¢Íõ¡­¡« 2026-04-08 5/250 2026-04-08 21:49 by limeifeng
    ÐÅÏ¢Ìáʾ
    ÇëÌî´¦ÀíÒâ¼û