Examples
Obtain the test framework code from the source code obtained in 1. Assume that the source code is stored in /path/to/scann/sra_scann_adapter and the test framework code is stored in /path/to/scann/sra_scann_adapter/ann-benchmarks.
This section uses the sift-128-euclidean.hdf5 dataset as an example. Run the following commands to obtain the dataset:
1 2 3 | cd /path/to/scann/sra_scann_adapter/ann-benchmarks mkdir data && cd data wget http://ann-benchmarks.com/sift-128-euclidean.hdf5 --no-check-certificate |
The directory structure of the main files is as follows:
1 2 3 4 5 6 7 | ├── data // Dataset └── sift-128-euclidean.hdf5 ├── ann_benchmarks └── algorithms └── scann └── config-sift-128-euclidean.yml // Dataset configuration file └── test.sh // Test script |
Procedure:
- Check that scann-1.2.10-cp39-cp39-linux_aarch64.whl has been installed in 8.
- Install the dependencies required by ann-benchmarks.
1 2 3
cd /path/to/scann/sra_scann_adapter/ann-benchmarks pip install -r requirements.txt yum install numactl numactl-devel
- Run the test script.
1sh test.sh
The execution result is as follows:

Parent topic: Python APIs