Projects
OpenHPC:2.10:Factory
lmod-defaults-intel-openmpi5
_service:extract_file:lmod-defaults.spec
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:extract_file:lmod-defaults.spec of Package lmod-defaults-intel-openmpi5
%define mpi_family openmpi5 %define compiler_family intel #----------------------------------------------------------------------------bh- # This RPM .spec file is part of the OpenHPC project. # # It may have been modified from the default version supplied by the underlying # release package (if available) in order to apply patches, perform customized # build/install configurations, and supply additional files to support # desired integration conventions. # #----------------------------------------------------------------------------eh- %include %{_sourcedir}/OHPC_macros %{!?transport: %global transport %{nil}} Summary: OpenHPC default login environments Name: lmod-defaults-%{compiler_family}-%{mpi_family}%{transport}%{PROJ_DELIM} Version: 2.0 Release: 1 License: Apache-2.0 Group: %{PROJ_NAME}/admin URL: https://github.com/openhpc/ohpc BuildArch: noarch Requires: lmod%{PROJ_DELIM} Requires: %{mpi_family}%{transport}-%{compiler_family}%{PROJ_DELIM} %description Provides default login configuration using the %{compiler_family} compiler toolchain and %{mpi_family} MPI environment. %prep %build %install mkdir -p %{buildroot}/%{OHPC_MODULES} %{__cat} << EOF > %{buildroot}/%{OHPC_MODULES}/ohpc #%Module1.0##################################################################### # Default OpenHPC environment ############################################################################# proc ModulesHelp { } { puts stderr "Setup default login environment" } # # Load Desired Modules # prepend-path PATH %{OHPC_PUB}/bin # include local packages installed via spack prepend-path MODULEPATH %{OHPC_MODULEDEPS}/spack/ if { [ expr [module-info mode load] || [module-info mode display] ] } { prepend-path MANPATH /usr/local/share/man:/usr/share/man/overrides:/usr/share/man/en:/usr/share/man module try-add autotools module try-add prun module try-add %{compiler_family} module try-add %{mpi_family} } if [ module-info mode remove ] { module del %{mpi_family} module del %{compiler_family} module del prun module del autotools } EOF # Additional logic for mpich-(ucx|ofi) variants %if "%{mpi_family}" == "mpich" %post if [ $1 -ge 1 ];then version=`rpm -q --qf '%%{VERSION}\n' %{mpi_family}%{transport}-%{compiler_family}%{PROJ_DELIM} | sort -rV | head -1` moduleFile=$version%{transport} echo $moduleFile if [ -f %{OHPC_MODULEDEPS}/%{compiler_family}/%{mpi_family}/$moduleFile ];then pushd %{OHPC_MODULEDEPS}/%{compiler_family}/%{mpi_family} # remove previous default if it exists if [ -f default ];then rm -f default fi # establish latest default ln -s $moduleFile default popd fi fi %preun if [ $1 -ge 0 ];then if [ -L %{OHPC_MODULEDEPS}/%{compiler_family}/%{mpi_family}/default ];then rm -f %{OHPC_MODULEDEPS}/%{compiler_family}/%{mpi_family}/default fi fi %endif %files %dir %{OHPC_HOME} %dir %{OHPC_PUB} %{OHPC_MODULES}
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.