diff --git a/run_reshape.sh b/run_reshape.sh index 8b18426..4af8b5b 100755 --- a/run_reshape.sh +++ b/run_reshape.sh @@ -1,7 +1,7 @@ make reshape #define code, code[] code1=(NA NA NA n7k1d3-x3z3dx3dz3-0 n15k1d4-x8z6dx4dz4-0 n25k1d5-x13z11dx5dz5-0) -code2=(NA NA NA n11k2d3-x4z5dx3dz3-0 n18k2d4-x8z8dx4dz4-0 n27k2d5-x13z12dx5dz5-0) +code2=(NA NA NA n11k2d3-x4z5dx3dz3-1 n18k2d4-x8z8dx4dz4-1 n27k2d5-x13z12dx5dz5-1) code3=(NA NA NA n11k3d3-x4z4dx3dz3-0 n19k3d4-x9z7dx4dz4-0 n29k3d5-x13z13dx5dz5-0) echo "The seed codes used to construct SPC: code[]" @@ -13,35 +13,40 @@ mode=2 #0 for check; 1 for steane; 2 for simulating from file date #i for codeA -for i in {3..5} +#for i in {3..5} +for i in {3,5} do #j for codeB - for j in {3..5} + for j in {3,5,} do +# break if [ $i -le $j ] then - codeA=${code2[$i]} - codeB=${code2[$j]} - title=2${i}2${j} + codeA=${code1[$i]} + codeB=${code1[$j]} + title=none #1${i}1${j} # 3 3 get wrong title 2 2 - echo codeA: ${codeA}, codeB: ${codeB} + echo codeA: ${codeA}, codeB: ${codeB}, mode: ${mode} output=${codeA}_${codeB} # echo ${output} # continue -# srun --time=6:00:00 -p small -n 1 --cpus-per-task=16 \ - srun --time=24:00:00 -n 1 --cpus-per-task=32 \ + +# srun --time=24:00:00 -n 1 --cpus-per-task=32 \ + srun --time=2-00:00:00 -p mini -n 1 --cpus-per-task=16 --qos=normal \ ./reshape.out \ note=${output} \ title=${title} \ codeA_prefix=../data/CSS-Codes/run2/${codeA} \ codeB_prefix=../data/CSS-Codes/run2/${codeB} \ - output=result/unchecked/${output}.json \ - num_cores=32 \ - e_try=100000 \ + output=result/two_cycles/${output}.json \ + num_cores=16 \ + e_try=1000000 \ debug=0 \ - mode=${mode} & -# wait -# exit + mode=${mode} & +# output=result/unchecked/${output}.json \ + +# wait +# exit fi done done @@ -49,16 +54,20 @@ done wait echo done exit +echo after exit + +mode=1 +output=tmp srun --time=6:00:00 -p small -n 1 --cpus-per-task=16 \ ./reshape.out \ note=${output} \ - codeA_prefix=../data/CSS-Codes/run2/${codeA} \ - codeB_prefix=../data/CSS-Codes/run2/${codeB} \ - output=result/${output}.json \ + codeA_prefix=../data/CSS-Codes/run2/${code2[3]} \ + codeB_prefix=../data/CSS-Codes/run2/${code2[3]} \ + output=result/tmp/${output}.json \ num_cores=16 \ - e_try=30000 \ - debug=0 \ + e_try=10000 \ + debug=1 \ mode=${mode} date