Use initially stored environment to determine GPU info for test reports#5088
Use initially stored environment to determine GPU info for test reports#5088Thyre wants to merge 2 commits intoeasybuilders:developfrom
Conversation
|
Successful test report with this PR e.g. here: easybuilders/easybuild-easyconfigs#24982 (comment) |
This is the same failure encountered with EasyStacks back in #4213 (comment). The main reasoning was
which, from my perspective, is a horrible assumption. Anything that runs after an installation, until EasyBuild has finished its execution, runs in a tampered environment. Loaded modules from a prior build might break the The other reason
doesn't justify the side-effect of not having a clean environment between exiting Documentation for this behavior is also lacking I'd say. For There are a few solutions for handling this:
|
9c0e19c to
c94ce7f
Compare
|
Switched to option three, as this is generally the most flexible option for now. If necessary, one could pass a different environment. The behavior only changed for Also added documentation for the behavior of |
Tools like `amd-smi` and `rocm-smi` rely on having a clean environment to correctly pick up information. However, the last build in `build_and_install_software` leaves a tampered environment from the last build, breaking both commands. To still correctly determine the GPU information, introduce a variable allowing to use the initial environment instead. Also use this for `nvidia-smi`, as its, by now, typically installed on the system level and not as a module. Signed-off-by: Jan André Reuter <j.reuter@fz-juelich.de>
Signed-off-by: Jan André Reuter <j.reuter@fz-juelich.de>
c94ce7f to
79e870f
Compare
Tools like
amd-smiandrocm-smirely on having a clean environment to correctly pick up information. However, the last build inbuild_and_install_softwareleaves a tampered environment, potentially breaking both commands.To still correctly determine the GPU information, introduce a variable allowing to use the initial environment instead. Also use this for
nvidia-smi, as its, by now, typically installed on the system level and not as a module.Ref. #5086