Accepting request 1238355 from devel:libraries:c_c++
- Added the static library to the devel package OBS-URL: https://build.opensuse.org/request/show/1238355 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/unified-runtime?expand=0&rev=2
This commit is contained in:
commit
3d720bb301
@ -1,4 +1,4 @@
|
|||||||
mtime: 1735986864
|
mtime: 1736534830
|
||||||
commit: bb787aecd0c45eef702d3ca46c99bb7b7fcd0480ae304d455c03b362461f1a02
|
commit: 5310eda1249daad245a0f2a4390ff4848af0097b720f540187655e9a41ddec72
|
||||||
url: https://src.opensuse.org/clibs/unified-runtime
|
url: https://src.opensuse.org/clibs/unified-runtime
|
||||||
revision: master
|
revision: master
|
||||||
|
@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 10 18:46:12 UTC 2025 - Eyad Issa <eyadlorenzo@gmail.com>
|
||||||
|
|
||||||
|
- Added the static library to the devel package
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
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>
|
Sat Jan 4 01:01:14 UTC 2025 - Eyad Issa <eyadlorenzo@gmail.com>
|
||||||
|
|
||||||
|
@ -16,6 +16,11 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%if 0%{?suse_version} > 1600
|
||||||
|
%bcond_without opencl_adapter
|
||||||
|
%else
|
||||||
|
%bcond_with opencl_adapter
|
||||||
|
%endif
|
||||||
Name: unified-runtime
|
Name: unified-runtime
|
||||||
Version: 0.11.2
|
Version: 0.11.2
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -27,9 +32,11 @@ Patch1: remove-link.patch
|
|||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: ninja
|
BuildRequires: ninja
|
||||||
BuildRequires: ocl-icd-devel
|
|
||||||
BuildRequires: opencl-headers
|
|
||||||
BuildRequires: unified-memory-framework-devel
|
BuildRequires: unified-memory-framework-devel
|
||||||
|
BuildRequires: pkgconfig
|
||||||
|
%if %{with opencl_adapter}
|
||||||
|
BuildRequires: pkgconfig(OpenCL)
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
oneAPI Unified Runtime (UR) provides a unified interface to device
|
oneAPI Unified Runtime (UR) provides a unified interface to device
|
||||||
@ -80,12 +87,17 @@ This package contains the oneAPI Unified Runtime OpenCL adapter.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%define __builder ninja
|
%define __builder ninja
|
||||||
|
# the static library is needed by the produced cmake files
|
||||||
|
# otherwise, when using find_package, CMake throws an error
|
||||||
|
%global _lto_cflags %{?_lto_cflags} -ffat-lto-objects
|
||||||
%cmake \
|
%cmake \
|
||||||
-DUR_USE_EXTERNAL_UMF=ON \
|
-DUR_USE_EXTERNAL_UMF=ON \
|
||||||
-DUR_BUILD_TESTS=OFF \
|
-DUR_BUILD_TESTS=OFF \
|
||||||
-DUR_BUILD_ADAPTER_NATIVE_CPU=ON \
|
-DUR_BUILD_ADAPTER_NATIVE_CPU=ON \
|
||||||
|
%if %{with opencl_adapter}
|
||||||
-DUR_BUILD_ADAPTER_OPENCL=ON \
|
-DUR_BUILD_ADAPTER_OPENCL=ON \
|
||||||
-DUR_OPENCL_INCLUDE_DIR=%{_includedir} \
|
-DUR_OPENCL_INCLUDE_DIR=%{_includedir} \
|
||||||
|
%endif
|
||||||
-DCMAKE_SKIP_RPATH=ON
|
-DCMAKE_SKIP_RPATH=ON
|
||||||
%cmake_build
|
%cmake_build
|
||||||
%cmake_build urinfo
|
%cmake_build urinfo
|
||||||
@ -96,11 +108,13 @@ This package contains the oneAPI Unified Runtime OpenCL adapter.
|
|||||||
install -Dm 755 build/bin/urinfo %{buildroot}%{_bindir}/urinfo
|
install -Dm 755 build/bin/urinfo %{buildroot}%{_bindir}/urinfo
|
||||||
|
|
||||||
rm %{buildroot}%{_includedir}/.clang-format
|
rm %{buildroot}%{_includedir}/.clang-format
|
||||||
rm %{buildroot}%{_libdir}/libur_common.a
|
|
||||||
|
|
||||||
%ldconfig_scriptlets -n libur_loader0
|
%ldconfig_scriptlets -n libur_loader0
|
||||||
%ldconfig_scriptlets -n libur_adapter_native_cpu0
|
%ldconfig_scriptlets -n libur_adapter_native_cpu0
|
||||||
|
|
||||||
|
%if %{with opencl_adapter}
|
||||||
%ldconfig_scriptlets -n libur_adapter_opencl0
|
%ldconfig_scriptlets -n libur_adapter_opencl0
|
||||||
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license LICENSE.TXT
|
%license LICENSE.TXT
|
||||||
@ -117,10 +131,14 @@ rm %{buildroot}%{_libdir}/libur_common.a
|
|||||||
|
|
||||||
%dir %{_prefix}/lib/cmake/
|
%dir %{_prefix}/lib/cmake/
|
||||||
%{_prefix}/lib/cmake/unified-runtime/
|
%{_prefix}/lib/cmake/unified-runtime/
|
||||||
|
|
||||||
%{_libdir}/libur_loader.so
|
%{_libdir}/libur_loader.so
|
||||||
%{_libdir}/libur_adapter_native_cpu.so
|
%{_libdir}/libur_adapter_native_cpu.so
|
||||||
|
%{_libdir}/libur_common.a
|
||||||
|
|
||||||
|
%if %{with opencl_adapter}
|
||||||
%{_libdir}/libur_adapter_opencl.so
|
%{_libdir}/libur_adapter_opencl.so
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%files -n libur_loader0
|
%files -n libur_loader0
|
||||||
%{_libdir}/libur_loader.so.0
|
%{_libdir}/libur_loader.so.0
|
||||||
@ -130,8 +148,10 @@ rm %{buildroot}%{_libdir}/libur_common.a
|
|||||||
%{_libdir}/libur_adapter_native_cpu.so.0
|
%{_libdir}/libur_adapter_native_cpu.so.0
|
||||||
%{_libdir}/libur_adapter_native_cpu.so.0.11.2
|
%{_libdir}/libur_adapter_native_cpu.so.0.11.2
|
||||||
|
|
||||||
|
%if %{with opencl_adapter}
|
||||||
%files -n libur_adapter_opencl0
|
%files -n libur_adapter_opencl0
|
||||||
%{_libdir}/libur_adapter_opencl.so.0
|
%{_libdir}/libur_adapter_opencl.so.0
|
||||||
%{_libdir}/libur_adapter_opencl.so.0.11.2
|
%{_libdir}/libur_adapter_opencl.so.0.11.2
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user