Znn3bq.jpeg
查看: 990  |  回复: 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 的主题更新
    最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
    [考研] 291求调剂 +10 关忆北. 2026-04-09 11/550 2026-04-12 00:45 by xuxiang
    [考研] 0854调剂 +8 长弓傲 2026-04-11 9/450 2026-04-11 21:44 by 蓝云思雨
    [考研] 求调剂 +11 翩翩一书生 2026-04-09 11/550 2026-04-11 19:57 by 逆水乘风
    [考研] 电子信息270求调剂 +14 terminal469 2026-04-07 14/700 2026-04-11 19:44 by laoshidan
    [考研] 087100初试311求调剂 +4 任雅琴 2026-04-09 4/200 2026-04-11 10:33 by zhq0425
    [考研] 一志愿211,化学学硕,310分,本科重点双非,求调剂 +17 努力奋斗112 2026-04-06 20/1000 2026-04-11 00:31 by wangjihu
    [考研] 材料与化工调剂 +12 否极泰来2026 2026-04-10 13/650 2026-04-11 00:28 by wangjihu
    [考研] 化学工程与技术324调剂 +23 孙常华 2026-04-09 25/1250 2026-04-11 00:07 by 骑牛渡寒江
    [考研] 本科西工大 324求调剂 +4 wysyjs25 2026-04-10 4/200 2026-04-10 20:00 by 来看流星雨10
    [考研] 一志愿矿大,材料工程专硕314分,0856可调都可以 +15 无懈可击的巨人 2026-04-09 15/750 2026-04-10 18:10 by hmn_wj
    [考研] 一志愿沪9,326生物学求相关专业调剂 +4 刘墨墨 2026-04-09 4/200 2026-04-10 12:07 by pengliang8036
    [考研] 085601初试330分找调剂 +10 流心奶黄包l 2026-04-09 10/500 2026-04-10 08:14 by Sammy2
    [考研] 材料专硕322 +14 哈哈哈吼吼吼哈 2026-04-05 14/700 2026-04-09 13:25 by 5268321
    [考研] 318求调剂 +5 李青山山山 2026-04-07 5/250 2026-04-07 18:24 by 蓝云思雨
    [考研] 生物学363调剂求助 +7 fanzhang6666 2026-04-06 9/450 2026-04-07 17:37 by lijunpoly
    [考研] 求调剂到材料 +5 程9915 2026-04-06 5/250 2026-04-06 15:21 by yulian1987
    [考研] 362求调剂一志愿中国石油大学 +4 我要考大 2026-04-06 6/300 2026-04-06 14:11 by 无际的草原
    [考研] 302分 085601求调剂推荐 +11 zyx上岸! 2026-04-05 11/550 2026-04-05 22:13 by dongzh2009
    [考研] 277求调剂 +5 考研调剂lxh 2026-04-05 5/250 2026-04-05 19:03 by chy09050039
    [考研] 272求调剂 +4 电气李 2026-04-05 4/200 2026-04-05 10:41 by lbsjt
    信息提示
    请填处理意见