Difference between revisions of "Cluster:Modules"

From Earlham CS Department
Jump to navigation Jump to search
(Notes)
Line 26: Line 26:
 
== Notes ==
 
== Notes ==
 
* <code>. /cluster/software/modules.sh</code> gets it working
 
* <code>. /cluster/software/modules.sh</code> gets it working
 +
* <code>/cluster/software/modules</code> is where the actual configuration files for each module (ie each piece of software) is stored in text files
 +
* <code>/cluster/software/modules-sw</code> is where the common source code gets installed to (not bobsced-specific)

Revision as of 12:58, 5 October 2009

Software build options

  ARCHPATH=`uname -s`/`/cluster/software/os_release`/`uname -p`
  • Tcl: ./configure --prefix=/cluster/software/modules-sw/tcl/8.5.7/$ARCHPATH --enable-shared && make
  • Modules: ./configure --prefix=/cluster/software/modules-sw/modules/3.2.7/$ARCHPATH --with-tcl=/cluster/software/modules-sw/tcl/8.5.7/$ARCHPATH/lib --with-static=yes && make
    • Had to remove bash_completion from init/Makefile.
    • After installation, changed the version from 3.2.6->3.2.7 in the init directory, and /usr/share/Modules to /cluster/software/modules-sw/modules/3.2.7/$ARCHPATH/Modules
  • OpenMPI: ./configure --prefix=/cluster/software/modules-sw/openmpi/1.3.1/$ARCHPATH && make

Multiple Repositories

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.

Notes

  • . /cluster/software/modules.sh gets it working
  • /cluster/software/modules is where the actual configuration files for each module (ie each piece of software) is stored in text files
  • /cluster/software/modules-sw is where the common source code gets installed to (not bobsced-specific)