2007年6月1日星期五

在Xgrid上运行Gate

1. cluster上有xserve1-xserve11共11个nodes,其中xserve1运行xgrid controller,其他10个nodes运行xgrid agent

2. xserve1上成功安装了Gate 3.1.1在/Applications/Gate下面,包括四个目录CLHEP    gate_v3.1.1     geant4.8.1.p02  root-5.12,分别安装了相应的package,另外有一个script文件:setupgate,用以启动Gate之前设置环境变量。

#!/bin/tcsh
setenv  ROOTSYS "/Applications/Gate/root-5.12/"
setenv G4INSTALL "/Applications/Gate/geant4.8.1.p02/"
setenv G4WORKDIR  "/Applications/Gate/geant4.8.1.p02/"
setenv G4VERSION "8.1"
setenv GATEHOME "/Applications/Gate/gate_v3.1.1"
setenv LD_LIBRARY_PATH "${ROOTSYS}/lib"
setenv DYLD_LIBRARY_PATH "${ROOTSYS}/lib"
set path = ($path ${ROOTSYS}/bin ${GATEHOME}/bin/Darwin-g++)
source /Applications/Gate/gate_v3.1.1/env_gate.csh

3. 在本地desktop上运行xgrid:

3.1 创建临时文件夹 tmp_input,把所有.mac文件(以及GateMaterials.db 和 Materials.xml)都放进去;
3.2 创建临时文件夹 tmp_output,准备放xgrid传回来的输出文件;
3.3 编写script文件xgrid_job1:

#!/bin/tcsh
source /Applications/Gate/setupgate
Gate < mosaic.mac

3.4 运行

 xgrid -h xserve1.local -p password -in tmp_input -out tmp_output -job run xgrid_job1

3.5 结束后到tmp_output检查结果。


1 条评论:

时间 2007年10月3日 14:30 , Anonymous 匿名 说...

Hello,

I am using GATE to do a system design of a new scanner and want to join you guy. I want to run the simulation in a computer cluster. Is there any recipe for the installation in a cluster? I don't have much experience about runing GATE in a cluster. In the user guide, there is some information about running GATE in Cluster mode. It seems that I must have three components: job splitter, file merger and a cluster aware version of GATE. I'm a little bit confused about whether these three components should be installed in a cluster or a pc used to submit jobs.

Thanks,
Jonathan
kimkam007@gmail.com

 

发表评论

订阅 博文评论 [Atom]

<< 主页