commit e7a41f6ff15205f6ad84150cc9abc8f885b0ca3635a03addd5aa9968c822a14f Author: Adrian Schröter Date: Fri May 3 17:21:49 2024 +0200 Sync from SUSE:SLFO:Main ocaml-parmap revision ab783788bd1c2a0c35fb871ba168df05 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/_constraints b/_constraints new file mode 100644 index 0000000..f03fc50 --- /dev/null +++ b/_constraints @@ -0,0 +1,15 @@ + + + + aarch64 + ppc64le + s390x + x86_64 + + + + 8 + + + + diff --git a/_service b/_service new file mode 100644 index 0000000..740ad57 --- /dev/null +++ b/_service @@ -0,0 +1,17 @@ + + + ocaml-parmap + 963608763589e03de38e744d359884d491e65460 + git + disable + https://github.com/rdicosmo/parmap.git + @PARENT_TAG@ + [v]?([^\+]+)(.*) + \1 + + + *.tar + xz + + + diff --git a/ocaml-parmap-1.2.5.tar.xz b/ocaml-parmap-1.2.5.tar.xz new file mode 100644 index 0000000..cf2793e --- /dev/null +++ b/ocaml-parmap-1.2.5.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:313e1e9c5dc567ba457fb02d26f115e06afaa453e2c411dbd779d815828a95da +size 33736 diff --git a/ocaml-parmap.changes b/ocaml-parmap.changes new file mode 100644 index 0000000..d2c9994 --- /dev/null +++ b/ocaml-parmap.changes @@ -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 + +- 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 + diff --git a/ocaml-parmap.spec b/ocaml-parmap.spec new file mode 100644 index 0000000..121d9c0 --- /dev/null +++ b/ocaml-parmap.spec @@ -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