24小时热门版块排行榜    

查看: 2412  |  回复: 1

wanglianli136

铁杆木虫 (著名写手)

[求助] 求助lsf集群上提交lammps任务的脚本

谁有在lsf集群上并行lammps任务的脚本啊?请给我参考一下吧,谢谢

#!/bin/bash


# Simple LSF script for submitting multiple parallel lammps jobs

#-------------------------------------------------------
#-------------------------------------------------------
#
#         <------ Setup Parameters ------>
#
#BSUB -J chetanF
#BSUB -n 4
#BSUB -N -u cmahajan@che.utexas.edu
#BSUB -q normal
#BSUB -o stdout.o%J
#BSUB -e stderr.o%J
#BSUB -W 2:00
#
# Usage:
#        #BSUB -n
#        #BSUB -W [hours:]minutes to specify run time limit
#         #BSUB -J
#         #BSUB -q
#         #BSUB -o
#           NOTE: The macro %J encodes the job id.
#
cd $LS_SUBCWD
set echo
ibrun ./lmp_lonestar
# lonestar = TACC Dell cluster

SHELL = /bin/sh
.IGNORE:

# System-specific settings

# NOTE: you may need to invoke (by entering in your job-submission script
#  or in your .cshrc file)
#   module load libraries/fftw-2.1.5-openmpi-1.1.2-ofed-intel-9.1
# before running LAMMPS.
#
# Additional Note:
# Even when using the OpenMPI build 10.0,
# DO NOT USE: module load libraries/fftw-2.1.5_openmpi-1.2.4_ofed_intel-10.0-f025-c025
# This build of FFTW exhibits fatal memory errors in long runs.

FFTW = /apps/x86_64/libraries/fftw/openmpi-1.1.2-ofed-intel-9.1/fftw-2.1.5

CC =                mpicxx
CCFLAGS =        -O -DFFT_FFTW -I${TACC_FFTW2_INC}
DEPFLAGS =        -M
LINK =                mpicxx
LINKFLAGS =        -O -L${TACC_FFTW2_LIB}
USRLIB =        -lfftw -lstdc++
SYSLIB =        -lm
SIZE =                size

# Link rule

$(EXE):        $(OBJ)
        $(LINK) $(LINKFLAGS) $(OBJ) $(USRLIB) $(SYSLIB) -o $(EXE)
        $(SIZE) $(EXE)

# Library target

lib:    $(OBJ)
        $(ARCHIVE) $(ARFLAGS) $(EXE) $(OBJ)

# Compilation rules

%.o:%.cpp
        $(CC) $(CCFLAGS) -c $<

%.d:%.cpp
        $(CC) $(CCFLAGS) $(DEPFLAGS) $< > $@

# Individual dependencies

DEPENDS = $(OBJ:.o=.d)
include $(DEPENDS)
回复此楼

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

苍穹1989

金虫 (正式写手)

拿分走人,楼主不要小气哦!
等待。。。
2楼2012-11-09 12:17:27
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 wanglianli136 的主题更新
信息提示
请填处理意见