-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
48 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,6 @@ | ||
# Installation | ||
|
||
TOAST is written in C++ and python3 and depends on several commonly available packages. | ||
It also has some optional functionality that is only enabled if additional external | ||
It also has optional functionality that is only enabled if additional external | ||
packages are available. The best installation method will depend on your specific | ||
needs. We try to clarify the different options in the following sections. | ||
|
||
|
||
(install:test)= | ||
## Testing the Installation | ||
|
||
After installation (regardless of method), you can run both the compiled and | ||
python unit tests. These tests will create an output directory named | ||
`toast_test_output` in your current working directory: | ||
|
||
```{code-block} console | ||
python -c "import toast.tests; toast.tests.run()" | ||
``` | ||
|
||
If you have installed the `mpi4py` package, then you can also run the unit tests with | ||
MPI enabled. For example: | ||
|
||
```{code-block} console | ||
export OMP_NUM_THREADS=2 | ||
mpirun -np 2 python -c "import toast.tests; toast.tests.run()" | ||
``` | ||
|
||
```{important} | ||
You should use whatever MPI launcher is appropriate for your system (e.g. `mpirun`, | ||
`mpiexec`, `srun`, etc). In general, be sure to set the `OMP_NUM_THREADS` environment | ||
variable so that the number of MPI processes times this number of threads is not greater | ||
than the number of physical CPU cores. | ||
``` | ||
|
||
The runtime configuration of toast can also be checked with an included script: | ||
|
||
```{code-block} bash | ||
toast_env | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters