Sync from SUSE:SLFO:Main ocaml-parmap revision ab783788bd1c2a0c35fb871ba168df05

This commit is contained in:
Adrian Schröter 2024-05-03 17:21:49 +02:00
commit e7a41f6ff1
6 changed files with 235 additions and 0 deletions

23
.gitattributes vendored Normal file
View 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

15
_constraints Normal file
View File

@ -0,0 +1,15 @@
<constraints>
<overwrite>
<conditions>
<arch>aarch64</arch>
<arch>ppc64le</arch>
<arch>s390x</arch>
<arch>x86_64</arch>
</conditions>
<hardware>
<memory>
<size unit="G">8</size>
</memory>
</hardware>
</overwrite>
</constraints>

17
_service Normal file
View File

@ -0,0 +1,17 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="filename">ocaml-parmap</param>
<param name="revision">963608763589e03de38e744d359884d491e65460</param>
<param name="scm">git</param>
<param name="submodules">disable</param>
<param name="url">https://github.com/rdicosmo/parmap.git</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="versionrewrite-pattern">[v]?([^\+]+)(.*)</param>
<param name="versionrewrite-replacement">\1</param>
</service>
<service name="recompress" mode="disabled">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service name="set_version" mode="disabled"/>
</services>

BIN
ocaml-parmap-1.2.5.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

95
ocaml-parmap.changes Normal file
View File

@ -0,0 +1,95 @@
-------------------------------------------------------------------
Sun Jan 1 01:01:01 UTC 2023 - ohering@suse.de
- Update to version 1.2.5
Add support for OCaml 5.0
-------------------------------------------------------------------
Mon Apr 4 04:04:04 UTC 2022 - ohering@suse.de
- Update to version 1.2.4
fix naked pointers
-------------------------------------------------------------------
Sun May 2 21:22:23 UTC 2021 - ohering@suse.de
- Update to version 1.2.3
follow upstream versioning
-------------------------------------------------------------------
Sun Apr 25 22:22:22 UTC 2021 - ohering@suse.de
- Update to version 20210423.2800b78
avoid corruption on 32bit architectures
add support for returning results in the right order
-------------------------------------------------------------------
Thu Feb 20 20:20:20 UTC 2020 - ohering@suse.de
- Require current ocaml-rpm-macros
- Update to version 20200124.526acc4 (1.1.1)
merged our changes for dune and recent ocaml versions
-------------------------------------------------------------------
Fri Nov 1 12:34:56 UTC 2019 - ohering@suse.de
- Require current dune macros
- Update to 20191021.1b17a5d from dune branch
-------------------------------------------------------------------
Wed Oct 9 05:48:16 UTC 2019 - ohering@suse.de
- Update to version 20191002.803edbb (1.0-rc11)
-------------------------------------------------------------------
Tue Oct 1 07:50:54 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
- Use noun phrase in summary.
-------------------------------------------------------------------
Mon Sep 23 16:35:39 UTC 2019 - ohering@suse.de
- Update to version 20190330.8d19c66
Fix for ocaml 4.06
-------------------------------------------------------------------
Tue Jul 25 13:04:54 UTC 2017 - ohering@suse.de
- Use Group: Development/Languages/OCaml
-------------------------------------------------------------------
Mon Jul 17 20:24:18 UTC 2017 - ohering@suse.de
- Update to version 20170223.c9b0ee7
Only wait for the children started by parmap
Prevent at_exit handlers registered in the parent from running in the child
handle EINTR errors in wait_for_pids
added get_ncores
Gc.compact needs to be called only inside of spawn_many
added get_rank so that worker processes can know at which rank they were forked out of the master process
-------------------------------------------------------------------
Mon Jul 17 12:48:58 UTC 2017 - ohering@suse.de
- Wrap specfile conditionals to fix quilt setup
-------------------------------------------------------------------
Mon Jul 17 10:48:58 UTC 2017 - ohering@suse.de
- Remove autodeps for pre openSUSE 12.1 releases
-------------------------------------------------------------------
Wed May 31 07:07:33 UTC 2017 - olaf@aepfle.de
- Replace tabs with spaces in generated _oasis file
-------------------------------------------------------------------
Sat Jun 4 19:52:34 UTC 2016 - jeffm@suse.com
- Handle racing mkdirs
-------------------------------------------------------------------
Tue May 24 12:01:41 UTC 2016 - olaf@aepfle.de
- Initial version 20160512.7598fb9 for coccinelle

82
ocaml-parmap.spec Normal file
View File

@ -0,0 +1,82 @@
#
# spec file for package ocaml-parmap
#
# Copyright (c) 2023 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: ocaml-parmap
Version: 1.2.5
Release: 0
%{?ocaml_preserve_bytecode}
Summary: Multicore architecture exploitation for OCaml programs with minimal modifications
License: LGPL-2.0-only
Group: Development/Languages/OCaml
URL: https://opam.ocaml.org/packages/parmap
Source0: %name-%version.tar.xz
BuildRequires: ocaml
BuildRequires: ocaml-dune >= 2.7
BuildRequires: ocaml-rpm-macros >= 20230101
BuildRequires: ocamlfind(bigarray)
BuildRequires: ocamlfind(dune.configurator)
BuildRequires: ocamlfind(graphics)
BuildRequires: ocamlfind(unix)
BuildRequires: pkgconfig(x11)
%description
If you want to use your many cores to accelerate an operation
which happens to be a map, fold or map/fold (map-reduce), just use
Parmap's parmap, parfold and parmapfold primitives in place of the
standard List.map and friends; you can specify the number of
subprocesses to use with the optional parameter ncores, and the
size of granularity of the parallel computation with the optional
parameter chunksize.
%package devel
Summary: Development files for %name
Group: Development/Languages/OCaml
Requires: %name = %version
%description devel
The %name-devel package contains libraries and signature files for
developing applications that use %name.
%prep
%autosetup -p1
%build
sed -i~ '
s@10000000@1000000@
' tests/simplescale.ml
diff -u "$_"~ "$_" && exit 1
dune_release_pkgs='parmap'
%ocaml_dune_setup
%ocaml_dune_build
%install
%ocaml_dune_install
%ocaml_create_file_list
%check
OCAML_DUNE_RUNTEST_ARGS="-j 1"
export nData=$((1000 * 10))
export nProcs=2
%ocaml_dune_test
%files -f %name.files
%files devel -f %name.files.devel
%changelog