File: Design_of_module_hierarchy.org

package info (click to toggle)
lmod 8.7.60-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 63,000 kB
  • sloc: sh: 6,266; makefile: 2,837; ansic: 1,513; tcl: 1,382; python: 1,050; csh: 112
file content (59 lines) | stat: -rw-r--r-- 1,737 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
Here are some notes on how modulefiles should be laid out when using
Lmod:

* To start with we need a naming convention for how modules are named

   1) a module can be a file:  TACC,  Linux
   2) a module can be a directory with a version:

      foo/1.0

** A single file is typically used to be a meta-module.
   That is a module that loads other modules.  This file has only one
   version
** Type 2 is more typical: the directory name is name of the module
   and the file name is the version: foo/1.0, gcc/4.7.2.

* Lmod only supports type 1 and type 2.

* TCL modules supports a multiple level.  A site may have category/name/version.
  This is not supported by Lmod.  One could use category-name/version
  or similar but the category can not be a directory.

* Lmod design rule: One can only load one "name" at a time.

  If one had a module tree that used the "category/name/version"
  style,  Lmod would treat the category as the name.  So suppose that
  the module tree had modules:

     compiler/gcc/4.7.2
     compiler/open64/5.0
     compiler/intel/13.1

     mpi/fftw3/3.3
     mpi/petsc/3.3


  Then as far as Lmod is concerned you could only load one compiler.
  Now that might not be bad.  Except that there are a few users that
  need to load more that one compiler at a time.  Also no user could
  ever load both fftw3 and petsc at the same time. Lmod will not allow
  for more than one "name" at a time.

  If adding the category to the name is desirable then

     compiler-gcc/4.7.2
     compiler-open64/5.0
     compiler-intel/13.1

     mpi-fftw3/3.3
     mpi-petsc/3.3

  or some similar convection.

* Taking advantage of Lmod ability to automatically swap compiler and compiler-mpi
  dependent modules:



*