Rate This Document
Findability
Accuracy
Completeness
Readability

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:

  1. Check that scann-1.2.10-cp39-cp39-linux_aarch64.whl has been installed in 8.
  2. 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
    
  3. Run the test script.
    1
    sh test.sh 
    

    The execution result is as follows: