From Earlham Cluster Department

Revision as of 15:15, 6 October 2009 by Kay (Talk | contribs)
Jump to: navigation, search

Software build options

  ARCHPATH=`uname -s`/`/cluster/software/os_release`/`uname -p`

E-mails from Skylar

That's still doable with multiple modules repositories. We can setup
meta-modules that don't actually point you at software but alter how
modules itself behaves. The master meta-module would prepend MODULEPATH
with (say) "/cluster/software/modules" for software that's the same
across all the clusters, and modules-bobsced would prepend MODULEPATH
with "/cluster/bobsced/software/modules". Just like with PATH, the first
hit within a module repository is used. If Perl is only in the master
software repository it'll be grabbed from there, but if OpenMPI is in
both it'll be grabbed from the bobsced repository since it comes before
the master repository.
I've set up two bobsced meta-modules, one for testing and one for
production, in /usr/share/Modules/modulefiles/modules-bobsced. These
point into corresponding modules and software directories in
/cluster/software/bobsced. The modules are called modules-bobsced/prod
and modules-bobsced/test. The .modulerc file in
/usr/share/Modules/modulefiles/modules-bobsced sets the default to be
modules-bobsced/prod, so just running "module load modules-bobsced" will
load the production module.

When I build software, I usually use the testing module (in this case
modules-bobsced/test), and install into the testing software repository.
Once I make sure the software is working, I'll copy the software
directories and module files into the production directories.
I forgot to mention how to build software for the meta-module. Where the
main CCG module (modules-ccg) would use something like this

./configure --prefix=$MOD_CCGSW/sw-name/sw-version/$ARCHPATH

software in modules-bobsced would use this

./configure --prefix=$MOD_BSSW/sw-name/sw-version/$ARCHPATH

$MOD_BSSW points to /cluster/software/bobsced/modules-sw-test for the
testing module, and /cluster/software/bobsced/modules-sw for production.


Personal tools
this semester