Properly check valgrind arches

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
David Abdurachmanov 2023-11-06 13:03:56 +02:00
parent f73f8383b3
commit db9334ea6c
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB
1 changed files with 8 additions and 1 deletions

View File

@ -64,7 +64,7 @@
Name: openmpi%{?_cc_name_suffix} Name: openmpi%{?_cc_name_suffix}
Version: 5.0.0 Version: 5.0.0
Release: 2%{?dist} Release: 2.0.riscv64%{?dist}
Summary: Open Message Passing Interface Summary: Open Message Passing Interface
License: BSD and MIT and Romio License: BSD and MIT and Romio
URL: http://www.open-mpi.org/ URL: http://www.open-mpi.org/
@ -85,7 +85,9 @@ BuildRequires: libtool
BuildRequires: perl(Data::Dumper) BuildRequires: perl(Data::Dumper)
BuildRequires: perl(File::Find) BuildRequires: perl(File::Find)
%endif %endif
%ifarch %{valgrind_arches}
BuildRequires: valgrind-devel BuildRequires: valgrind-devel
%endif
%if %{with rdma} %if %{with rdma}
BuildRequires: opensm-devel > 3.3.0 BuildRequires: opensm-devel > 3.3.0
BuildRequires: rdma-core-devel BuildRequires: rdma-core-devel
@ -257,8 +259,10 @@ OpenMPI support for Python 3.
%endif %endif
--with-prrte=external \ --with-prrte=external \
--with-sge \ --with-sge \
%ifarch %{valgrind_arches}
--with-valgrind \ --with-valgrind \
--enable-memchecker \ --enable-memchecker \
%endif
--with-hwloc=/usr \ --with-hwloc=/usr \
%if !0%{?el7} %if !0%{?el7}
--with-libevent=external \ --with-libevent=external \
@ -449,6 +453,9 @@ make check || ( cat test/*/test-suite.log && exit $fail )
%changelog %changelog
* Mon Nov 06 2023 David Abdurachmanov <davidlt@rivosinc.com> - 5.0.0-2.0.riscv64
- Add support for riscv64
* Tue Oct 31 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 5.0.0-2 * Tue Oct 31 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 5.0.0-2
- Disable building docs in RHEL builds - Disable building docs in RHEL builds