From d340e2e2d445a30c69cf1f1f19982a067ec1ed6c Mon Sep 17 00:00:00 2001 From: caubet_m Date: Tue, 7 Mar 2023 11:15:33 +0100 Subject: [PATCH] Add GAMS --- Tools/GAMS/README.md | 40 +++++++++++++++++++++++++++++++++ Tools/GAMS/build | 20 +++++++++++++++++ Tools/GAMS/files/variants.rhel7 | 3 +++ 3 files changed, 63 insertions(+) create mode 100644 Tools/GAMS/README.md create mode 100755 Tools/GAMS/build create mode 100644 Tools/GAMS/files/variants.rhel7 diff --git a/Tools/GAMS/README.md b/Tools/GAMS/README.md new file mode 100644 index 0000000..89df8fd --- /dev/null +++ b/Tools/GAMS/README.md @@ -0,0 +1,40 @@ +# How To Install GAMS + +## Download the proper GAMS version + +Download the proper GAMS version from https://www.gams.com/latest/ (notice that older versions are found in the `Previous Distributions` box). +Notice that the **GNU/Linux Systems** version is required for HPC systems. + +## Manual installation of GAMS + +GAMS is shipped through an executable file, which will expand all files into a single directory. + +1. Create a directory for the new version. Example for version 42.3.0: +```bash +mkdir -p /opt/psi/Tools/GAMS/42.3.0 +``` +2. Copy the executable to the new created directory +```bash +mv linux_x64_64_sfx.exe /opt/psi/Tools/GAMS/42.3.0/ +``` +3. Change permissions of the executable accordingly +```bash +chmod +x /opt/psi/Tools/GAMS/42.3.0/linux_x64_64_sfx.exe +``` +4. Execute it to install the software +```bash +cd /opt/psi/Tools/GAMS/42.3.0 +./linux_x64_64_sfx.exe +``` +5. The created subdirectory is created with the pattern: `gams${v_MAJOR}.${V_MINOR}_linux_x64_64_sfx`. Examples: +```bash +/opt/psi/Tools/GAMS/31.1.1/gams31.1_linux_x64_64_sfx +/opt/psi/Tools/GAMS/42.3.0/gams42.3_linux_x64_64_sfx +``` +6. Add the proper version in the variants file and run the build file +```bash +cd ~/buildblocks/Tools/GAMS +echo "GAMS/42.3.0 unstable" >> files/variants.rhel7 +./build 42.3.0 +``` + diff --git a/Tools/GAMS/build b/Tools/GAMS/build new file mode 100755 index 0000000..b961793 --- /dev/null +++ b/Tools/GAMS/build @@ -0,0 +1,20 @@ +#!/usr/bin/env modbuild + +pbuild::add_to_group 'Tools' + +pbuild::prep() { + : +} + +pbuild::configure() { + : +} + +pbuild::compile() { + : +} + +pbuild::install() { + : +} + diff --git a/Tools/GAMS/files/variants.rhel7 b/Tools/GAMS/files/variants.rhel7 new file mode 100644 index 0000000..c5a4005 --- /dev/null +++ b/Tools/GAMS/files/variants.rhel7 @@ -0,0 +1,3 @@ +GAMS/30.3.0 stable +GAMS/31.1.1 stable +GAMS/42.3.0 unstable