-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 06/30/2014 05:34 PM, Christopher Samuel wrote: > 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 [...] > > :-)
We do something similar, although split our software up into "OS/distro/ISA" (i.e. Linux/RHEL4/i686) just to keep maximum flexibility. That path suffix is configured in the $ARCHPATH variable so that it's not really any extra overhead to any of the tools. One of the really cool things about Modules is the power of Tcl - it's allowed us to make our basic Module files no more than a couple lines long, with most of the functionality computed on the fly in a header file based on the platform and path to the Module file. We can even throw an error if, say, a particular piece of software isn't available for that platform. Skylar -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlOyMtIACgkQsc4yyULgN4aO2gCfZ6dmxoRABgh2zKqIzfq7nCiz nCcAnjj6BFI86bIxRTk7RL6q0jBpUVn0 =EH4v -----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