Skip to content

Commit

Permalink
Clarify that command-line switches need to be manually set in `addpro…
Browse files Browse the repository at this point in the history
…cs` (#50843)

Co-authored-by: Max Horn <[email protected]>
  • Loading branch information
evetion and fingolfin authored Feb 11, 2024
1 parent 37ed82b commit a37d626
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion doc/src/manual/arrays.md
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ in their implementations, other arrays — like [`Diagonal`](@ref) — need the
full set of cartesian indices to do their lookup (see [`IndexStyle`](@ref) to
introspect which is which).

!!! warnings
!!! warning

When iterating over all the indices for an array, it is
better to iterate over [`eachindex(A)`](@ref) instead of `1:length(A)`.
Expand Down
9 changes: 5 additions & 4 deletions doc/src/manual/distributed-computing.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,10 +270,11 @@ julia> addprocs(2)
Module [`Distributed`](@ref man-distributed) must be explicitly loaded on the master process before invoking [`addprocs`](@ref).
It is automatically made available on the worker processes.

Note that workers do not run a `~/.julia/config/startup.jl` startup script, nor do they synchronize
their global state (such as global variables, new method definitions, and loaded modules) with any
of the other running processes. You may use `addprocs(exeflags="--project")` to initialize a worker with
a particular environment, and then `@everywhere using <modulename>` or `@everywhere include("file.jl")`.
!!! note
Note that workers do not run a `~/.julia/config/startup.jl` startup script, nor do they synchronize
their global state (such as command-line switches, global variables, new method definitions, and loaded modules) with any
of the other running processes. You may use `addprocs(exeflags="--project")` to initialize a worker with
a particular environment, and then `@everywhere using <modulename>` or `@everywhere include("file.jl")`.

Other types of clusters can be supported by writing your own custom `ClusterManager`, as described
below in the [ClusterManagers](@ref) section.
Expand Down

0 comments on commit a37d626

Please sign in to comment.