Skip to content

Commit 86ab32d

Browse files
authored
docs: added multithreading documentation to intallation guide (#40)
1 parent 9b38123 commit 86ab32d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/installation.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,12 @@ for simulations with BLonD, the longitudinal beam dynamics code.
189189
To achieve multithreading for Wakis `sparse matrix x vector` operations, the Intel-MKL backend has been implemented as an alternative to single-threaded `scipy.sparse.dot`. To install it in your conda environment simply do:
190190

191191
```
192-
pip install mkl mkl-service sparse_dot_mkl
192+
conda create --name wakis-env python=3.12 numpy scipy mkl mkl-service
193+
pip install sparse_dot_mkl
194+
pip install wakis['notebook']
193195
```
194196

195-
Wakis will detect that the package is installed and use it as default backend. To control the number of threads and memory pinning, add the following lines to your python script **before** the imports:
197+
Wakis will detect that the package is installed and use it as default backend. To control the number of threads and memory pinning, one can add the following lines to your python script **before** the imports:
196198

197199
```python
198200
# [!] Set before importing numpy/scipy/mkl modules

0 commit comments

Comments
 (0)