Unified Runtime is a programming framework under Intel’s oneAPI initiative that provides a single, consistent runtime layer for managing execution across diverse compute platforms, including CPUs, GPUs, FPGAs, and other accelerators. It abstracts the complexities of working with multiple vendor-specific runtimes, enabling seamless portability and efficiency.
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/unified-runtime?expand=0&rev=1
This commit is contained in:
commit
7a992745dd
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal 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
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
18
_service
Normal file
18
_service
Normal 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-runtime.git</param>
|
||||||
|
<param name="scm">git</param>
|
||||||
|
<param name="revision">v0.11.2</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-runtime-*.tar</param>
|
||||||
|
</service>
|
||||||
|
|
||||||
|
</services>
|
10
remove-link.patch
Normal file
10
remove-link.patch
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
diff --git a/source/common/CMakeLists.txt b/source/common/CMakeLists.txt
|
||||||
|
index b5fb64cf..3caa499b 100644
|
||||||
|
--- a/source/common/CMakeLists.txt
|
||||||
|
+++ b/source/common/CMakeLists.txt
|
||||||
|
@@ -119,5 +119,4 @@ add_library(${PROJECT_NAME}::umf ALIAS ur_umf)
|
||||||
|
target_link_libraries(ur_umf INTERFACE
|
||||||
|
umf::umf
|
||||||
|
umf::headers
|
||||||
|
- umf::disjoint_pool
|
||||||
|
)
|
3
unified-runtime-0.11.2.obscpio
Normal file
3
unified-runtime-0.11.2.obscpio
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:6efa71c7fedd956f51836aabad322e736c16636fd23c2507203ceb5ab642237e
|
||||||
|
size 11042317
|
4
unified-runtime.changes
Normal file
4
unified-runtime.changes
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Jan 4 01:01:14 UTC 2025 - Eyad Issa <eyadlorenzo@gmail.com>
|
||||||
|
|
||||||
|
- Initial packaging at v0.11.2
|
4
unified-runtime.obsinfo
Normal file
4
unified-runtime.obsinfo
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
name: unified-runtime
|
||||||
|
version: 0.11.2
|
||||||
|
mtime: 1734693466
|
||||||
|
commit: 02582da9eb974dc6a3df6fa2e26ec1a3579840f1
|
139
unified-runtime.spec
Normal file
139
unified-runtime.spec
Normal file
@ -0,0 +1,139 @@
|
|||||||
|
#
|
||||||
|
# spec file for package unified-runtime
|
||||||
|
#
|
||||||
|
# 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/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
Name: unified-runtime
|
||||||
|
Version: 0.11.2
|
||||||
|
Release: 0
|
||||||
|
Summary: oneAPI Unified Runtime (UR)
|
||||||
|
License: Apache-2.0
|
||||||
|
URL: https://github.com/oneapi-src/unified-runtime
|
||||||
|
Source0: %{name}-%{version}.tar.gz
|
||||||
|
Patch1: remove-link.patch
|
||||||
|
BuildRequires: cmake
|
||||||
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: ninja
|
||||||
|
BuildRequires: ocl-icd-devel
|
||||||
|
BuildRequires: opencl-headers
|
||||||
|
BuildRequires: unified-memory-framework-devel
|
||||||
|
|
||||||
|
%description
|
||||||
|
The objective of the oneAPI Unified Runtime is to provide a unified interface
|
||||||
|
to device agnostic runtimes such as DPC++ across a wide variety of software platforms.
|
||||||
|
The unified runtime provides extensibility where new backends can be developed to
|
||||||
|
support new software platforms and devices.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Development files for the oneAPI Unified Runtime
|
||||||
|
Requires: pkgconfig
|
||||||
|
Requires: unified-memory-framework-devel
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
The objective of the oneAPI Unified Runtime is to provide a unified interface
|
||||||
|
to device agnostic runtimes such as DPC++ across a wide variety of software platforms.
|
||||||
|
|
||||||
|
This package contains the development files for the oneAPI Unified Runtime.
|
||||||
|
|
||||||
|
%package -n libur_loader0
|
||||||
|
Summary: Shared libraries for the oneAPI Unified Runtime
|
||||||
|
|
||||||
|
%description -n libur_loader0
|
||||||
|
The objective of the oneAPI Unified Runtime is to provide a unified interface
|
||||||
|
to device agnostic runtimes such as DPC++ across a wide variety of software platforms.
|
||||||
|
|
||||||
|
This package contains the shared libraries for the oneAPI Unified Runtime.
|
||||||
|
|
||||||
|
%package -n libur_adapter_native_cpu0
|
||||||
|
Summary: Shared libraries for the oneAPI Unified Runtime native CPU adapter
|
||||||
|
|
||||||
|
%description -n libur_adapter_native_cpu0
|
||||||
|
The objective of the oneAPI Unified Runtime is to provide a unified interface
|
||||||
|
to device agnostic runtimes such as DPC++ across a wide variety of software platforms.
|
||||||
|
|
||||||
|
This package contains the shared libraries for the oneAPI Unified Runtime native CPU adapter.
|
||||||
|
|
||||||
|
%package -n libur_adapter_opencl0
|
||||||
|
Summary: Shared libraries for the oneAPI Unified Runtime OpenCL adapter
|
||||||
|
|
||||||
|
%description -n libur_adapter_opencl0
|
||||||
|
The objective of the oneAPI Unified Runtime is to provide a unified interface
|
||||||
|
to device agnostic runtimes such as DPC++ across a wide variety of software platforms.
|
||||||
|
|
||||||
|
This package contains the shared libraries for the oneAPI Unified Runtime OpenCL adapter.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
%define __builder ninja
|
||||||
|
%cmake \
|
||||||
|
-DUR_USE_EXTERNAL_UMF=ON \
|
||||||
|
-DUR_BUILD_TESTS=OFF \
|
||||||
|
-DUR_BUILD_ADAPTER_NATIVE_CPU=ON \
|
||||||
|
-DUR_BUILD_ADAPTER_OPENCL=ON \
|
||||||
|
-DUR_OPENCL_INCLUDE_DIR=%{_includedir} \
|
||||||
|
-DCMAKE_SKIP_RPATH=ON
|
||||||
|
%cmake_build
|
||||||
|
%cmake_build urinfo
|
||||||
|
|
||||||
|
%install
|
||||||
|
%cmake_install
|
||||||
|
|
||||||
|
install -Dm 755 build/bin/urinfo %{buildroot}%{_bindir}/urinfo
|
||||||
|
|
||||||
|
rm %{buildroot}%{_includedir}/.clang-format
|
||||||
|
rm %{buildroot}%{_libdir}/libur_common.a
|
||||||
|
|
||||||
|
%ldconfig_scriptlets -n libur_loader0
|
||||||
|
%ldconfig_scriptlets -n libur_adapter_native_cpu0
|
||||||
|
%ldconfig_scriptlets -n libur_adapter_opencl0
|
||||||
|
|
||||||
|
%ldconfig_scriptlets
|
||||||
|
|
||||||
|
%files
|
||||||
|
%license LICENSE.TXT
|
||||||
|
%doc README.md
|
||||||
|
%{_bindir}/urinfo
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%{_includedir}/ur_api.h
|
||||||
|
%{_includedir}/ur_api_funcs.def
|
||||||
|
%{_includedir}/ur_ddi.h
|
||||||
|
%{_includedir}/ur_print.h
|
||||||
|
%{_includedir}/ur_print.hpp
|
||||||
|
%{_libdir}/pkgconfig/libur_loader.pc
|
||||||
|
|
||||||
|
%dir %{_prefix}/lib/cmake/
|
||||||
|
%{_prefix}/lib/cmake/unified-runtime/
|
||||||
|
|
||||||
|
%{_libdir}/libur_loader.so
|
||||||
|
%{_libdir}/libur_loader.so.0
|
||||||
|
%{_libdir}/libur_adapter_native_cpu.so
|
||||||
|
%{_libdir}/libur_adapter_native_cpu.so.0
|
||||||
|
%{_libdir}/libur_adapter_opencl.so
|
||||||
|
%{_libdir}/libur_adapter_opencl.so.0
|
||||||
|
|
||||||
|
%files -n libur_loader0
|
||||||
|
%{_libdir}/libur_loader.so.0.11.2
|
||||||
|
|
||||||
|
%files -n libur_adapter_native_cpu0
|
||||||
|
%{_libdir}/libur_adapter_native_cpu.so.0.11.2
|
||||||
|
|
||||||
|
%files -n libur_adapter_opencl0
|
||||||
|
%{_libdir}/libur_adapter_opencl.so.0.11.2
|
||||||
|
|
||||||
|
%changelog
|
Loading…
Reference in New Issue
Block a user