zoukankan      html  css  js  c++  java
  • 串行程序PBS脚本

    #!/bin/bash
    #PBS -N EXCMG32

    #PBS -l vmem=63gb 

    #PBS -q smp
    #PBS -l nodes=1:ppn=1
    #PBS -j oe
    #PBS -M kjpan@yahoo.cn
    echo "This jobs is on " $PBS_O_HOST
    cd $PBS_O_WORKDIR
    ifort Console1.f90 -heap-arrays 1024 -mkl -openmp -O3 -fast -parallel -ipo -o main32 && ./main32>32.results

    NOTE: For AVX support, compile with the -xHOST option. Note that -xHOST alone does not enable aggressive optimization, so compilation with -O3 is also suggested. The -fast flag invokes -xHOST, but should be avoided since it also turns on interprocedural optimization (-ipo), which may cause problems in some instances.

    Remark:

    1)、 #PBS -l vmem=63gb 申请大内存

    2)、  -heap-arrays 1024 避开linux中“Stack Overflows in Fortran” 或采用命令:   ulimit -s unlimited

    3)、Vim常用4操作:Esc(切换命令模式)   Insert(切换插入模式)   :wq(退出并保存)   :q!(退出不保存)  

                             gg:回到文件首行, G:回到文件尾行,  dd:删除光标所在行, D:删除光标到行尾的内容
    4)、PBS常用4命令:pbsnodesqstatqsubqdel
    5)、Linux常用命令:ssh, free, passwd, mkdir, touch, rm -rf, mv

    Problem : compiling with -fast or -static causes a linker error "ld: cannot find -lm"

    Possible workarounds are:
    1) Specify library location using -L option
    ifort -static hello.f90 -L /usr/lib/x86_64-redhat-linux5E/lib64/

    2) Add the location of libraries to LIBRARY_PATH variable

  • 相关阅读:
    【Beta阶段】第一次Scrum Meeting
    【Beta阶段】第二次Scrum Meeting
    【Beta阶段】第三次Scrum Meeting
    [BUAA软工]Alpha阶段事后分析
    [BUAA软工]Alpha阶段测试报告
    [北航软工]团队贡献分规则
    Windows Server 2008 R2之二从介质安装 AD DS
    Windows Server 2008 R2之一活动目录服务部署
    DC84问
    获取命令行指定参数
  • 原文地址:https://www.cnblogs.com/pankejia/p/3192560.html
Copyright © 2011-2022 走看看