Skip to content

SonglinLife/SSD_BASED_PLAN

Repository files navigation

SSD_Based_Plan

clone

git clone --recursive [email protected]:SonglinLife/SSD_BASED_PLAN.git 

compile

cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --target partitioner -j8

useage

gp.sh

bigann_10K="/data/wsl/SSD_Based_Plan/bigann/BIGANN_10K_R48_L128_B0.0003_disk.index"
bigann_1M="/data/wsl/SSD_Based_Plan/bigann/BIGANN1M_R48_L128_B0.03_disk.index"
bigann_10M="/data/wsl/SSD_Based_Plan/bigann/BIGANN10M_R48_L128_B0.03_M32_disk.index"
bigann_10M_R48="/data/wsl/SSD_Based_Plan/bigann/BIGANN_10M_R48_L128_B0.3_disk.index"
bigann_10M_R32="/data/wsl/SSD_Based_Plan/bigann/BIGANN_10M_R32_L96_B0.3_disk.index"
deep_10M="/data/wsl/diskann_re/build/tests/index/DEEP_10M_R48_L128_B0.225_disk.index_cp"
ssnpp_10M="/data/wsl/SSD_Based_Plan/bigann/SSNPP_ORG_R48_L128_B0.6_M32_disk.index"
sift_10M_R32="/data/wsl/SSD_Based_Plan/bigann/SIFT_10M_R32_L96_B0.3_disk.index"

index=$deep_10M
dim=96
data_type=float
nd=10000000
mkdir -p ./gpfile
gp_file=./gpfile/deep_10m_r48_rb1
lock_nums=1000000
./build/partitioner --data_type $data_type --index_file $index --gp_file $gp_file -N $nd -D $dim -L 16 --lock_nums $lock_nums
#>> ${gp_file}.log

args

./partitioner --h

  -h [ --help ]                  print information
  --data_type arg                data type <int8/uint8/float>
  --index_file arg               diskann diskann index or mem index
  --gp_file arg                  output gp file
  --freq_file arg                freq_file[optional]
  -N [ --npts ] arg              data size, like: --npts 1000000
  -D [ --dim ] arg               data vector dim, like: --dim 128
  -T [ --thread_nums ] arg (=64) threads_nums
  --lock_nums arg (=0)           lock node nums, the lock nodes will not 
                                 participate in the follow LDG paritioning
  -B [ --block_size ] arg (=1)   block size for one partition, 1 for 4KB, 2 for
                                 8KB and so on.
  -L [ --ldg_times ] arg (=4)    exec ldg partition alg times, usually 8 is 
                                 enough.
  --use_disk arg (=1)            Use 1 for use disk index (default), 0 for 
                                 DiskANN mem index
  --visual arg (=0)              see real time progress of graph partition
  --cut arg (=4294967295)        cut adj list, use 3 means graph degree will be
                                 cut to 3

About

graph partition code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •