8
0

Unified Memory Framework is a programming abstraction that simplifies memory management in heterogeneous computing systems by providing a unified address space accessible across CPUs and accelerators (e.g., GPUs). It eliminates the need for manual memory transfers between host and device, streamlining development and improving productivity.

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/unified-memory-framework?expand=0&rev=1
This commit is contained in:
2025-01-04 10:16:21 +00:00
committed by Git OBS Bridge
commit 5a816729e0
7 changed files with 171 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

18
_service Normal file
View File

@@ -0,0 +1,18 @@
<services>
<service name="format_spec_file" mode="manual" />
<service name="obs_scm" mode="manual">
<param name="url">https://github.com/oneapi-src/unified-memory-framework.git</param>
<param name="scm">git</param>
<param name="revision">v0.10.0</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="versionrewrite-pattern">v(.*)</param>
</service>
<service name="set_version" mode="manual" />
<service name="tar" mode="buildtime" />
<service name="recompress" mode="buildtime">
<param name="compression">gz</param>
<param name="file">unified-memory-framework-*.tar</param>
</service>
</services>

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8b6ed5bc9fc411a4e31d6974e30701d1c9c684819c9adf1062eb9671dc26d141
size 2285068

View File

@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Fri Jan 3 23:43:49 UTC 2025 - Eyad Issa <eyadlorenzo@gmail.com>
- Initial packaging at v0.10.0

View File

@@ -0,0 +1,4 @@
name: unified-memory-framework
version: 0.10.0
mtime: 1733760097
commit: ee6a7115618f1660a5c17b8b537bba0ff094c648

View File

@@ -0,0 +1,118 @@
#
# spec file for package unified-memory-framework
#
# Copyright (c) 2025 SUSE LLC
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define libname libumf0
Name: unified-memory-framework
Version: 0.10.0
Release: 0
Summary: oneAPI Unified Memory Framework (UMF)
License: Apache-2.0
URL: https://github.com/oneapi-src/unified-memory-framework
Source0: %{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: hwloc-devel
BuildRequires: level-zero-devel
BuildRequires: libnuma-devel
BuildRequires: ninja
BuildRequires: tbb-devel
%description
The Unified Memory Framework (UMF) is a library for constructing allocators
and memory pools. It also contains broadly useful abstractions and utilities
for memory management. UMF allows users to manage multiple memory pools characterized
by different attributes, allowing certain allocation types to be isolated
from others and allocated using different hardware resources as required.
%package -n %{libname}
Summary: oneAPI Unified Memory Framework (UMF)
%description -n %{libname}
The Unified Memory Framework (UMF) is a library for constructing allocators
and memory pools. UMF allows users to manage multiple memory pools characterized
by different attributes, allowing certain allocation types to be isolated
from others and allocated using different hardware resources as required.
%package devel
Summary: Development files for %{name}
Requires: %{libname} = %{version}
Requires: level-zero-devel
Recommends: %{name}-doc
%description devel
The Unified Memory Framework (UMF) is a library for constructing allocators
and memory pools.
This package contains the development files for UMF.
%package doc
Summary: Documentation for %{name}
BuildArch: noarch
%description doc
The Unified Memory Framework (UMF) is a library for constructing allocators
and memory pools.
This package contains the documentation for UMF.
%prep
%autosetup -p1
%build
%define __builder ninja
%cmake \
-DUMF_BUILD_TESTS=OFF \
-DUMF_BUILD_SHARED_LIBRARY=ON \
-DUMF_LEVEL_ZERO_INCLUDE_DIR=%{_includedir}/level_zero \
-DUMF_BUILD_CUDA_PROVIDER=OFF
%cmake_build
%install
%cmake_install
rm %{buildroot}%{_datadir}/doc/umf/licensing/third-party-programs.txt
rm %{buildroot}%{_datadir}/doc/umf/LICENSE.TXT
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files -n %{libname}
# licenses
%license LICENSE.TXT
%doc README.md
%doc licensing/third-party-programs.txt
%{_libdir}/libumf.so.0.0.0
%{_libdir}/libumf_proxy.so.0
%files devel
%{_libdir}/libumf.so
%{_libdir}/libumf.so.0
%{_libdir}/libumf_proxy.so
%{_includedir}/umf.h
%{_includedir}/umf/
%{_libdir}/cmake/umf/
%files doc
%if 0%{?sle_version} == 150500
%{_datadir}/doc/umf/
%else
%{_docdir}/unified-memory-framework/
%endif
%changelog