On Ubuntu 20.04.3 LTS, I installed the following intel oneapi toolkits:
https://registrationcenter-download.intel.com/akdlm/irc_nas/18445/l_BaseKit_p_2022.1.1.119_offline.sh
https://registrationcenter-download.intel.com/akdlm/irc_nas/18438/l_HPCKit_p_2022.1.1.97_offline.sh
At the same time, I use Lmod [1] to generate the corresponding environment module file as follows:
=============
=============they only appear in value part of a variable, then remove the correponding entry from the variable's value list, say, following ones should be removed totally:
But I want to eliminate variable values or functions that contain "python" or "conda" keywords from the above Lua modulefile. I mean, if the "python" or "conda" keywords is included in the variable's name, then remove the whole variable; if the
setenv("CONDA_SHLVL","1") setenv("CONDA_EXE","/opt/intel/oneapi/intelpython/latest/bin/conda")
And the following ones should one remove the correponding entry from the variable's value list:
prepend_path("PATH","/opt/intel/oneapi/intelpython/latest/bin:/opt/intel/oneapi/someother/latest/bin")
i.e., changed to the following one:
prepend_path("PATH","/opt/intel/oneapi/someother/latest/bin")
OTOH, for all the functions, if "python" or "conda" keywords appear in the function body/name, then remove them totally.
Is there any trick to do this job?
[1] https://lmod.readthedocs.io/en/latest/
Regards,
HZ
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 45:43:59 |
Calls: | 6,648 |
Files: | 12,197 |
Messages: | 5,329,775 |