Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

If mathematically you end up with the wrong answer, try multiplying by the page number.


devel / comp.unix.shell / Re: Eliminate variable values ​​or functions that contain "python" or "conda" keywords from the Lua modulefile.

SubjectAuthor
* Eliminate variable values ​​or functions that cohongy...@gmail.com
`- Re: Eliminate variable values ​​or functiJanis Papanagnou

1
Eliminate variable values ​​or functions that contain "python" or "conda" keywords from the Lua modulefile.

<bbf3f792-9679-41a4-9e75-278c7c1e10een@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4834&group=comp.unix.shell#4834

  copy link   Newsgroups: comp.unix.shell
X-Received: by 2002:a05:6214:21aa:: with SMTP id t10mr23286814qvc.50.1640788344925;
Wed, 29 Dec 2021 06:32:24 -0800 (PST)
X-Received: by 2002:a05:6214:1c0d:: with SMTP id u13mr23859348qvc.46.1640788344765;
Wed, 29 Dec 2021 06:32:24 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.unix.shell
Date: Wed, 29 Dec 2021 06:32:24 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=203.175.13.154; posting-account=kF0ZaAoAAACPbiK5gldhAyX5qTd3krV2
NNTP-Posting-Host: 203.175.13.154
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <bbf3f792-9679-41a4-9e75-278c7c1e10een@googlegroups.com>
Subject: Eliminate_variable_values_​​or_functions_that_co
ntain_"python"_or_"conda"_keywords_from_the_Lua_modulefile.
From: hongyi.z...@gmail.com (hongy...@gmail.com)
Injection-Date: Wed, 29 Dec 2021 14:32:24 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 496
 by: hongy...@gmail.com - Wed, 29 Dec 2021 14:32 UTC

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:

============werner@X10DAi-00:/opt/intel/oneapi$ sh_to_modulefile setvars.sh
setenv("ACL_BOARD_VENDOR_PATH","/opt/Intel/OpenCLFPGA/oneAPI/Boards")
setenv("ADVISOR_2022_DIR","/opt/intel/oneapi/advisor/2022.0.0")
setenv("APM","/opt/intel/oneapi/advisor/2022.0.0/perfmodels")
setenv("CCL_CONFIGURATION","cpu_gpu_dpcpp")
setenv("CCL_ROOT","/opt/intel/oneapi/ccl/2021.5.0")
setenv("CLASSPATH","/opt/intel/oneapi/mpi/2021.5.0//lib/mpi.jar:/opt/intel/oneapi/dal/2021.5.1/lib/onedal.jar")
setenv("CLCK_ROOT","/opt/intel/oneapi/clck/2021.5.0")
setenv("CMAKE_PREFIX_PATH","/opt/intel/oneapi/vpl/2022.0.0:/opt/intel/oneapi/tbb/2021.5.0/env/..:/opt/intel/oneapi/dal/2021.5.1:/opt/intel/oneapi/compiler/2022.0.1/linux/IntelDPCPP")
setenv("CMPLR_ROOT","/opt/intel/oneapi/compiler/2022.0.1")
setenv("CONDA_DEFAULT_ENV","intelpython-python3.9")
setenv("CONDA_EXE","/opt/intel/oneapi/intelpython/latest/bin/conda")
setenv("CONDA_PREFIX","/opt/intel/oneapi/intelpython/latest")
setenv("CONDA_PROMPT_MODIFIER","(intelpython-python3.9) ")
setenv("CONDA_PYTHON_EXE","/opt/intel/oneapi/intelpython/latest/bin/python")
setenv("CONDA_SHLVL","1")
setenv("CPATH","/opt/intel/oneapi/vpl/2022.0.0/include:/opt/intel/oneapi/tbb/2021.5.0/env/../include:/opt/intel/oneapi/mpi/2021.5.0//include:/opt/intel/oneapi/mkl/2022.0.1/include:/opt/intel/oneapi/ippcp/2021.5.0/include:/opt/intel/oneapi/ipp/2021.5.1/include:/opt/intel/oneapi/dpl/2021.6.0/linux/include:/opt/intel/oneapi/dpcpp-ct/2022.0.0/include:/opt/intel/oneapi/dnnl/2022.0.1/cpu_dpcpp_gpu_dpcpp/lib:/opt/intel/oneapi/dev-utilities/2021.5.1/include:/opt/intel/oneapi/dal/2021.5.1/include:/opt/intel/oneapi/ccl/2021.5.0/include/cpu_gpu_dpcpp")
setenv("CPLUS_INCLUDE_PATH","/opt/intel/oneapi/clck/2021.5.0/include")
setenv("DAALROOT","/opt/intel/oneapi/dal/2021.5.1")
setenv("DALROOT","/opt/intel/oneapi/dal/2021.5.1")
setenv("DAL_MAJOR_BINARY","1")
setenv("DAL_MINOR_BINARY","1")
setenv("DNNLROOT","/opt/intel/oneapi/dnnl/2022.0.1/cpu_dpcpp_gpu_dpcpp")
setenv("DPCT_BUNDLE_ROOT","/opt/intel/oneapi/dpcpp-ct/2022.0.0")
setenv("DPL_ROOT","/opt/intel/oneapi/dpl/2021.6.0")
setenv("FI_PROVIDER_PATH","/opt/intel/oneapi/mpi/2021.5.0//libfabric/lib/prov:/usr/lib64/libfabric")
setenv("FPGA_VARS_ARGS","")
setenv("FPGA_VARS_DIR","/opt/intel/oneapi/compiler/2022.0.1/linux/lib/oclfpga")
setenv("GDB_INFO","/opt/intel/oneapi/debugger/2021.5.0/documentation/info/")
prepend_path("INFOPATH","/opt/intel/oneapi/debugger/2021.5.0/gdb/intel64/lib")
setenv("INSPECTOR_2022_DIR","/opt/intel/oneapi/inspector/2022.0.0")
setenv("INTELFPGAOCLSDKROOT","/opt/intel/oneapi/compiler/2022.0.1/linux/lib/oclfpga")
setenv("INTEL_LICENSE_FILE","/opt/intel/licenses:/home/werner/intel/licenses:/opt/intel/oneapi/clck/2021.5.0/licensing:/opt/intel/licenses:/home/werner/intel/licenses:/Users/Shared/Library/Application Support/Intel/Licenses")
setenv("INTEL_PYTHONHOME","/opt/intel/oneapi/debugger/2021.5.0/dep")
setenv("IPPCP_TARGET_ARCH","intel64")
setenv("IPPCRYPTOROOT","/opt/intel/oneapi/ippcp/2021.5.0")
setenv("IPPROOT","/opt/intel/oneapi/ipp/2021.5.1")
setenv("IPP_TARGET_ARCH","intel64")
setenv("I_MPI_ROOT","/opt/intel/oneapi/mpi/2021.5.0")
prepend_path("LD_LIBRARY_PATH","/opt/intel/oneapi/compiler/2022.0.1/linux/compiler/lib/intel64_lin")
prepend_path("LD_LIBRARY_PATH","/opt/intel/oneapi/compiler/2022.0.1/linux/lib/oclfpga/host/linux64/lib")
prepend_path("LD_LIBRARY_PATH","/opt/intel/oneapi/compiler/2022.0.1/linux/lib/x64")
prepend_path("LD_LIBRARY_PATH","/opt/intel/oneapi/compiler/2022.0.1/linux/lib")
prepend_path("LD_LIBRARY_PATH","/opt/intel/oneapi/dal/2021.5.1/lib/intel64")
prepend_path("LD_LIBRARY_PATH","/opt/intel/oneapi/debugger/2021.5.0/dep/lib")
prepend_path("LD_LIBRARY_PATH","/opt/intel/oneapi/debugger/2021.5.0/libipt/intel64/lib")
prepend_path("LD_LIBRARY_PATH","/opt/intel/oneapi/debugger/2021.5.0/gdb/intel64/lib")
prepend_path("LD_LIBRARY_PATH","/opt/intel/oneapi/dnnl/2022.0.1/cpu_dpcpp_gpu_dpcpp/lib")
prepend_path("LD_LIBRARY_PATH","/opt/intel/oneapi/ipp/2021.5.1/lib/intel64")
prepend_path("LD_LIBRARY_PATH","/opt/intel/oneapi/ippcp/2021.5.0/lib/intel64")
prepend_path("LD_LIBRARY_PATH","/opt/intel/oneapi/itac/2021.5.0/slib")
prepend_path("LD_LIBRARY_PATH","/opt/intel/oneapi/mkl/2022.0.1/lib/intel64")
prepend_path("LD_LIBRARY_PATH","/opt/intel/oneapi/mpi/2021.5.0/lib")
prepend_path("LD_LIBRARY_PATH","/opt/intel/oneapi/mpi/2021.5.0/lib/release")
prepend_path("LD_LIBRARY_PATH","/opt/intel/oneapi/mpi/2021.5.0/libfabric/lib")
prepend_path("LD_LIBRARY_PATH","/opt/intel/oneapi/tbb/2021.5.0/env/../lib/intel64/gcc4.8")
prepend_path("LD_LIBRARY_PATH","/opt/intel/oneapi/vpl/2022.0.0/lib")
setenv("LIBRARY_PATH","/opt/intel/oneapi/vpl/2022.0.0/lib:/opt/intel/oneapi/tbb/2021.5.0/env/../lib/intel64/gcc4.8:/opt/intel/oneapi/mpi/2021.5.0//libfabric/lib:/opt/intel/oneapi/mpi/2021.5.0//lib/release:/opt/intel/oneapi/mpi/2021.5.0//lib:/opt/intel/oneapi/mkl/2022.0.1/lib/intel64:/opt/intel/oneapi/ippcp/2021.5.0/lib/intel64:/opt/intel/oneapi/ipp/2021.5.1/lib/intel64:/opt/intel/oneapi/dnnl/2022.0.1/cpu_dpcpp_gpu_dpcpp/lib:/opt/intel/oneapi/dal/2021.5.1/lib/intel64:/opt/intel/oneapi/compiler/2022.0.1/linux/compiler/lib/intel64_lin:/opt/intel/oneapi/compiler/2022.0.1/linux/lib:/opt/intel/oneapi/clck/2021.5.0/lib/intel64:/opt/intel/oneapi/ccl/2021.5.0/lib/cpu_gpu_dpcpp")
prepend_path("MANPATH","/opt/intel/oneapi/clck/2021.5.0/man")
prepend_path("MANPATH","/opt/intel/oneapi/compiler/2022.0.1/documentation/en/man/common")
prepend_path("MANPATH","/opt/intel/oneapi/debugger/2021.5.0/documentation/man")
prepend_path("MANPATH","/opt/intel/oneapi/itac/2021.5.0/man")
prepend_path("MANPATH","/opt/intel/oneapi/mpi/2021.5.0/man")
setenv("MKLROOT","/opt/intel/oneapi/mkl/2022.0.1")
setenv("NLSPATH","/opt/intel/oneapi/mkl/2022.0.1/lib/intel64/locale/%l_%t/%N:/opt/intel/oneapi/compiler/2022.0.1/linux/compiler/lib/intel64_lin/locale/%l_%t/%N")
setenv("OCL_ICD_FILENAMES","libintelocl_emu.so:libalteracl.so:/opt/intel/oneapi/compiler/2022.0.1/linux/lib/x64/libintelocl.so")
setenv("ONEAPI_ROOT","/opt/intel/oneapi")
prepend_path("PATH","/opt/intel/oneapi/advisor/2022.0.0/bin64")
prepend_path("PATH","/opt/intel/oneapi/clck/2021.5.0/bin/intel64")
prepend_path("PATH","/opt/intel/oneapi/compiler/2022.0.1/linux/bin")
prepend_path("PATH","/opt/intel/oneapi/compiler/2022.0.1/linux/bin/intel64")
prepend_path("PATH","/opt/intel/oneapi/compiler/2022.0.1/linux/lib/oclfpga/bin")
prepend_path("PATH","/opt/intel/oneapi/debugger/2021.5.0/gdb/intel64/bin")
prepend_path("PATH","/opt/intel/oneapi/dev-utilities/2021.5.1/bin")
prepend_path("PATH","/opt/intel/oneapi/dpcpp-ct/2022.0.0/bin")
prepend_path("PATH","/opt/intel/oneapi/inspector/2022.0.0/bin64")
prepend_path("PATH","/opt/intel/oneapi/intelpython/latest/condabin")
prepend_path("PATH","/opt/intel/oneapi/intelpython/latest/bin")
prepend_path("PATH","/opt/intel/oneapi/itac/2021.5.0/bin")
prepend_path("PATH","/opt/intel/oneapi/mkl/2022.0.1/bin/intel64")
prepend_path("PATH","/opt/intel/oneapi/mpi/2021.5.0/bin")
prepend_path("PATH","/opt/intel/oneapi/mpi/2021.5.0/libfabric/bin")
prepend_path("PATH","/opt/intel/oneapi/vpl/2022.0.0/bin")
prepend_path("PATH","/opt/intel/oneapi/vtune/2022.0.0/bin64")
setenv("PKG_CONFIG_PATH","/opt/intel/oneapi/vtune/2022.0.0/include/pkgconfig/lib64:/opt/intel/oneapi/vpl/2022.0.0/lib/pkgconfig:/opt/intel/oneapi/tbb/2021.5.0/env/../lib/pkgconfig:/opt/intel/oneapi/mpi/2021.5.0/lib/pkgconfig:/opt/intel/oneapi/mkl/2022.0.1/lib/pkgconfig:/opt/intel/oneapi/ippcp/2021.5..0/lib/pkgconfig:/opt/intel/oneapi/inspector/2022.0.0/include/pkgconfig/lib64:/opt/intel/oneapi/dpl/2021.6.0/lib/pkgconfig:/opt/intel/oneapi/dnnl/2022..0.1/cpu_dpcpp_gpu_dpcpp/../lib/pkgconfig:/opt/intel/oneapi/dal/2021.5.1/lib/pkgconfig:/opt/intel/oneapi/compiler/2022.0.1/lib/pkgconfig:/opt/intel/oneapi/ccl/2021.5.0/lib/pkgconfig:/opt/intel/oneapi/advisor/2022.0.0/include/pkgconfig/lib64:")
setenv("PYTHONPATH","/opt/intel/oneapi/advisor/2022.0.0/pythonapi")
setenv("SETVARS_COMPLETED","1")
setenv("TBBROOT","/opt/intel/oneapi/tbb/2021.5.0/env/..")
setenv("VTUNE_PROFILER_2022_DIR","/opt/intel/oneapi/vtune/2022.0.0")
setenv("VT_ADD_LIBS","-ldwarf -lelf -lvtunwind -lm -lpthread")
setenv("VT_LIB_DIR","/opt/intel/oneapi/itac/2021.5.0/lib")
setenv("VT_MPI","impi4")
setenv("VT_ROOT","/opt/intel/oneapi/itac/2021.5.0")
setenv("VT_SLIB_DIR","/opt/intel/oneapi/itac/2021.5.0/slib")
setenv("_CE_CONDA","")
setenv("_CE_M","")
set_shell_function("__add_sys_prefix_to_path"," \
if [ -n \"${_CE_CONDA}\" ] && [ -n \"${WINDIR+x}\" ]; then\
SYSP=$(\\dirname \"${CONDA_EXE}\");\
else\
SYSP=$(\\dirname \"${CONDA_EXE}\");\
SYSP=$(\\dirname \"${SYSP}\");\
fi;\
if [ -n \"${WINDIR+x}\" ]; then\
PATH=\"${SYSP}/bin:${PATH}\";\
PATH=\"${SYSP}/Scripts:${PATH}\";\
PATH=\"${SYSP}/Library/bin:${PATH}\";\
PATH=\"${SYSP}/Library/usr/bin:${PATH}\";\
PATH=\"${SYSP}/Library/mingw-w64/bin:${PATH}\";\
PATH=\"${SYSP}:${PATH}\";\
else\
PATH=\"${SYSP}/bin:${PATH}\";\
fi;\
\\export PATH\
","")
set_shell_function("__conda_activate"," \
if [ -n \"${CONDA_PS1_BACKUP:+x}\" ]; then\
PS1=\"$CONDA_PS1_BACKUP\";\
\\unset CONDA_PS1_BACKUP;\
fi;\
\\local ask_conda;\
ask_conda=\"$(PS1=\"${PS1:-}\" __conda_exe shell.posix \"$@\")\" || \\return;\
\\eval \"$ask_conda\";\
__conda_hashr\
","")
set_shell_function("__conda_exe"," \
( __add_sys_prefix_to_path;\
\"$CONDA_EXE\" $_CE_M $_CE_CONDA \"$@\" )\
","")
set_shell_function("__conda_hashr"," \
if [ -n \"${ZSH_VERSION:+x}\" ]; then\
\\rehash;\
else\
if [ -n \"${POSH_VERSION:+x}\" ]; then\
:;\
else\
\\hash -r;\
fi;\
fi\
","")
set_shell_function("__conda_reactivate"," \
\\local ask_conda;\
ask_conda=\"$(PS1=\"${PS1:-}\" __conda_exe shell.posix reactivate)\" || \\return;\
\\eval \"$ask_conda\";\
__conda_hashr\
","")
set_shell_function("_setvars_get_proc_name"," \
if [ -n \"${ZSH_VERSION:-}\" ]; then\
script=\"$(ps -p \"$$\" -o comm=)\";\
else\
script=\"$1\";\
while [ -L \"$script\" ]; do\
script=\"$(readlink \"$script\")\";\
done;\
fi;\
basename -- \"$script\"\
","")
set_shell_function("_vars_get_proc_name"," \
if [ -n \"${ZSH_VERSION:-}\" ]; then\
script=\"$(ps -p \"$$\" -o comm=)\";\
else\
script=\"$1\";\
while [ -L \"$script\" ]; do\
script=\"$(readlink \"$script\")\";\
done;\
fi;\
basename -- \"$script\"\
","")
set_shell_function("conda"," \
\\local cmd=\"${1-__missing__}\";\
case \"$cmd\" in \
activate | deactivate)\
__conda_activate \"$@\"\
;;\
install | update | upgrade | remove | uninstall)\
__conda_exe \"$@\" || \\return;\
__conda_reactivate\
;;\
*)\
__conda_exe \"$@\"\
;;\
esac\
","")
set_shell_function("dnnl_check_local_env"," \
__dnnl_this_dir_name=$(basename -- \"${__dnnl_this_dir_path}\");\
echo \"$(dnnl_match_configuration \"$__dnnl_this_dir_name\")\"\
","")
set_shell_function("dnnl_env_vars_main"," \
__dnnl_configuration=;\
for param in \"$@\";\
do\
__tmp_dnnl_configuration=\"${param##--dnnl-configuration=}\";\
[ \"${param}\" = \"--dnnl-configuration=${__tmp_dnnl_configuration}\" ] && __dnnl_configuration=${__tmp_dnnl_configuration};\
done;\
if [ -n \"$__dnnl_configuration\" ]; then\
if [ -z \"$(dnnl_match_configuration \"$__dnnl_configuration\")\" ]; then\
echo \"@@@ --dnnl-configuration=$__dnnl_configuration is not valid\";\
echo \"@@@ use the default one: $__dnnl_def_configuration\";\
__dnnl_configuration=$__dnnl_def_configuration;\
fi;\
else\
__dnnl_configuration=$__dnnl_def_configuration;\
fi;\
dnnl_base_dir=$(get_script_path \"$__dnnl_this_dir_path\");\
dnnl_set_env_vars \"$dnnl_base_dir/$__dnnl_configuration\"\
","")
set_shell_function("dnnl_match_configuration"," \
echo \"$__dnnl_known_configurations\" | tr ' ' '\\n' | while read -r item; do\
[ \"$1\" = \"$item\" ] && echo \"$item\" && return;\
done;\
echo \"\"\
","")
set_shell_function("dnnl_set_env_vars"," \
export DNNLROOT=\"$1\";\
if [ -n \"${LD_LIBRARY_PATH:-}\" ]; then\
export LD_LIBRARY_PATH=$DNNLROOT/lib:$LD_LIBRARY_PATH;\
else\
export LD_LIBRARY_PATH=$DNNLROOT/lib;\
fi;\
if [ -n \"${LIBRARY_PATH:-}\" ]; then\
export LIBRARY_PATH=$DNNLROOT/lib:$LIBRARY_PATH;\
else\
export LIBRARY_PATH=$DNNLROOT/lib;\
fi;\
if [ -n \"${CPATH:-}\" ]; then\
export CPATH=$DNNLROOT/lib:$CPATH;\
else\
export CPATH=$DNNLROOT/lib;\
fi;\
if [ -n \"${PKG_CONFIG_PATH:-}\" ]; then\
export PKG_CONFIG_PATH=$DNNLROOT/../lib/pkgconfig:$PKG_CONFIG_PATH;\
else\
export PKG_CONFIG_PATH=$DNNLROOT/../lib/pkgconfig;\
fi\
","")
set_shell_function("get_product_dir"," \
script=\"$1\";\
while [ -L \"$script\" ]; do\
script_dir=\"$( dirname \"$script\" )\";\
script_dir=\"$( cd \"$script_dir\" && pwd -P )\";\
script=\"$(readlink \"$script\" )\";\
if [ ${script} != '/*' ]; then\
script=\"$script_dir/$script\";\
fi;\
done;\
script_dir=\"$( dirname \"$script\" )\";\
script_dir=\"$( cd \"$script_dir\" && pwd -P )\";\
script_dir=\"$( dirname \"$script_dir\" )\";\
echo \"$script_dir\"\
","")
set_shell_function("get_script_path"," \
( script=\"$1\";\
while [ -L \"$script\" ]; do\
script_dir=$(command dirname -- \"$script\");\
script_dir=$(cd \"$script_dir\" && command pwd -P);\
script=\"$(readlink \"$script\")\";\
case $script in \
/*)\
\
Click here to read the complete article

Re: Eliminate variable values ​​or functions that contain "python" or "conda" keywords from the Lua modulefile.

<sqhssg$5un$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4835&group=comp.unix.shell#4835

  copy link   Newsgroups: comp.unix.shell
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: janis_pa...@hotmail.com (Janis Papanagnou)
Newsgroups: comp.unix.shell
Subject: Re:_Eliminate_variable_values_​​or_functi
ons_that_contain_"python"_or_"conda"_keywords_from_the_Lu
a_modulefile.
Date: Wed, 29 Dec 2021 15:55:11 +0100
Organization: A noiseless patient Spider
Lines: 50
Message-ID: <sqhssg$5un$1@dont-email.me>
References: <bbf3f792-9679-41a4-9e75-278c7c1e10een@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 29 Dec 2021 14:55:12 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="a0a25d945309b0070dc3c38fc8cc70dd";
logging-data="6103"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18W3tshwcn7wpwZCPKB1vHG"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:N/rsdimteywpDEt1flsYlVkmyuI=
In-Reply-To: <bbf3f792-9679-41a4-9e75-278c7c1e10een@googlegroups.com>
X-Enigmail-Draft-Status: N1110
 by: Janis Papanagnou - Wed, 29 Dec 2021 14:55 UTC

Your posts are getting worse and worse it seems. First: google for
"usenet netiquette", then try to understand them, then try to comply.

On 29.12.2021 15:32, hongy...@gmail.com wrote:
> 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:
>
> =============

[372 lines of uncommented non-shell-code/data deleted]

> =============
>
> 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 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:
>
> 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?

Yes. It's called do your homework!

Show us relevant test samples of appropriate size, show us what you have
tried so far, and tell us why it hasn't worked as you expected, and ask
concrete shell-related questions where you need support.

And learn to make sensible posts; there's enough information also about
that on the Net.

>
> [1] https://lmod.readthedocs.io/en/latest/
>
> Regards,
> HZ
>

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor