How to use gams¶
Software
|
Version
|
Cluster
|
---|---|---|
gams
|
25.1.3
|
Dardel
|
gams module¶
To load the GAMS module
ml PDC/21.11
ml gams/25.1.3
Running using the queue system¶
Here is an example job script, job.sh, for running gams
#!/bin/bash
ml PDC/21.11
ml gams/25.1.3
gams inputfile.gms > outputfile.lst
Which can be submitted with
sbatch --nodes=1 -t 00:30:00 -p main -A projectname ./job.sh
where projectname needs to be replaced with a valid compute time allocation.
Running interactively¶
To run on an interactive node, you can allocate a node
salloc --nodes=1 -t 00:30:00 -p main -A projectname
and then run your program with the commands
srun gams inputfile.gms > outputfile.lst
License file¶
Without a valid GAMS license the system will operate as a free demo system. If you own a single-user license, then you can place it in the Private subdirectory of your home folder and tell GAMS which license to use with the command line argument “license”, for example:
gams license=$HOME/Private/gams-lic.txt inputfile.gms > outputfile.lst
Make sure that the license file is not readable by other users. If you own a multi-user license, then you need to use specific file access groups to control access.
Disclaimer¶
PDC takes no responsibility for the correctness of results produced with the binaries. Always evaluate the binaries against known results for the systems and properties you are investigating before using the binaries for production jobs.