24小时热门版块排行榜    

Znn3bq.jpeg
查看: 991  |  回复: 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 –p

    [ 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 的主题更新
    最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
    [考研] 286求调剂 +25 Faune 2026-04-06 25/1250 2026-04-11 23:23 by labixiaoqiao
    [硕博家园] 有没有学校材料专业收跨调(一志愿085410) +6 momo(上岸版) 2026-04-06 9/450 2026-04-11 22:38 by wj165256
    [考研] 343求调剂 +9 王国帅 2026-04-10 9/450 2026-04-11 20:31 by dongdian1
    [考研] 268求调剂 +3 你好tg 2026-04-05 5/250 2026-04-11 16:45 by Delta2012
    [考研] 求调剂,一志愿大连理工大学354分 +5 雨声余生 2026-04-11 6/300 2026-04-11 16:12 by 雨声余生
    [考研] 298求调剂 +5 残荷新柳 2026-04-07 5/250 2026-04-11 11:02 by 紫曦紫棋
    [考研] 0854求调剂 +7 assdll 2026-04-05 7/350 2026-04-11 10:34 by Delta2012
    [考研] 288求调剂 +15 代fish 2026-04-09 16/800 2026-04-11 10:26 by wwj2530616
    [考研] 一志愿985机械学硕380求调剂 +5 关关雎鸠10 2026-04-11 5/250 2026-04-11 10:10 by 知念。A
    [考研] 一志愿京区985,085401,与本科专业一致,电子信息工程, +4 阳光开朗的男孩 2026-04-10 4/200 2026-04-10 18:27 by shenrf
    [考研] 085404 298分求调剂 +10 呼啦呼啦呼呼呼 2026-04-10 11/550 2026-04-10 16:44 by wangy0907
    [考研] 本科211 工科085400 280分求调剂 可跨专业 +3 LZH(等待调剂中 2026-04-09 3/150 2026-04-09 21:29 by wutongshun
    [考研] 材料专硕初试分332一志愿西北工业大学, +12 故人?? 2026-04-09 12/600 2026-04-09 18:34 by Ccclqqq
    [考研] 085600材料与化工301分求调剂院校 +33 刺痛jk 2026-04-06 34/1700 2026-04-09 18:31 by hy861222
    [考研] 求机械专硕297第二批调剂 +5 拾柒12。 2026-04-08 5/250 2026-04-09 16:43 by 允当适度
    [考研] 求考研材料调剂 +3 材化李可 2026-04-07 3/150 2026-04-08 00:21 by JourneyLucky
    [考研] 材料工程专业日语生求调剂 +9 111623 2026-04-07 9/450 2026-04-07 23:31 by 一只好果子?
    [考研] 085100建筑学 寻求跨专业调剂 一志愿南大294分 校级省级国家级奖项若干 踏实肯干 +3 1021075758 2026-04-06 4/200 2026-04-07 09:23 by 蓝云思雨
    [考研] 机械专硕274求调剂,不挑专业学校 +6 泛泛2333 2026-04-05 8/400 2026-04-06 18:06 by 泛泛2333
    [考研] 求调剂 +7 张.1 2026-04-05 7/350 2026-04-05 20:40 by 啵啵啵0119
    信息提示
    请填处理意见