[info=f520dc5c59d582f1cc1439ef11d39e927c7c6fb1d66f00a29387cdc206274a17]
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/unified-runtime?expand=0&rev=4
This commit is contained in:
parent
ee9899420a
commit
1644b6d377
@ -1,4 +1,4 @@
|
||||
mtime: 1735986864
|
||||
commit: bb787aecd0c45eef702d3ca46c99bb7b7fcd0480ae304d455c03b362461f1a02
|
||||
mtime: 1736463510
|
||||
commit: f520dc5c59d582f1cc1439ef11d39e927c7c6fb1d66f00a29387cdc206274a17
|
||||
url: https://src.opensuse.org/clibs/unified-runtime
|
||||
revision: master
|
||||
|
@ -1,4 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 6 17:06:15 UTC 2025 - Eyad Issa <eyadlorenzo@gmail.com>
|
||||
|
||||
- Build OpenCL adapter only on supported platforms (OpenCL 3.0)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jan 4 01:01:14 UTC 2025 - Eyad Issa <eyadlorenzo@gmail.com>
|
||||
|
||||
- Initial packaging at v0.11.2
|
||||
- Initial packaging at v0.11.2
|
||||
|
@ -16,6 +16,11 @@
|
||||
#
|
||||
|
||||
|
||||
%if 0%{?suse_version} > 1600
|
||||
%bcond_without opencl_adapter
|
||||
%else
|
||||
%bcond_with opencl_adapter
|
||||
%endif
|
||||
Name: unified-runtime
|
||||
Version: 0.11.2
|
||||
Release: 0
|
||||
@ -27,9 +32,11 @@ Patch1: remove-link.patch
|
||||
BuildRequires: cmake
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: ninja
|
||||
BuildRequires: ocl-icd-devel
|
||||
BuildRequires: opencl-headers
|
||||
BuildRequires: unified-memory-framework-devel
|
||||
BuildRequires: pkgconfig
|
||||
%if %{with opencl_adapter}
|
||||
BuildRequires: pkgconfig(OpenCL)
|
||||
%endif
|
||||
|
||||
%description
|
||||
oneAPI Unified Runtime (UR) provides a unified interface to device
|
||||
@ -66,6 +73,7 @@ agnostic runtimes such as DPC++.
|
||||
|
||||
This package contains the oneAPI Unified Runtime native CPU adapter.
|
||||
|
||||
%if %{with opencl_adapter}
|
||||
%package -n libur_adapter_opencl0
|
||||
Summary: oneAPI Unified Runtime OpenCL adapter
|
||||
|
||||
@ -74,6 +82,7 @@ oneAPI Unified Runtime (UR) provides a unified interface to device
|
||||
agnostic runtimes such as DPC++.
|
||||
|
||||
This package contains the oneAPI Unified Runtime OpenCL adapter.
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%autosetup -p1
|
||||
@ -84,8 +93,10 @@ This package contains the oneAPI Unified Runtime OpenCL adapter.
|
||||
-DUR_USE_EXTERNAL_UMF=ON \
|
||||
-DUR_BUILD_TESTS=OFF \
|
||||
-DUR_BUILD_ADAPTER_NATIVE_CPU=ON \
|
||||
%if %{with opencl_adapter}
|
||||
-DUR_BUILD_ADAPTER_OPENCL=ON \
|
||||
-DUR_OPENCL_INCLUDE_DIR=%{_includedir} \
|
||||
%endif
|
||||
-DCMAKE_SKIP_RPATH=ON
|
||||
%cmake_build
|
||||
%cmake_build urinfo
|
||||
@ -100,7 +111,10 @@ rm %{buildroot}%{_libdir}/libur_common.a
|
||||
|
||||
%ldconfig_scriptlets -n libur_loader0
|
||||
%ldconfig_scriptlets -n libur_adapter_native_cpu0
|
||||
|
||||
%if %{with opencl_adapter}
|
||||
%ldconfig_scriptlets -n libur_adapter_opencl0
|
||||
%endif
|
||||
|
||||
%files
|
||||
%license LICENSE.TXT
|
||||
@ -117,10 +131,12 @@ rm %{buildroot}%{_libdir}/libur_common.a
|
||||
|
||||
%dir %{_prefix}/lib/cmake/
|
||||
%{_prefix}/lib/cmake/unified-runtime/
|
||||
|
||||
%{_libdir}/libur_loader.so
|
||||
%{_libdir}/libur_adapter_native_cpu.so
|
||||
|
||||
%if %{with opencl_adapter}
|
||||
%{_libdir}/libur_adapter_opencl.so
|
||||
%endif
|
||||
|
||||
%files -n libur_loader0
|
||||
%{_libdir}/libur_loader.so.0
|
||||
@ -130,8 +146,10 @@ rm %{buildroot}%{_libdir}/libur_common.a
|
||||
%{_libdir}/libur_adapter_native_cpu.so.0
|
||||
%{_libdir}/libur_adapter_native_cpu.so.0.11.2
|
||||
|
||||
%if %{with opencl_adapter}
|
||||
%files -n libur_adapter_opencl0
|
||||
%{_libdir}/libur_adapter_opencl.so.0
|
||||
%{_libdir}/libur_adapter_opencl.so.0.11.2
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
|
Loading…
Reference in New Issue
Block a user