SHA256
1
0
forked from pool/openmpi4
openmpi4/macros.mpi-hpc

70 lines
1.6 KiB
Plaintext
Raw Normal View History

%mpi_flavor @MPI_FLAVOR@
%mpi_vers @MPI_VERS@
%mpi_vers_nodots @MPI_VERS_NODOTS@
%mpi_major @MPI_MAJOR@
%mpi_flavor_ver @MPI_FLAVOR_VER@
%mpi_base %{hpc_base}
%mpi_prefix %{hpc_prefix}
%mpi_exec_prefix %{hpc_exec_prefix}
%mpi_sysconfdir %{hpc_sysconfdir}
%mpi_localstatedir %{hpc_localstatedir}
%mpi_sharedstatedir %{hpc_sharedstatedir}
%mpi_bindir %{hpc_bindir}
%mpi_datadir %{hpc_datadir}
%mpi_includedir %{hpc_includedir}
%mpi_libdir %{hpc_libdir}
%mpi_libexecdir %{hpc_libexecdir}
%mpi_sbindir %{hpc_sbindir}
%mpi_docdir %{hpc_docdir}
%mpi_infodir %{hpc_infodir}
%mpi_mandir %{hpc_mandir}
%mpi_pkgconfigdir %{hpc_pkgconfigdir}
%mpi_cmake_dir %{hpc_cmake_dir}
%mpi_cmake_moddir %{hpc_cmake_moddir}
# ----------------------------------------------------
%mpi_init source %{mpi_bindir}/mpivars.sh
%mpi_run %{mpi_bindir}/mpirun
%mpi_set_compilers \
export CC=mpicc \
export CXX=mpicxx \
export F77=mpif77 \
export FC=mpif90 \
export MPICC=$CC \
export MPICXX=$CXX \
export MPIF77=$F77 \
export MPIFC=$FC \
%{nil}
#
# Autotools
#
%mpi_configure \
%{mpi_set_compilers} \
%{hpc_configure}
#
# man pages
#
# %{mpi_compress_man <num>} compress man page in %mpi_mandir/man<num>
%mpi_compress_man %hpc_compress_man
# wraps macro from macros.cmake - paths replaced by MPI paths.
%mpi_cmake \
%{mpi_set_compilers} \
%{hpc_cmake}
# wraps macro from macros.meson - paths replaced by MPI paths.
%mpi_meson \
%{mpi_set_compilers} \
%{hpc_meson}