[CPU][ARM][DOC] Add swap note into Raspberry build procedure (#24679)

Add a note about swap according to the comment
https://github.com/openvinotoolkit/openvino/issues/24445#issuecomment-2116366405

---------

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>
This commit is contained in:
Aleksandr Voron 2024-05-27 11:05:30 +02:00 committed by GitHub
parent ebf43011d7
commit 438f4dca84
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 15 additions and 0 deletions

View File

@ -36,6 +36,21 @@ git clone --recurse-submodules --single-branch --branch=master https://github.co
.. && cmake --build . --parallel
```
> **NOTE**: The build command may fail due to insufficient RAM. To fix this issue, you can increase the swap size:
1. Deactivate the current swap:
```bash
sudo dphys-swapfile swapoff
```
2. Modify the swap size by setting `CONF_SWAPSIZE=8192` in `/etc/dphys-swapfile`.
3. Recreate the swap file:
```bash
sudo dphys-swapfile setup
```
3. Start swap:
```bash
sudo dphys-swapfile swapon
```
## Additional Build Options
- To build Python API, install `libpython3-dev:armhf` and `python3-pip`