set -euo pipefail HOST="zhan4854@csel-cuda-02.cselabs.umn.edu" rsync -azPr --exclude 'large_cpd.txt' . $HOST:~/hwk4 CLUSTERS=${1:-512} BLOCKS=512 THREADS=-1 DATAFILE="large_cpd.txt" # DATAFILE="small_gaussian.txt" ssh $HOST bash -c "set -euo pipefail; module load soft/cuda/local; module initadd soft/cuda/local; cd hwk4; make clean; make; ls; ./km_cuda ./dataset/$DATAFILE $CLUSTERS 64 128" rsync -qazPr --exclude 'large_cpd.txt' zhan4854@csel-cuda-02.cselabs.umn.edu:~/hwk4/ .