2015-10-08 08:24:03 +02:00
|
|
|
#
|
|
|
|
# spec file for package openucx
|
|
|
|
#
|
2020-06-05 10:02:58 +02:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2015-10-08 08:24:03 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-11-06 13:02:30 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-10-08 08:24:03 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: openucx
|
2020-06-05 10:02:58 +02:00
|
|
|
Version: 1.8.0
|
2015-10-08 08:24:03 +02:00
|
|
|
Release: 0
|
2020-06-05 12:06:01 +02:00
|
|
|
Summary: Communication layer for Message Passing (MPI)
|
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: Development/Libraries/C and C++
|
2020-06-05 10:02:58 +02:00
|
|
|
URL: http://openucx.org/
|
2015-10-08 08:24:03 +02:00
|
|
|
|
|
|
|
#Git-Clone: git://github.com/openucx/ucx
|
|
|
|
#Git-Web: https://github.com/openucx/ucx
|
2017-09-19 15:53:14 +02:00
|
|
|
Source: https://github.com/openucx/ucx/releases/download/v%version/ucx-%version.tar.gz
|
2019-02-25 17:53:29 +01:00
|
|
|
Source1: baselibs.conf
|
2017-09-19 15:53:14 +02:00
|
|
|
Patch1: openucx-s390x-support.patch
|
2015-10-08 08:24:03 +02:00
|
|
|
BuildRequires: autoconf >= 2.63
|
|
|
|
BuildRequires: automake >= 1.10
|
2017-07-12 19:33:54 +02:00
|
|
|
BuildRequires: binutils-devel
|
2015-10-08 08:24:03 +02:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libibverbs-devel
|
2018-06-23 10:34:02 +02:00
|
|
|
%if 0%{?suse_version} < 1330
|
|
|
|
%ifnarch s390x
|
2017-07-12 19:33:54 +02:00
|
|
|
BuildRequires: libnuma-devel
|
2018-06-23 10:34:02 +02:00
|
|
|
%endif
|
|
|
|
%else
|
|
|
|
BuildRequires: libnuma-devel
|
|
|
|
%endif
|
2015-10-08 08:24:03 +02:00
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2017-07-12 19:33:54 +02:00
|
|
|
ExclusiveArch: aarch64 %power64 x86_64 s390x
|
2015-10-08 08:24:03 +02:00
|
|
|
|
|
|
|
%description
|
2020-06-05 12:06:01 +02:00
|
|
|
UCX stands for Unified Communication X. UCX provides a communication
|
|
|
|
layer for Message Passing (MPI), PGAS/OpenSHMEM libraries and
|
|
|
|
RPC/data-centric applications. UCX utilizes networks such as RDMA
|
|
|
|
(InfiniBand, RoCE, etc), Cray Gemini or Aries, for inter-node
|
|
|
|
communication, or TCP. UCX supports transfer of data in either main
|
|
|
|
memory (RAM) or GPU memory (through CUDA and ROCm libraries). UCX
|
|
|
|
provides intra-node communication by using shared memory mechanisms.
|
2015-10-08 08:24:03 +02:00
|
|
|
|
|
|
|
%package tools
|
|
|
|
Summary: OpenUCX utilities
|
|
|
|
Group: System/Console
|
|
|
|
|
|
|
|
%description tools
|
|
|
|
Miscallaneous utilities for Unified Communication X.
|
|
|
|
|
2016-06-19 10:50:43 +02:00
|
|
|
%package -n libucm0
|
|
|
|
Summary: Memory (un)happing hooks for Unified Communication X
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libucm0
|
|
|
|
libucm is a standalone non-unloadable library which installs hooks
|
2020-06-05 12:06:01 +02:00
|
|
|
for virtual memory changes in the current process.
|
2016-06-19 10:50:43 +02:00
|
|
|
|
|
|
|
%package -n libucm-devel
|
|
|
|
Summary: Development files for Unified Communication X Memory Hooks
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libucm0 = %version
|
|
|
|
|
|
|
|
%description -n libucm-devel
|
|
|
|
libucm is a standalone non-unloadable library which installs hooks
|
|
|
|
for virtual memory changes in the current process.
|
|
|
|
|
2017-07-12 19:33:54 +02:00
|
|
|
%package -n libucp0
|
2015-10-08 08:24:03 +02:00
|
|
|
Summary: Infiniband Unified Communication Protocols
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2017-07-12 19:33:54 +02:00
|
|
|
%description -n libucp0
|
2015-10-08 08:24:03 +02:00
|
|
|
High-level API uses UCT framework to construct protocols commonly
|
|
|
|
found in applications (MPI, OpenSHMEM, PGAS, etc.)
|
|
|
|
|
|
|
|
%package -n libucp-devel
|
|
|
|
Summary: Development files for Unified Communication Protocols (UC-P)
|
|
|
|
Group: Development/Libraries/C and C++
|
2017-07-12 19:33:54 +02:00
|
|
|
Requires: libucp0 = %version
|
2015-10-08 08:24:03 +02:00
|
|
|
|
|
|
|
%description -n libucp-devel
|
|
|
|
High-level API uses UCT framework to construct protocols commonly
|
|
|
|
found in applications (MPI, OpenSHMEM, PGAS, etc.)
|
|
|
|
|
2017-07-12 19:33:54 +02:00
|
|
|
%package -n libucs0
|
2015-10-08 08:24:03 +02:00
|
|
|
Summary: Infiniband Unicified Communication Services
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2017-07-12 19:33:54 +02:00
|
|
|
%description -n libucs0
|
2020-06-05 12:06:01 +02:00
|
|
|
This framework provides infrastructure for component based
|
|
|
|
programming, memory management, and system utilities.
|
2015-10-08 08:24:03 +02:00
|
|
|
|
|
|
|
%package -n libucs-devel
|
|
|
|
Summary: Development files for Unified Communication Services (UC-S)
|
|
|
|
Group: Development/Libraries/C and C++
|
2017-07-12 19:33:54 +02:00
|
|
|
Requires: libucs0 = %version
|
2015-10-08 08:24:03 +02:00
|
|
|
|
|
|
|
%description -n libucs-devel
|
2020-06-05 12:06:01 +02:00
|
|
|
This framework provides infrastructure for component based
|
|
|
|
programming, memory management, and system utilities.
|
2015-10-08 08:24:03 +02:00
|
|
|
|
2017-07-12 19:33:54 +02:00
|
|
|
%package -n libuct0
|
2015-10-08 08:24:03 +02:00
|
|
|
Summary: Infiniband Unified Communication Transport
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2017-07-12 19:33:54 +02:00
|
|
|
%description -n libuct0
|
2020-06-05 12:06:01 +02:00
|
|
|
Low-level API that expose network operations supported by underlying
|
|
|
|
hardware.
|
2015-10-08 08:24:03 +02:00
|
|
|
|
|
|
|
%package -n libuct-devel
|
|
|
|
Summary: Development files for Unified Communication Transport (UC-T)
|
|
|
|
Group: Development/Libraries/C and C++
|
2017-07-12 19:33:54 +02:00
|
|
|
Requires: libuct0 = %version
|
2015-10-08 08:24:03 +02:00
|
|
|
|
|
|
|
%description -n libuct-devel
|
2020-06-05 12:06:01 +02:00
|
|
|
Low-level API that expose network operations supported by underlying
|
|
|
|
hardware.
|
2015-10-08 08:24:03 +02:00
|
|
|
|
|
|
|
%prep
|
2017-09-19 15:53:14 +02:00
|
|
|
%setup -qn ucx-%version
|
2018-08-09 12:25:09 +02:00
|
|
|
%patch1
|
2015-10-08 08:24:03 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -fi
|
2017-07-12 19:33:54 +02:00
|
|
|
export UCX_CFLAGS="%optflags -Wno-error"
|
|
|
|
%ifarch x86_64
|
|
|
|
export UCX_CFLAGS="$UCX_CFLAGS -mno-avx"
|
|
|
|
%endif
|
|
|
|
%ifarch %ix86
|
|
|
|
export UCX_CFLAGS="$UCX_CFLAGS -mno-sse -mno-sse2"
|
|
|
|
%endif
|
2018-06-23 10:34:02 +02:00
|
|
|
%configure --disable-static --without-avx \
|
|
|
|
%if 0%{?suse_version} < 1330
|
|
|
|
%ifarch s390x
|
|
|
|
--disable-numa \
|
|
|
|
%endif
|
|
|
|
%endif
|
2019-09-27 10:19:55 +02:00
|
|
|
--docdir="%_docdir/%name" \
|
|
|
|
--disable-debug --disable-assertions \
|
|
|
|
--disable-params-check \
|
|
|
|
--with-rc --with-ud --with-dc \
|
|
|
|
--with-mlx5-dv --with-rdmacm
|
2018-06-23 10:34:02 +02:00
|
|
|
|
2019-05-15 08:01:04 +02:00
|
|
|
# Override BASE_CFLAGS to disable Werror (boo#1121267)
|
|
|
|
make %{?_smp_mflags} V=1 BASE_CFLAGS="-g -Wall"
|
2017-07-12 19:33:54 +02:00
|
|
|
|
|
|
|
%post -n libucp0 -p /sbin/ldconfig
|
|
|
|
%postun -n libucp0 -p /sbin/ldconfig
|
|
|
|
%post -n libucs0 -p /sbin/ldconfig
|
|
|
|
%postun -n libucs0 -p /sbin/ldconfig
|
|
|
|
%post -n libuct0 -p /sbin/ldconfig
|
|
|
|
%postun -n libuct0 -p /sbin/ldconfig
|
2016-06-19 10:50:43 +02:00
|
|
|
%post -n libucm0 -p /sbin/ldconfig
|
|
|
|
%postun -n libucm0 -p /sbin/ldconfig
|
2015-10-08 08:24:03 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
rm -fv "%buildroot/%_libdir"/*.la
|
2019-09-27 10:19:55 +02:00
|
|
|
rm -fv "%buildroot/%_libdir"/ucx/*.la
|
2018-08-09 12:25:09 +02:00
|
|
|
# Rename example dir for consistency with the package name
|
|
|
|
mv %buildroot/%_datadir/ucx %buildroot/%_datadir/openucx
|
2015-10-08 08:24:03 +02:00
|
|
|
|
|
|
|
%files tools
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_bindir/ucx_*
|
2018-08-09 12:25:09 +02:00
|
|
|
%_datadir/%{name}/
|
2017-07-12 19:33:54 +02:00
|
|
|
%_libdir/pkgconfig/ucx.pc
|
2018-10-25 12:50:06 +02:00
|
|
|
%doc LICENSE NEWS
|
2015-10-08 08:24:03 +02:00
|
|
|
|
2016-06-19 10:50:43 +02:00
|
|
|
%files -n libucm0
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libucm.so.*
|
|
|
|
|
|
|
|
%files -n libucm-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_includedir/ucm/
|
|
|
|
%_libdir/libucm.so
|
|
|
|
|
2017-07-12 19:33:54 +02:00
|
|
|
%files -n libucp0
|
2015-10-08 08:24:03 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libucp.so.*
|
|
|
|
|
|
|
|
%files -n libucp-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_includedir/ucp/
|
|
|
|
%_libdir/libucp.so
|
|
|
|
|
2017-07-12 19:33:54 +02:00
|
|
|
%files -n libucs0
|
2015-10-08 08:24:03 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libucs.so.*
|
|
|
|
|
|
|
|
%files -n libucs-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_includedir/ucs/
|
|
|
|
%_libdir/libucs.so
|
|
|
|
|
2017-07-12 19:33:54 +02:00
|
|
|
%files -n libuct0
|
2015-10-08 08:24:03 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libuct.so.*
|
2019-09-27 10:19:55 +02:00
|
|
|
%dir %_libdir/ucx/
|
|
|
|
%_libdir/ucx/libuct_*.so.*
|
2015-10-08 08:24:03 +02:00
|
|
|
|
|
|
|
%files -n libuct-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_includedir/uct/
|
|
|
|
%_libdir/libuct.so
|
2019-10-04 10:22:04 +02:00
|
|
|
%dir %_libdir/ucx/
|
2019-09-27 10:19:55 +02:00
|
|
|
%_libdir/ucx/libuct_*.so
|
2015-10-08 08:24:03 +02:00
|
|
|
|
|
|
|
%changelog
|