Skip to content

Commit

Permalink
cpp flags set -> defined
Browse files Browse the repository at this point in the history
  • Loading branch information
katrinabrock authored Aug 21, 2024
1 parent e98c7ef commit c120bdb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cmdstan-guide/parallelization.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ on how to rewrite Stan models to use these functions see [Stan's User guide chap
Once a model is rewritten to use the above-mentioned functions, the model
must be compiled with the `STAN_THREADS` makefile flag. The flag can be
supplied in the `make` call but we recommend writing the flag to the
`make/local` file. If the `STAN_THREADS` flag is set to any non-empty value,
`make/local` file. If the `STAN_THREADS` flag is defined/non-empty,
threads will be enabled.


Expand Down Expand Up @@ -79,7 +79,7 @@ implementations are [MPICH](https://www.mpich.org/) and [OpenMPI](https://www.op
Once a model is rewritten to use `map_rect`, additional makefile flags
must be written to the `make/local`. These are:

- `STAN_MPI`: Enables the use of MPI with Stan if set.
- `STAN_MPI`: Enables the use of MPI with Stan if defined.
- `CXX`: The name of the MPI C++ compiler wrapper. Typically `mpicxx`.
- `TBB_CXX_TYPE`: The C++ compiler the MPI wrapper wraps. Typically `gcc` on Linux and `clang` on macOS.

Expand Down Expand Up @@ -160,7 +160,7 @@ Follow Intel's install instructions given [here](https://software.intel.com/cont
### Compiling

In order to enable the OpenCL backend the model
must be compiled with the `STAN_OPENCL` makefile flag set (to any non-empty value).
must be compiled with the `STAN_OPENCL` makefile flag defined/non-empty.
The flag can be supplied in the `make` call but we recommend writing the flag to the
`make/local` file.

Expand All @@ -171,7 +171,7 @@ with OpenCL:
STAN_OPENCL=true
```

If you are using OpenCL with an integrated GPU you also need to set the `INTEGRATED_OPENCL` flag, as the sharing of memory between CPU and GPU is slightly different with integrated graphics:
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:

```
INTEGRATED_OPENCL=true
Expand Down

0 comments on commit c120bdb

Please sign in to comment.