You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/cmdstan-guide/parallelization.qmd
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,9 @@ on how to rewrite Stan models to use these functions see [Stan's User guide chap
21
21
Once a model is rewritten to use the above-mentioned functions, the model
22
22
must be compiled with the `STAN_THREADS` makefile flag. The flag can be
23
23
supplied in the `make` call but we recommend writing the flag to the
24
-
`make/local` file.
24
+
`make/local` file. If the `STAN_THREADS` flag is defined/non-empty,
25
+
threads will be enabled.
26
+
25
27
26
28
An example of the contents of `make/local` to enable threading with TBB:
27
29
@@ -77,7 +79,7 @@ implementations are [MPICH](https://www.mpich.org/) and [OpenMPI](https://www.op
77
79
Once a model is rewritten to use `map_rect`, additional makefile flags
78
80
must be written to the `make/local`. These are:
79
81
80
-
-`STAN_MPI`: Enables the use of MPI with Stan if `true`.
82
+
-`STAN_MPI`: Enables the use of MPI with Stan if defined.
81
83
-`CXX`: The name of the MPI C++ compiler wrapper. Typically `mpicxx`.
82
84
-`TBB_CXX_TYPE`: The C++ compiler the MPI wrapper wraps. Typically `gcc` on Linux and `clang` on macOS.
83
85
@@ -158,8 +160,8 @@ Follow Intel's install instructions given [here](https://software.intel.com/cont
158
160
### Compiling
159
161
160
162
In order to enable the OpenCL backend the model
161
-
must be compiled with the `STAN_OPENCL` makefile flag. The flag can be
162
-
supplied in the `make` call but we recommend writing the flag to the
163
+
must be compiled with the `STAN_OPENCL` makefile flag defined/non-empty.
164
+
The flag can be supplied in the `make` call but we recommend writing the flag to the
163
165
`make/local` file.
164
166
165
167
An example of the contents of `make/local` to enable parallelization
@@ -169,7 +171,7 @@ with OpenCL:
169
171
STAN_OPENCL=true
170
172
```
171
173
172
-
If you are using OpenCL with an integrated GPU you also need to add the `INTEGRATED_OPENCL` flag, as the sharing of memory between CPU and GPU is slightly different with integrated graphics:
174
+
If you are using OpenCL with an integrated GPU you also need to define the `INTEGRATED_OPENCL` flag, as the sharing of memory between CPU and GPU is slightly different with integrated graphics:
@@ -18,4 +21,60 @@ There are also separate installation and getting started guides for
18
21
[*CmdStan*](cmdstan-guide/index.html) ([pdf](https://mc-stan.org/docs/{{< env STAN_DOCS_VERSION_PATH >}}/cmdstan-guide-{{< env STAN_DOCS_VERSION_PATH >}}.pdf)), the command-line interface to the Stan inference engine,
19
22
and the R, Python, and Julia interfaces.
20
23
24
+
### Older Versions
25
+
26
+
This documentation is for Stan {{< env STAN_DOCS_VERSION >}}. Older versions of each of the documents linked above
27
+
can be found in the table below:
28
+
29
+
| Version | Stan Reference Manual | Stan Users Guide | CmdStan Guide | Stan Functions Reference |
0 commit comments