Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
65c51e4259
!52 Fix wrong name_all
From: @wangqiang95 
Reviewed-by: @wk333 
Signed-off-by: @wk333
2024-06-07 06:13:57 +00:00
wangqiang
b3db285db5 Fix wrong name_all 2024-06-07 11:34:32 +08:00
openeuler-ci-bot
b5f66f3784
!47 让valgrind构建依赖跟随系统宏
From: @laokz 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2024-03-07 02:24:43 +00:00
laokz
3eb32945aa let BuildRequire valgrind depend on system %{valgrind_arches} 2024-03-05 12:41:12 +08:00
openeuler-ci-bot
5b0ef2ca48
!50 Add ppc64le support
From: @peng_zou 
Reviewed-by: @wk333 
Signed-off-by: @wk333
2024-01-16 10:48:50 +00:00
peng.zou
d369933aef Add ppc64le support 2024-01-16 17:56:41 +08:00
openeuler-ci-bot
1532fbb917
!49 fix build error due to rdma-core separate some packages.
From: @cherry530 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
2024-01-10 02:35:54 +00:00
cherry530
d9131885fd fix build error
Signed-off-by: cherry530 <707078654@qq.com>
2024-01-10 08:33:13 +08:00
openeuler-ci-bot
80b2dfd757
!36 add loongarch64 support for openmpi
From: @zhangwenlong01 
Reviewed-by: @small_leek 
Signed-off-by: @small_leek
2023-07-20 07:12:59 +00:00
Wenlong Zhang
c6493e82b7 add loongarch64 support for openmpi 2023-07-20 14:21:29 +08:00
2 changed files with 94 additions and 6 deletions

View File

