Skip to content

Commit 925f6ae

Browse files
authored
Merge pull request #607 from JuliaHomotopyContinuation/PBrdng-patch-1
Add comment that CPUs can hang when using multiple threads
2 parents 1f344bd + 2370a00 commit 925f6ae

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/monodromy.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,8 @@ See also [`linear_subspace_homotopy`](@ref) for the `intrinsic` option.
561561
* `target_solutions_count`: The computation is stopped if this number of solutions is
562562
reached.
563563
* `threading = true`: Enable multithreading of the path tracking.
564+
Careful: Some CPUs hang when using multiple threads. To avoid this run Julia with 1
565+
interactive thread for the REPL and `n` threads for other tasks (e.g., `julia -t 8,1` for `n=8`).
564566
* `timeout`: The maximal number of *seconds* the computation is allowed to run.
565567
* `trace_test = true`: If `true` a trace test is performed to check whether all solutions
566568
are found. This is only applicable if monodromy is performed with a linear subspace.

src/solve.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,9 @@ The `solve` routines takes the following options:
385385
for successfull paths. This is for example useful if you only want to compute one solution
386386
of a polynomial system. For this `stop_early_cb = _ -> true` would be sufficient.
387387
* `threading = true`: Enable multi-threading for the computation. The number of
388-
available threads is controlled by the environment variable `JULIA_NUM_THREADS`.
388+
available threads is controlled by the environment variable `JULIA_NUM_THREADS`.
389+
Careful: Some CPUs hang when using multiple threads. To avoid this run Julia with 1
390+
interactive thread for the REPL and `n` threads for other tasks (e.g., `julia -t 8,1` for `n=8`).
389391
* `tracker_options`: The options and parameters for the path tracker.
390392
See [`TrackerOptions`](@ref).
391393

0 commit comments

Comments
 (0)