chore(hpu): Fixed some README.md typos.

Also rename pdi_mgmt to hpu_archive_mgmt to match new naming
This commit is contained in:
Helder Campos
2025-06-13 09:13:28 +01:00
committed by B. Roux
parent 16c997d686
commit 4cec6fb247
3 changed files with 11 additions and 11 deletions

View File

@@ -72,8 +72,8 @@ path = "src/utils/hputil.rs"
required-features = ["utils"]
[[bin]]
name = "pdi_mgmt"
path = "src/utils/pdi_mgmt.rs"
name = "hpu_archive_mgmt"
path = "src/utils/hpu_archive_mgmt.rs"
required-features = ["utils", "hw-v80"]
# Binary for asm manipulation

View File

@@ -1,28 +1,28 @@
# Hpu archives
This folder contains a set of custom archive used to reload the FPGA.
This archives contains pdi files and other metadata.
A tool `pdi_mgmt` is provided to create/expand archives.
This folder contains a set of custom archives used to reload the FPGA.
These archives contains pdi files and other metadata.
A tool `hpu_archive_mgmt` is provided to create/expand archives.
## How to build `pdi_mgmt`
Simply go in tfhe-hpu-backend folder and use cargo:
## How to build `hpu_archive_mgmt`
Simply go into the tfhe-hpu-backend folder and use cargo:
```
cargo build --release --features hw-v80,utils
```
## How to unpack an archive for inspection
For this purpose use `pdi_mgmt`:
For this purpose use `hpu_archive_mgmt`:
```
./target/devo/pdi_mgmt unpack backends/tfhe-hpu-backend/config_store/v80_pdi/psi64.hpu backends/tfhe-hpu-backend/config_store/v80_pdi/psi64
./target/release/hpu_archive_mgmt unpack backends/tfhe-hpu-backend/config_store/v80_archives/psi64.hpu backends/tfhe-hpu-backend/config_store/v80_archives/psi64
```
## How to pack an archive after update
For example, if you have previously unpack the psi64.hpu, you can use the following command to pack it back:
For example, if you have previously unpacked the psi64.hpu, you can use the following command to pack it back:
```
./target/devo/pdi_mgmt pack backends/tfhe-hpu-backend/config_store/v80_pdi/psi64 backends/tfhe-hpu-backend/config_store/v80_pdi/psi64.hpu
./target/devo/hpu_archive_mgmt pack backends/tfhe-hpu-backend/config_store/v80_archives/psi64 backends/tfhe-hpu-backend/config_store/v80_archives/psi64.hpu
```