Skip to content

fthaler/environment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6c96d3c · Dec 15, 2017

History

19 Commits
Oct 17, 2017
Oct 27, 2017
Oct 27, 2017
Oct 27, 2017
Oct 16, 2017
Dec 15, 2017
Dec 15, 2017
Dec 15, 2017
Dec 15, 2017
Nov 27, 2017
Oct 18, 2017
Oct 17, 2017

Repository files navigation

Environment

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"

Usage

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:

  • -h help
  • -e environment. Examples: -e cray, -e gnu.4.9.3
  • -l list supported systems

Examples

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 ./getenv will return env.daint.gnu.sh
  • Requesting ./getenv -e pgi will return env.daint.pgi.sh

If you are on kesch:

  • Requesting ./getenv will return env.kesch.gnu.sh
  • Requesting ./getenv -e gnu.4.9.3 will return env.kesch.gnu.4.9.3.sh