Skip to content

AI4EPS/CCTorch

Repository files navigation

Single GPU

python run.py

  • Example for ambient noise
python run.py --data-list1=tests/data_am1.txt --data-path=tests --dt=0.04 --maxlag=30  --mode=AN  --block-num1 1 --block-num2 2 --fixed-channels 300 500 700 900  --log-interval 1
python run.py --data_list1=noise_data_list.txt --data_path=noise_data --sampling_rate=50 --maxlag=30  --mode=AN  --block_size1 1 --block_size2 500 --fixed_channels 500 --domain stft 

Multi GPUs (e.g., using 8 GPUs)

torchrun --standalone --nproc_per_node=8 run.py
  • Example for mammoth south
torchrun --standalone --nproc_per_node=4 \
        run.py --generate-pair --auto-xcor --reduce-t --mccc --channel-shift=0 \
        --path-data=/kuafu/jxli/Data/DASEventData/mammoth_south/temp \
        --pair-list=/home/jxli/packages/CCTorch/tests/pair_mammoth_ccfm_test.txt \
        --path-xcor-data=/net/jin/ssd-tmp-nobak2/jxli/DASEventData/mammoth_south/temp_xcor_ccfm/xcor_data \
        --path-xcor-pick=/net/jin/ssd-tmp-nobak2/jxli/DASEventData/mammoth_south/temp_xcor_ccfm/xcor_pick \
        --path-xcor-matrix=/net/jin/ssd-tmp-nobak2/jxli/DASEventData/mammoth_south/temp_xcor_ccfm/xcor_matrix \
        --path-dasinfo=/kuafu/EventData/Mammoth_south/das_info.csv

Multi Nodes using Slurm (e.g., using 2 nodes)

sbatch --nodes=2 --ntasks=2 sbatch_run.sh 

About

Efficient Cross-Correlation using Pytorch

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •