# \#parallel-programming

**URL:** https://discuss.ocaml.org/tag/parallel-programming/464.md

[Latest](https://discuss.ocaml.org/latest.md) · [Categories](https://discuss.ocaml.org/categories.md) · [Tags](https://discuss.ocaml.org/tags.md)

---

## [\[ANN\] Affect 0.0.0 – A streamlined and natural concurrency model for OCaml](https://discuss.ocaml.org/t/ann-affect-0-0-0-a-streamlined-and-natural-concurrency-model-for-ocaml/18451)

<div class="topic-metadata">

**Author:** [@dbuenzli](https://discuss.ocaml.org/u/dbuenzli)\
**Replies:** 2\
**Last updated:** [August 12, 2026, 11:56am UTC](https://discuss.ocaml.org/t/ann-affect-0-0-0-a-streamlined-and-natural-concurrency-model-for-ocaml/18451 "2026-08-12T11:56:44Z")

</div>

Hello, It’s my pleasure to announce the first release of affect: Affect is a streamlined and natural concurrency model for OCaml. It provides parallel asynchronous functions and first-class synchronous actions to orc…

---

## [Multi-domain, multi-scheduler Lwt](https://discuss.ocaml.org/t/multi-domain-multi-scheduler-lwt/16834)

<div class="topic-metadata">

**Author:** [@raphael-proust](https://discuss.ocaml.org/u/raphael-proust)\
**Replies:** 0\
**Last updated:** [June 17, 2025, 12:42pm UTC](https://discuss.ocaml.org/t/multi-domain-multi-scheduler-lwt/16834 "2025-06-17T12:42:56Z")

</div>

I have started working on changing Lwt to allow multiple schedulers to run in parallel in separate domains. The current status is early work-in-progress with some actual tests that actually use the multi-scheduler featur…

---

## [How to interrupt tasks of DomainsLib?](https://discuss.ocaml.org/t/how-to-interrupt-tasks-of-domainslib/15603)

<div class="topic-metadata">

**Author:** [@Kakadu](https://discuss.ocaml.org/u/Kakadu)\
**Replies:** 1\
**Last updated:** [November 13, 2024, 2:02pm UTC](https://discuss.ocaml.org/t/how-to-interrupt-tasks-of-domainslib/15603 "2024-11-13T14:02:45Z")

</div>

We have issues with interruption of our parallel program in OCaml 5.2 (+flambda). Our programs runs many tasks via Domainslib.Task.parallel\_for and we want to interrupt and print currently found data via Ctrl-C. I can’…

---

## [New major release of Parany (v14.0.0)](https://discuss.ocaml.org/t/new-major-release-of-parany-v14-0-0/12208)

<div class="topic-metadata">

**Author:** [@UnixJunkie](https://discuss.ocaml.org/u/UnixJunkie)\
**Replies:** 6\
**Last updated:** [May 31, 2023, 1:51am UTC](https://discuss.ocaml.org/t/new-major-release-of-parany-v14-0-0/12208 "2023-05-31T01:51:42Z")

</div>

\# opam search parany \[...\] parany 14.0.0 Parallelize any computation I switched back the runtime to fork+marshal. As was the case before version 13.0.0. Versions 13.\* (up to 14.0.0 excluded) use ocaml5-threads to…

---

## [Memmap a bigarray, then Unix.fork() (parallel initialization of a numerical array)](https://discuss.ocaml.org/t/memmap-a-bigarray-then-unix-fork-parallel-initialization-of-a-numerical-array/11824)

<div class="topic-metadata">

**Author:** [@UnixJunkie](https://discuss.ocaml.org/u/UnixJunkie)\
**Replies:** 1\
**Last updated:** [March 29, 2023, 4:53am UTC](https://discuss.ocaml.org/t/memmap-a-bigarray-then-unix-fork-parallel-initialization-of-a-numerical-array/11824 "2023-03-29T04:53:02Z")

</div>

If a program creates a bigarray, then mmap it to a file, then create children process by fork(), is this a correct way to share in read/write mode the said bigarray? Conceptually, I think it should work. I am interes…

---

## [\[Q\] Does \`Thread\` module really work?](https://discuss.ocaml.org/t/q-does-thread-module-really-work/11718)

<div class="topic-metadata">

**Author:** [@anzhi0708](https://discuss.ocaml.org/u/anzhi0708)\
**Replies:** 9\
**Last updated:** [March 20, 2023, 10:41am UTC](https://discuss.ocaml.org/t/q-does-thread-module-really-work/11718 "2023-03-20T10:41:49Z")

</div>

Hello guys. I’m both a beginner in OCaml & CS, aka a noob. I wrote this piece of code to test Thread module let () = print\_endline "Hello, World!" let rec fib\_normal (n: int): int = match n with | 0 | 1 -\> n …

---

## [【Q】Why is it 0?](https://discuss.ocaml.org/t/q-why-is-it-0/11688)

<div class="topic-metadata">

**Author:** [@anzhi0708](https://discuss.ocaml.org/u/anzhi0708)\
**Replies:** 2\
**Last updated:** [March 17, 2023, 9:58am UTC](https://discuss.ocaml.org/t/q-why-is-it-0/11688 "2023-03-17T09:58:35Z")

</div>

Hello! I’m both an OCaml beginner and a CS beginner AKA a noob. I was expecting variable money’s value to equal to 0 since race condition but its value was still 0. Can someone explain? Thanks a lot :3 let money = ref…

---

## [Programming GPUs with OCaml in 2023](https://discuss.ocaml.org/t/programming-gpus-with-ocaml-in-2023/11326)

<div class="topic-metadata">

**Author:** [@UnixJunkie](https://discuss.ocaml.org/u/UnixJunkie)\
**Replies:** 2\
**Last updated:** [February 6, 2023, 8:40pm UTC](https://discuss.ocaml.org/t/programming-gpus-with-ocaml-in-2023/11326 "2023-02-06T20:40:18Z")

</div>

Hello, What is the state of targeting GPUs w/ OCaml code in 2023? Are the opam packages spoc and sarek still the state of the art? Which one should we use? Are they still maintained? I have not run any test yet, b…

---

## [Parallel performance of an OCaml program: ocaml-5.0.0 Vs 4.13.1](https://discuss.ocaml.org/t/parallel-performance-of-an-ocaml-program-ocaml-5-0-0-vs-4-13-1/11233)

<div class="topic-metadata">

**Author:** [@UnixJunkie](https://discuss.ocaml.org/u/UnixJunkie)\
**Replies:** 29\
**Last updated:** [January 31, 2023, 4:07am UTC](https://discuss.ocaml.org/t/parallel-performance-of-an-ocaml-program-ocaml-5-0-0-vs-4-13-1/11233 "2023-01-31T04:07:50Z")

</div>

I ran some test 5 times. I show the average +/- one standard deviation. I was running this program: GitHub - tsudalab/ACP4: AutoCorrelation of Pharmacophore Features The peak performance on this computer is reached …

---

## [Parany for OCaml-5](https://discuss.ocaml.org/t/parany-for-ocaml-5/10968)

<div class="topic-metadata">

**Author:** [@UnixJunkie](https://discuss.ocaml.org/u/UnixJunkie)\
**Replies:** 0\
**Last updated:** [December 16, 2022, 1:32am UTC](https://discuss.ocaml.org/t/parany-for-ocaml-5/10968 "2022-12-16T01:32:46Z")

</div>

Parany: generalized map reduce for parallel / mluti-core computers. val run: ?preserve:bool -\> ?csize:int -\> int -\> demux:(unit -\> 'a) -\> work:('a -\> 'b) -\> mux:('b -\> unit) -\> unit Version v13.0.0 of Paran…

---

## [Parany for multicore OCaml](https://discuss.ocaml.org/t/parany-for-multicore-ocaml/8495)

<div class="topic-metadata">

**Author:** [@UnixJunkie](https://discuss.ocaml.org/u/UnixJunkie)\
**Replies:** 2\
**Last updated:** [September 16, 2021, 9:14am UTC](https://discuss.ocaml.org/t/parany-for-multicore-ocaml/8495 "2021-09-16T09:14:56Z")

</div>

Hello, There is now an implementation using multicore-OCaml in the ‘domains’ branch. People are very welcome to give it a try and share the speedup they observe, especially compared to fork-based parallelism. Thank…