@ -0,0 +1,58 @@
From 015d0246d315377d1d8aeadeff8fcbc2aef49874 Mon Sep 17 00:00:00 2001
From: Wenlong Zhang <zhangwenlong@loongson.cn>
Date: Thu, 20 Jul 2023 03:27:39 +0000
Subject: [PATCH] add loongarch64 support for openmpi
---
config/opal_config_asm.m4 | 5 +++++
opal/include/opal/sys/architecture.h | 1 +
opal/include/opal/sys/cma.h | 5 +++++
3 files changed, 11 insertions(+)
diff --git a/config/opal_config_asm.m4 b/config/opal_config_asm.m4
index d8640e0..586a2c8 100644
--- a/config/opal_config_asm.m4
+++ b/config/opal_config_asm.m4
@@ -1154,6 +1154,11 @@ AC_DEFUN([OPAL_CONFIG_ASM],[
OPAL_ASM_SUPPORT_64BIT=1
OPAL_GCC_INLINE_ASSIGN='"li %0, 0" : "=&r"(ret)'
;;
+ loongarch64*)
+ opal_cv_asm_arch="LOONGARCH64"
+ OPAL_ASM_SUPPORT_64BIT=1
+ OPAL_GCC_INLINE_ASSIGN='"li.d %0, 0" : "=&r"(ret)'
+ ;;
# There is no current difference between s390 and s390x
# But use two different defines in case some come later
# as s390 is 31bits while s390x is 64bits
diff --git a/opal/include/opal/sys/architecture.h b/opal/include/opal/sys/architecture.h
index 8a9fc53..ed54270 100644
--- a/opal/include/opal/sys/architecture.h
+++ b/opal/include/opal/sys/architecture.h
@@ -45,6 +45,7 @@
#define OPAL_S390 0110
#define OPAL_S390X 0111
#define OPAL_RISCV64 0120
+#define OPAL_LOONGARCH64 0130
#define OPAL_BUILTIN_SYNC 0200
#define OPAL_BUILTIN_GCC 0202
#define OPAL_BUILTIN_NO 0203
diff --git a/opal/include/opal/sys/cma.h b/opal/include/opal/sys/cma.h
index 8040ccb..11417b5 100644
--- a/opal/include/opal/sys/cma.h
+++ b/opal/include/opal/sys/cma.h
@@ -97,6 +97,11 @@
#define __NR_process_vm_readv 270
#define __NR_process_vm_writev 271
+#elif OPAL_ASSEMBLY_ARCH == OPAL_LOONGARCH64
+/* LOONGARCH64 uses the asm-generic syscall numbers */
+#define __NR_process_vm_readv 270
+#define __NR_process_vm_writev 271
+
#else
#error "Unsupported architecture for process_vm_readv and process_vm_writev syscalls"
#endif
--
2.33.0

View File

@ -1,6 +1,6 @@
Name: openmpi
Version: 4.1.5
Release: 1
Release: 6
Summary: Open Source High Performance Computing
License: BSD-3-Clause
URL: http://www.open-mpi.org/
@ -9,11 +9,17 @@ Source1: openmpi.module.in
Source2: openmpi.pth.py3
Source3: macros.openmpi
Patch1000: add-riscv64-support.patch
%ifarch loongarch64
Patch1001: 0001-add-loongarch64-support-for-openmpi.patch
%endif
BuildRequires: gcc-c++, gcc-gfortran
BuildRequires: valgrind-devel, hwloc-devel, java-devel, libfabric-devel, papi-devel
%ifarch %{valgrind_arches}
BuildRequires: valgrind-devel
%endif
BuildRequires: hwloc-devel, java-devel, libfabric-devel, papi-devel
BuildRequires: libibverbs-devel >= 1.1.3, opensm-devel > 3.3.0
BuildRequires: librdmacm-devel, rdma-core-devel, pmix-devel
BuildRequires: librdmacm librdmacm-devel, rdma-core-devel, pmix-devel
BuildRequires: hwloc-gui chrpath
BuildRequires: perl-generators, perl(Getopt::Long)
BuildRequires: python3-devel libevent-devel
@ -21,6 +27,9 @@ BuildRequires: automake libtool
%ifarch x86_64
BuildRequires: infinipath-psm-devel, libpsm2-devel zlib-devel
%endif
%ifarch loongarch64
BuildRequires: automake
%endif
Provides: mpi, %{name}-java
Requires: environment(modules), openssh-clients
@ -40,10 +49,15 @@ community in order to build the best MPI library available.
%global name_all openmpi-aarch64
%elifarch riscv64
%global name_all openmpi-riscv64
%else
%elifarch ppc64le
%global name_all openmpi-ppc64le
%elifarch x86_64
%global name_all openmpi-x86_64
%elifarch loongarch64
%global name_all openmpi-loongarch64
%else
%global namearch openmpi-%{_arch}
%endif
#%global namearch openmpi-%{_arch}
%package devel
Summary: Development files for openmpi
@ -84,14 +98,15 @@ This contains man files for the using of openmpi.
--sysconfdir=%{_sysconfdir}/%{name_all} \
--disable-silent-rules \
--enable-builtin-atomics \
--enable-memchecker \
--enable-mpi-thread-multiple \
--enable-mpi-cxx \
--enable-mpi-java \
--enable-mpi1-compatibility \
--with-sge \
%ifarch %{valgrind_arches}
--with-valgrind \
--enable-memchecker \
%endif
--with-hwloc=/usr \
--with-pmix=external \
--with-libevent=external \
@ -218,6 +233,21 @@ make check
%{_mandir}/%{name_all}/man*/*
%changelog
* Fri Jun 07 2024 wangqiang <wangqiang1@kylinos.cn> - 4.1.5-6
- Fix name_all
* Tue Mar 05 2024 laokz <zhangkai@iscas.ac.cn> - 4.1.5-5
- let BuildRequire valgrind depend on system %{valgrind_arches}
* Tue Jan 16 2024 peng.zou <peng.zou@shingroup.cn> - 4.1.5-4
- Add ppc64le support
* Wed Jan 10 2024 xu_ping<707078654@qq.com> - 4.1.5-3
- fix build error due to rdma-core separate some packages.
* Thu Jul 20 2023 Wenlong Zhang<zhangwenlong@loongson.cn> - 4.1.5-2
- fix build error that automake can not be found
* Fri Apr 21 2023 wulei <wu_lei@hoperun.com> - 4.1.5-1
- Upgrade package to version 4.1.5