Note: In early 2010 Oracle announced it was discontinuing the Sun Cloud project. Since Sunday, March 7, 2010, the network.com web site has been inaccessible
Currently installed is GAMS distribution 22.5 for Solaris 10. Please check the information about the currently supported solvers on that platform. The installation includes these solvers without size restrictions:
The setup supports (any or all of which):
Note: We use the model trnsport from the GAMS model library as an example.
trnsport.gms
) into the working directory directoryrungams.sh
there. This file contains the full command line(s) to be executed, e.g.: gams/gams trnsport.gms lo=3
The entries gams/gams
and lo=3
are mandatory. If your script has several lines, please make sure to save it in Unix Format (LF
and not CR+LF
)
trnsport
and upload your compressed files (trnsport.zip
)The example above submits the jobs sequentially to the GRID engine. If you want parallel submission of multiple jobs, you will need a modified setup:
models
in your working directorymodels
rungams.sh
(below) and your license file gamslice.txt
(if any) into your working directory.zip -9r batch *
Batch
and upload your compressed files (batch.zip
).Here are the input and the output-files of an example (batch).
#!/bin/ksh if [ -f $HOME/.profile ]; then . $HOME/.profile fi LD_LIBRARY_PATH=$HOME/gams:/usr/sfw/lib/amd64:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH PATH=$PATH:$HOME/gams; export PATH for p in models/*.gms do # get the file name without path and extension fn=${p##*/};fn=${fn%.gms}.sh; export fn echo "echo Filename: $fn " > $fn echo "env|grep -i hostname " >>$fn echo "gams/gams ${p} lo=3 " >>$fn chmod 750 $fn qsub -cwd -V $fn done
Notes:
gamslice.txt
), copy it into the working directory and not into the models directory. Also in rungams.sh
change the GAMS call to: echo “gams/gams ${p} lo=3 license = gamslice.txt ” »$fn
In addition to parallel job submission the GAMS Grid Computing Facility also supports parallel model solution, i.e. the generation and submission of models for solutions that can be solved independently. Just follow the instructions in Appendix J of the GAMS User's Guide for more information, how to setup your model. As an example you may use the input and output files for the trnsgrid-model of the GAMS model library.
Each CPU of the Sun Grid has 2 Cores with 2 * 4GB of RAM. Two parallel CPLEX solver threads are supported (with the proper license and a cplex option file). Please check the GAMS/CPLEX solver manual for more information.
HOSTNAME
in *.sh.o*, e.g, e.g.( if grep
is installed) for the batch
example you will something similar to: grep -i hostname *.sh.o* bdmlp_indus89.sh.o25721:HOSTNAME=r133c23z1.network.com cbc_indus89.sh.o25722:HOSTNAME=r129c24z0.network.com chenery.sh.o25723:HOSTNAME=r130c05z0.network.com fuel.sh.o25724:HOSTNAME=r130c25z1.network.com gemmcp.sh.o25725:HOSTNAME=r133c25z1.network.com glpk_indus89.sh.o25726:HOSTNAME=r133c23z0.network.com openpit.sh.o25727:HOSTNAME=r129c26z0.network.com waterx.sh.o25728:HOSTNAME=r133c36z1.network.com
→ This job was running on 8 different CPUs.
For more information about an individual installation of GAMS on the SUN Grid Compute Utility please visit the installation notes.