Environment used for compilation and running code on various machines. The environments are defined as separate machine files with an environment in the format "env.(hostname).(environment).sh"
The script getenv will return an environment fitting to the system. By
default the system selects the gnu environment. If no environment file
matches the hostname then the default environment is returned
(env.default.sh).
Arguments:
-hhelp-eenvironment. Examples:-e cray,-e gnu.4.9.3-llist supported systems
Let's assume the following files are available in the environment folder:
- env.daint.pgi.sh
- env.daint.cray.sh
- env.kesch.gnu.sh
- env.kesch.cray.sh
- env.kesch.gnu.4.9.3.sh
And let's assume you are on host daint and execute the getenv script:
- Requesting
./getenvwill returnenv.daint.gnu.sh - Requesting
./getenv -e pgiwill returnenv.daint.pgi.sh
If you are on kesch:
- Requesting
./getenvwill returnenv.kesch.gnu.sh - Requesting
./getenv -e gnu.4.9.3will returnenv.kesch.gnu.4.9.3.sh