Skip to content

Conference notes for 2024 10 01

Robert McLay edited this page Oct 30, 2024 · 4 revisions

Lmod Zoom Mtg: 10-01-2024

Addendees

  • Robert McLay (TACC)
  • Matthew Cawood (TACC)
  • Kenneth Hoste (HPC-UGent)
  • Kurt Lust (UAntwerp, LUMI User Support Team)
  • Lev Gorenstein (Globus, UChicago)

Agenda

  • Q/A
  • A demo of new support hidden and forbidden modules
    • implementation of concepts already supported in Tmod
    • request from Spack developer, see also issue #690
    • Branch IS690-hide now support hide{} and forbid{} functions
      hide{name="sn or fullName",kind="hidden or soft or hard",before="yyyy-mm-dd",after="yyyy-mm-dd",hidden_loaded=true,user={},group={},notuser={}, notgroup={} }
      
      • ml -A av where -A is short for --show-hidden option (or --all option, like Tmod supports)
      • H/1.0 "soft hidden" module (s) will be loaded automatically on module load H if it's the highest version (and no other default is set);
        • implementation of a concept that exists in Tmod (but use case is unclear)
      • forbidden module supports providing a custom message when it's being loaded
        • cluster/.defaultCluster forbidden module can be used to force people to use a particular cluster module, and not do module load cluster;
      • a module can be "nearly forbidden", starting from a specific date is starts producing a warning that it will be forbidden soon (via before/after options to forbidden);
      • module can be hidden except for staff group via notgroup={staff} (list of group names can be provided);
    • Changed to match Tmod: --hidden-loaded: Lmod hidden_loaded=true
    • "hidden loaded" means that loaded modules marked that way will not be shown in output of module list
      • but Lmod will warn you that some loaded modules are not shown, and mention the option you can use to show them
  • Zsh startup issues resolved yet again. Will be in Lmod 8.8.
    • I hope that this finally resolves setting FPATH for bash, zsh, ksh
      unset __zsh_fpath
      if [ -n "${ZSH_VERSION+x}" ] &&  ! (autoload -U compinit && compinit -C 2> /dev/null) ; then
        __zsh_fpath=$(unset FPATH; zsh -f -c 'echo $FPATH')
      fi
      export FPATH=$(@PKGV@/libexec/addto --append FPATH ${__zsh_fpath:-$FPATH} @PKGV@/init/ksh_funcs)
      unset __zsh_fpath
  • Question: Support for "module --dumpname" in addition to "module --dumpversion"?
    • module --dumpversion reports Lmod version
    • module --dumpname would report you're running Lmod
    • modeled after -dumpversion command supported by compiler, like gcc -dumpversion
    • Robert asked Xavier if he want to support something like this in Tmod
  • Question: Support for non-reversible setenv(), prepend_path?
    • Maybe always_setenv(), always_prepend_path()?
      • always_setenv would also actually set an environment variable when module is being unloaded
      • subcommands like help, show don't change your environment
      • or maybe setenv{'FOO', 'BAR', on_unload=true} ?
    • Robert asked Xavier if he want to support something like this in Tmod
  • support for Tcl 9.0?
    • may matter to Lmod, since it links to Tcl library

Next Meeting

- Tue 5 Nov 2024 at 15:30 UTC
Clone this wiki locally