commit 7a992745dd100cb3030fadb40f6c99158eb80cb5760053719815fc526317a929 Author: Jan Engelhardt Date: Sat Jan 4 10:24:58 2025 +0000 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 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..e88ff0c --- /dev/null +++ b/_service @@ -0,0 +1,18 @@ + + + + https://github.com/oneapi-src/unified-runtime.git + git + v0.11.2 + @PARENT_TAG@ + v(.*) + + + + + + gz + unified-runtime-*.tar + + + diff --git a/remove-link.patch b/remove-link.patch new file mode 100644 index 0000000..41ec135 --- /dev/null +++ b/remove-link.patch @@ -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 + ) diff --git a/unified-runtime-0.11.2.obscpio b/unified-runtime-0.11.2.obscpio new file mode 100644 index 0000000..3a0087c --- /dev/null +++ b/unified-runtime-0.11.2.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6efa71c7fedd956f51836aabad322e736c16636fd23c2507203ceb5ab642237e +size 11042317 diff --git a/unified-runtime.changes b/unified-runtime.changes new file mode 100644 index 0000000..9c2a5a6 --- /dev/null +++ b/unified-runtime.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Sat Jan 4 01:01:14 UTC 2025 - Eyad Issa + +- Initial packaging at v0.11.2 diff --git a/unified-runtime.obsinfo b/unified-runtime.obsinfo new file mode 100644 index 0000000..4da6cee --- /dev/null +++ b/unified-runtime.obsinfo @@ -0,0 +1,4 @@ +name: unified-runtime +version: 0.11.2 +mtime: 1734693466 +commit: 02582da9eb974dc6a3df6fa2e26ec1a3579840f1 diff --git a/unified-runtime.spec b/unified-runtime.spec new file mode 100644 index 0000000..e349ef4 --- /dev/null +++ b/unified-runtime.spec @@ -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