Skip to content

Add comment that CPUs can hang when using multiple threads #607

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/monodromy.jl
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,8 @@ See also [`linear_subspace_homotopy`](@ref) for the `intrinsic` option.
* `target_solutions_count`: The computation is stopped if this number of solutions is
reached.
* `threading = true`: Enable multithreading of the path tracking.
Careful: Some CPUs hang when using multiple threads. To avoid this run Julia with 1
interactive thread for the REPL and `n` threads for other tasks (e.g., `julia -t 8,1` for `n=8`).
* `timeout`: The maximal number of *seconds* the computation is allowed to run.
* `trace_test = true`: If `true` a trace test is performed to check whether all solutions
are found. This is only applicable if monodromy is performed with a linear subspace.
Expand Down
4 changes: 3 additions & 1 deletion src/solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,9 @@ The `solve` routines takes the following options:
for successfull paths. This is for example useful if you only want to compute one solution
of a polynomial system. For this `stop_early_cb = _ -> true` would be sufficient.
* `threading = true`: Enable multi-threading for the computation. The number of
available threads is controlled by the environment variable `JULIA_NUM_THREADS`.
available threads is controlled by the environment variable `JULIA_NUM_THREADS`.
Careful: Some CPUs hang when using multiple threads. To avoid this run Julia with 1
interactive thread for the REPL and `n` threads for other tasks (e.g., `julia -t 8,1` for `n=8`).
* `tracker_options`: The options and parameters for the path tracker.
See [`TrackerOptions`](@ref).

Expand Down
Loading