-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 01/07/14 10:27, Christopher Samuel wrote:

> then all the applications are in /usr/local

To quickly qualify that, our naming scheme is:

/usr/local/$application/$version-$compiler/

We name modules as:

$application-$compiler/$version

so someone can do:

module load gromacs-intel

and get the latest version of Gromacs built with the Intel compilers.

Then we can do these tricks like pull values out in relatively generic
module files thus:

[...]
set ver [lrange [split [ module-info name ] / ] 1 1 ]
set name [lrange [split [ module-info name ] / ] 0 0 ]
set subname [lrange [split $name - ] 0 0 ]
set compiler [lrange [split $name - ] 1 1 ]

if { ![ is-loaded $compiler ] } {
  module load $compiler
}

prepend-path PATH /usr/local/$subname/$ver-$compiler/bin
[...]

:-)

- -- 
 Christopher Samuel        Senior Systems Administrator
 VLSCI - Victorian Life Sciences Computation Initiative
 Email: sam...@unimelb.edu.au Phone: +61 (0)3 903 55545
 http://www.vlsci.org.au/      http://twitter.com/vlsci

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlOyAisACgkQO2KABBYQAh9xMQCfTxKzTw7fDqpH8JxaSf2IY6N/
WuQAn3Y9Uyze6hXCe7cGwvGicimVnktq
=xBDt
-----END PGP SIGNATURE-----
_______________________________________________
Beowulf mailing list, Beowulf@beowulf.org sponsored by Penguin Computing
To change your subscription (digest mode or unsubscribe) visit 
http://www.beowulf.org/mailman/listinfo/beowulf

Reply via email to