File: settarg_rc.lua

package info (click to toggle)
lmod 8.7.60-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 63,008 kB
  • sloc: sh: 6,266; makefile: 2,837; ansic: 1,513; tcl: 1,382; python: 1,050; csh: 112
file content (85 lines) | stat: -rw-r--r-- 3,747 bytes parent folder | download | duplicates (3)
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
-- -*- lua -*-

BuildScenarioTbl = {
   default                = "empty",
}

HostnameTbl = { 2 }  -- extracts the 2nd part of `hostname -f` output, towards variable $TARG_HOST

TitleTbl = {
   dbg                    = "D",
   mdbg                   = "M",
   opt                    = "O",
   gopt                   = "Og",
   impi                   = "IM",
   mvapich2               = "M",
   openmpi                = "O",
   cray_mpich             = "M",
   mpich                  = "M",
   mpich2                 = "M2",
   intel                  = "I",
   gcc                    = "G",
   clang                  = "C",
   tau                    = "Tau",
   pgi                    = "P",
   hdf5                   = "H5",
   phdf5                  = "H5",
   xl                     = "XL",
   petsc                  = "Psc",
   spectrum_mpi           = "SM",
   MVAPICH2               = 'M',
   OpenMPI                = "O",
   MPICH                  = "M",
   MPICH2                 = "M2",
   INTEL                  = "I",
   GCC                    = "G",
   Clang                  = "C",
   TAU                    = 'Tau',
   PGI                    = "P",
}

ModuleTbl = {
   build_scenario     = { "mdbg", "dbg", "opt", "gopt", "empty"},
   mpi                = { "mpich", "mpich2", "openmpi", "mvapich2", "impi", "spectrum_mpi",
                          "MPICH", "MPICH2", "MVAPICH2",
                          "OpenMPI", "QLogicMPI", "psmpi", "psmpi2","cray_mpich"},
   compiler           = { "intel", "pgi", "gcc", "xl", "sun", "clang", "Clang", "GCC", "LLVM", "PGI", "PCC", "TCC", "SDCC", "ispc", "Go"},
   blas               = { "gotoblas", "mkl", "imkl", "OpenBLAS", "GotoBLAS", "GotoBLAS2", "ATLAS"},
   toolchain          = { "ClangGCC", "CrayCCE", "CrayGNU", "CrayIntel", "CrayPGI", "GCCcore",
                          "GNU", "PGI", "cgmpich", "cgmpolf", "cgmvapich2", "cgmvolf", "cgompi", "cgoolf",
                          "dummy", "foss", "gcccuda", "gimkl", "gimpi", "gmacml", "gmpich", "gmpich2",
                          "gmpolf", "gmvapich2", "gmvolf", "goalf", "gompi", "gompic", "goolf", "goolfc",
                          "gpsmpi", "gpsolf", "gqacml", "iccifort", "iccifortcuda", "ictce",
                          "iimkl", "iimpi", "iimpic", "iiqmpi", "impich", "impmkl", "intel",
                          "intel-para", "intelcuda", "iomkl", "iompi", "ipsmpi", "iqacml", "ismkl",
                          "pomkl", "pompi", "xlcxlf", "xlmpich", "xlmpich2", "xlmvapich2", "xlompi"},
   solver             = { "petsc", "trilinos", "PETSc", "Trilinos"},
   acceleratings_libs = { "CUDA", "cuDNN"},
   pointer_validation = { "mudflap", "mudflapth", "dmalloc"},
   valgrind           = { "memgrind", "cachegrind"},
   profiling          = { "mpiP", "tau", "TAU"},
   file_io            = { "hdf5", "phdf5", "HDF5"},
}

TargetList = { "mach", "build_scenario", "compiler", "mpi"}

SettargDirTemplate = { "$SETTARG_TAG1", "/", "$SETTARG_TAG2", "$TARG_SUMMARY" }

NoFamilyList = {"mach", "build_scenario",}

------------------------------------------------------------------------
-- This variable takes 3 value:
--    first:  Put $TARG at beginning of $PATH
--    last:   Put $TARG at end of $PATH
--    empty:  Do not put $TARG in $PATH.

-- Note that once $TARG is placed in $PATH its relative position is maintained.
-- That is if after putting $TARG at the beginning of $PATH, the user prepends other
-- directories to $PATH so that $TARG is in the fourth position, Settarg changes the value
-- in place at the fourth position.  It does not move the location of $TARG back to first
-- position.
--
-- Note that you can set the variable LMOD_SETTARG_TARG_PATH_LOCATION to override this setting.


TargPathLoc = "first"