2 Commits

Author SHA256 Message Date
40f1498641 Accepting request 1275291 from science
OBS-URL: https://build.opensuse.org/request/show/1275291
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/kokkos?expand=0&rev=13
2025-05-07 17:22:11 +00:00
Cezary Skrzyński
53a99b6e19 * Update to version 4.6.01.
* Use full URL for sources.
* Drop -ffat-lto-objects in cflags as we do not build static libs.
* Add gmock and gtest BuildRequires to allow using system gtest for tests rather than re-building the bundled libs every time.
* Do not force 4 parallel threads when running ctest.

OBS-URL: https://build.opensuse.org/package/show/science/kokkos?expand=0&rev=32
2025-05-07 14:00:43 +00:00
4 changed files with 31 additions and 13 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:53cf30d3b44dade51d48efefdaee7a6cf109a091b702a443a2eda63992e5fe0d
size 2430505

3
kokkos-4.6.01.tar.gz Normal file
View File

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

View File

@@ -1,3 +1,22 @@
-------------------------------------------------------------------
Mon May 5 20:24:59 UTC 2025 - Atri Bhattacharya <badshah400@gmail.com>
- Update to version 4.6.01:
* Fix symbol visibility: make sure that AUTO has external
linkage (gh#kokkos/kokkos#7898).
* Building with generated makefiles: add missing HIP XNACK
source file (gh#kokkos/kokkos#8030).
* Fix building benchmarks when Kokkos exists as a
subproject/subdirectory (gh#kokkos/kokkos#8045).
- Changes from version 4.6.00:
* Too many to list, see
<https://github.com/kokkos/kokkos/blob/4.6.00/CHANGELOG.md>.
- Use full URL for sources.
- Drop -ffat-lto-objects in cflags as we do not build static libs.
- Add gmock and gtest BuildRequires to allow using system gtest
for tests rather than re-building the bundled libs every time.
- Do not force 4 parallel threads when running ctest.
-------------------------------------------------------------------
Tue May 7 03:00:34 UTC 2024 - ming li <mli@suse.com> - 4.3.00

View File

@@ -1,7 +1,7 @@
#
# spec file for package kokkos
#
# Copyright (c) 2024 SUSE LLC
# 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
@@ -17,8 +17,8 @@
%define major_ver 4
%define minor_ver 3
%define patch_ver 00
%define minor_ver 6
%define patch_ver 01
%define shlib libkokkos-%{major_ver}_%{minor_ver}
%global kokkos_desc \
Kokkos Core implements a programming model in C++ for writing performance \
@@ -35,13 +35,15 @@ Summary: A C++ Performance Portability Programming
License: BSD-3-Clause
Group: System/Libraries
URL: https://github.com/kokkos/kokkos
Source0: kokkos-%{version}.tar.gz
Source0: %{url}/releases/download/%{version}/%{name}-%{version}.tar.gz
BuildRequires: cmake >= 3.16
%if 0%{?suse_version} <= 1500
BuildRequires: gcc11-c++
%else
BuildRequires: gcc-c++
%endif
BuildRequires: gmock
BuildRequires: gtest
BuildRequires: hwloc-devel
BuildRequires: memory-constraints
BuildRequires: ninja
@@ -73,16 +75,14 @@ Conflicts: trilinos-devel
This package contains the development files of %{name}.
%prep
%setup -q
%autosetup -p1
sed -i '1c #!/usr/bin/bash' bin/hpcbind bin/runtest
sed -i '1s|/usr/bin/env bash|/usr/bin/bash|' bin/kokkos_launch_compiler bin/nvcc_wrapper
%build
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
%global __builder ninja
%cmake \
-DCMAKE_BUILD_TYPE=RELWITHDEBINFO \
%if 0%{?suse_version} <= 1500
-DCMAKE_CXX_COMPILER=g++-11 \
%endif
@@ -104,10 +104,9 @@ sed -i '1s|/usr/bin/env bash|/usr/bin/bash|' bin/kokkos_launch_compiler bin/nvcc
%check
export LD_LIBRARY_PATH="%{buildroot}/%{_libdir}:$PWD/build/core/unit_test:${LD_LIBRARY_PATH}"
export OMP_PROC_BIND=false
%ctest --parallel 4 --exclude-regex 'Kokkos_CoreUnitTest_OpenMP|Kokkos_Containers*|Kokkos_Algorithms*'
%ctest --exclude-regex 'Kokkos_CoreUnitTest_OpenMP|Kokkos_Containers*|Kokkos_Algorithms*'
%post -n %{shlib} -p /sbin/ldconfig
%postun -n %{shlib} -p /sbin/ldconfig
%ldconfig_scriptlets -n %{shlib}
%files -n %{shlib}
%doc README.md