You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and [2023/cc_hooks.py](https://github.com/ComputeCanada/easybuild-computecanada-config/blob/main/2023/cc_hooks.py)
48
+
files
47
49
-[The hooks file from the EESSI software stack](https://github.com/EESSI/software-layer/blob/main/eb_hooks.py).
48
-
[EESSI](https://www.eessi-hpc.org/) is an effort to build a software stack distributed via
49
-
[CernVM-FS](https://cernvm.cern.ch/fs/) using EasyBuild to build all software.
50
+
[EESSI](https://www.eessi.io/) is an effort to build a software stack distributed via
51
+
[CernVM-FS](https://cernvm.cern.ch/fs/) using EasyBuild to build all software.
52
+
53
+
On LUMI we also use hooks, but the definition file is rather small. e/g/.
54
+
[the LUMI hooks file in use since LUMI/22.08](https://github.com/Lumi-supercomputer/LUMI-SoftwareStack/blob/main/easybuild/hooks/LUMI_site_hooks-22.08.py).
55
+
50
56
51
57
## Implementing and using hooks
52
58
@@ -90,6 +96,10 @@ These hooks can be implementing by defining a function named ``start_hook`` and
90
96
in the Python module file that is provided via the ``hooks`` configuration option.
91
97
No arguments are provided when calling these hooks.
92
98
99
+
*On LUMI, an end hook is used to clear the Lmod cache after installing software as otherwise
100
+
a newly installed module may not be found immediately.*
101
+
102
+
93
103
### Parse hook
94
104
95
105
The ``parse`` hook is triggered right after an easyconfig file is being parsed,
@@ -107,6 +117,7 @@ This hook can be implemented via a function named ``parse_hook``, and exactly on
107
117
argument is provided when it is called: the [``EasyConfig``](https://docs.easybuild.io/en/latest/api/easybuild.framework.easyconfig.easyconfig.html#easybuild.framework.easyconfig.easyconfig.EasyConfig)
108
118
instance that represents the parsed easyconfig file.
109
119
120
+
110
121
### Pre/post-step hooks
111
122
112
123
The third type of hooks are *pre/post-step* hooks, which are triggered right before or
0 commit comments