Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Swrrt committed Jan 14, 2025
1 parent b81ced0 commit 8862205
Showing 3 changed files with 82 additions and 25 deletions.
3 changes: 2 additions & 1 deletion exp_scripts/inputList.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
part6and7-microbench-streamsluice-streamsluice-800-part6-linear-1split2join1-120-4000-4000-960-linear-2000-1-1440-stair_3-80-1-1440-stair_3-1-0-3-444-1-5000-3-444-1-5000-3-444-1-5000-5-500-5000-0.00-0.1-2000-3000-100-10-true-2
part6and7-microbench-streamsluice-streamsluice-800-part6-gradient-1split2join1-120-4000-4000-960-linear-2000-1-1440-stair_3-80-1-1440-stair_3-1-0-3-444-1-5000-3-444-1-5000-3-444-1-5000-5-500-5000-0.00-0.1-2000-3000-100-10-true-2
part6and7-microbench-streamsluice-streamsluice-800-part6-gradient-1split2join1-120-4000-4000-960-linear-2000-1-1440-stair_3-80-1-1440-stair_3-1-0-3-444-1-5000-3-444-1-5000-3-444-1-5000-5-500-5000-0.00-0.1-2000-3000-100-10-true-3
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import math
import sys
import numpy as np

import matplotlib
import numpy as np

matplotlib.use('Agg')
import matplotlib.pyplot as plt
def supylabel2(fig, s, **kwargs):
@@ -962,7 +963,7 @@ def draw_resource(rawDir, outputDir, exps):
outputDir = "/Users/swrrt/Workplace/BacklogDelayPaper/experiments/figures/part6/"

exps_per_setting = {
# "linear_1": [
# "part6_linear_1": [
# ["Static",
# "part6and7-microbench-streamsluice-ds2-part6-linear-1split2join1-120-4000-4000-960-linear-2000-1-1440-stair_3-80-1-1440-stair_3-1-0-3-444-1-1000-3-444-1-1000-3-444-1-1000-5-500-1000-0.00-0.1-2000-3000-100-10-false-1",
# "black", "o"],
@@ -976,7 +977,7 @@ def draw_resource(rawDir, outputDir, exps):
# "part6and7-microbench-streamsluice-streamsluice-800-part6-linear-1split2join1-120-4000-4000-960-linear-2000-1-1440-stair_3-80-1-1440-stair_3-1-0-3-444-1-5000-3-444-1-5000-3-444-1-5000-5-500-5000-0.00-0.1-2000-3000-100-10-true-2",
# "blue", "o"],
# ],
# "sine_1": [
# "part6_sine_1": [
# ["Static",
# "part6and7-microbench-streamsluice-ds2-700-part6-sine-1split2join1-120-4000-4000-960-linear-2000-1-1440-stair_3-80-1-1440-stair_3-1-0-3-444-1-5000-3-444-1-5000-3-444-1-5000-5-500-5000-0.00-0.1-2000-3000-100-10-false-1",
# "black", "o"],
@@ -990,7 +991,7 @@ def draw_resource(rawDir, outputDir, exps):
# "part6and7-microbench-streamsluice-streamsluice-800-part6-sine-1split2join1-120-4000-4000-960-linear-2000-1-1440-stair_3-80-1-1440-stair_3-1-0-3-444-1-5000-3-444-1-5000-3-444-1-5000-5-500-5000-0.00-0.1-2000-3000-100-10-true-1",
# "blue", "o"],
# ],
# "stair_1": [
# "part6_stair_1": [
# ["Static",
# "part6and7-microbench-streamsluice_later-ds2-700-part6-gradient-1split2join1-120-4000-4000-960-linear-2000-1-1440-stair_3-80-1-1440-stair_3-1-0-3-444-1-5000-3-444-1-5000-3-444-1-5000-5-500-5000-0.00-0.1-2000-3000-100-10-false-3",
# "black", "o"],
@@ -1004,38 +1005,93 @@ def draw_resource(rawDir, outputDir, exps):
# "part6and7-microbench-streamsluice-streamsluice-800-part6-gradient-1split2join1-120-4000-4000-960-linear-2000-1-1440-stair_3-80-1-1440-stair_3-1-0-3-444-1-5000-3-444-1-5000-3-444-1-5000-5-500-5000-0.00-0.1-2000-3000-100-10-true-1",
# "blue", "o"],
# ],

# "linear_2": [
# "part6_linear_2": [
# ["Static",
# "part6and7-microbench-streamsluice_later-ds2-800-part6-linear-1split2join1-100-4000-4000-960-linear-1000-1-1440-stair_3-40-1-1440-stair_3-1-0-3-444-1-5000-3-444-1-5000-3-444-1-5000-5-500-5000-0.00-0.1-2000-3000-100-10-false-3",
# "black", "o"],
# ["Earlier",
# "part6and7-microbench-streamsluice_earlier-streamsluice-800-part6-linear-1split2join1-100-4000-4000-960-linear-1000-1-1440-stair_3-40-1-1440-stair_3-1-0-3-444-1-5000-3-444-1-5000-3-444-1-5000-5-500-5000-0.00-0.1-2000-3000-100-10-true-1",
# "green", "o"],
# # ["Later",
# # "part6and7-microbench-streamsluice_later-streamsluice-800-part6-linear-1split2join1-120-4000-4000-960-linear-1000-1-1440-stair_3-80-1-1440-stair_3-1-0-3-444-1-5000-3-444-1-5000-3-444-1-5000-5-500-5000-0.00-0.1-2000-3000-100-10-true-1",
# # "orange", "o"],
# ["Later",
# "part6and7-microbench-streamsluice_later-streamsluice-800-part6-linear-1split2join1-120-4000-4000-960-linear-1000-1-1440-stair_3-40-1-1440-stair_3-1-0-3-444-1-5000-3-444-1-5000-3-444-1-5000-5-500-5000-0.00-0.1-2000-3000-100-10-true-2",
# "orange", "o"],
# ["Sluice",
# "part6and7-microbench-streamsluice-streamsluice-800-part6-linear-1split2join1-100-4000-4000-960-linear-1000-1-1440-stair_3-40-1-1440-stair_3-1-0-3-444-1-5000-3-444-1-5000-3-444-1-5000-5-500-5000-0.00-0.1-2000-3000-100-10-true-1",
# "blue", "o"],
# ],


"linear_1_part7": [
# "part7_linear_1": [
# ["Static",
# "part6and7-microbench-streamsluice-streamsluice_less-800-part7-linear-1split2join1-100-4000-4000-960-linear-2000-1-1440-stair_3-80-1-1440-stair_3-1-0-3-444-1-5000-3-444-1-5000-3-444-1-5000-5-500-5000-0.00-0.1-2000-3000-100-10-true-2",
# "black", "o"],
# ["More",
# "part6and7-microbench-streamsluice-streamsluice_more-800-part7-linear-1split2join1-120-4000-4000-960-linear-2000-1-1440-stair_3-80-1-1440-stair_3-1-0-3-444-1-5000-3-444-1-5000-3-444-1-5000-5-500-5000-0.00-0.1-2000-3000-100-10-true-1",
# "green", "o"],
# ["Less",
# "part6and7-microbench-streamsluice-streamsluice_less-800-part7-linear-1split2join1-120-4000-4000-960-linear-2000-1-1440-stair_3-80-1-1440-stair_3-1-0-3-444-1-5000-3-444-1-5000-3-444-1-5000-5-500-5000-0.00-0.1-2000-3000-100-10-true-1",
# "orange", "o"],
# ["Minus_one",
# "part6and7-microbench-streamsluice-streamsluice_minus_one-800-part7-linear-1split2join1-120-4000-4000-960-linear-2000-1-1440-stair_3-80-1-1440-stair_3-1-0-3-444-1-5000-3-444-1-5000-3-444-1-5000-5-500-5000-0.00-0.1-2000-3000-100-10-true-3",
# "purple", "o"],
## ["No_Balance",
## "part6and7-microbench-streamsluice-streamsluice_no_balance-800-part7-linear-1split2join1-120-4000-4000-960-linear-2000-1-1440-stair_3-80-1-1440-stair_3-1-0-3-444-1-5000-3-444-1-5000-3-444-1-5000-5-500-5000-0.00-0.1-2000-3000-100-10-true-1",
## "olive", "o"],
# ["Sluice",
# "part6and7-microbench-streamsluice-streamsluice-800-part6-linear-1split2join1-120-4000-4000-960-linear-2000-1-1440-stair_3-80-1-1440-stair_3-1-0-3-444-1-5000-3-444-1-5000-3-444-1-5000-5-500-5000-0.00-0.1-2000-3000-100-10-true-2",
# "blue", "o"],
# ],
# "part7_linear_2": [
# ["Static",
# "part6and7-microbench-streamsluice-streamsluice_less-800-part7-linear-1split2join1-100-4000-4000-960-linear-2000-1-1440-stair_3-80-1-1440-stair_3-1-0-3-444-1-5000-3-444-1-5000-3-444-1-5000-5-500-5000-0.00-0.1-2000-3000-100-10-true-2",
# "black", "o"],
# ["Not_Bottleneck",
# "part6and7-microbench-streamsluice-streamsluice_not_bottleneck-800-part7-linear-1split2join1-120-4000-4000-960-linear-2000-1-1440-stair_3-80-1-1440-stair_3-1-0-3-444-1-5000-3-444-1-5000-3-444-1-5000-5-500-5000-0.00-0.1-2000-3000-100-10-true-3",
# "orange", "o"],
# ["Sluice",
# "part6and7-microbench-streamsluice-streamsluice-800-part6-linear-1split2join1-120-4000-4000-960-linear-2000-1-1440-stair_3-80-1-1440-stair_3-1-0-3-444-1-5000-3-444-1-5000-3-444-1-5000-5-500-5000-0.00-0.1-2000-3000-100-10-true-2",
# "blue", "o"],
# ],
# "part7_sine_1": [
# ["Static",
# "part6and7-microbench-streamsluice-ds2-700-part6-sine-1split2join1-120-4000-4000-960-linear-2000-1-1440-stair_3-80-1-1440-stair_3-1-0-3-444-1-5000-3-444-1-5000-3-444-1-5000-5-500-5000-0.00-0.1-2000-3000-100-10-false-1",
# "black", "o"],
# ["More",
# "part6and7-microbench-streamsluice-streamsluice_more-800-part7-sine-1split2join1-120-4000-4000-960-linear-2000-1-1440-stair_3-80-1-1440-stair_3-1-0-3-444-1-5000-3-444-1-5000-3-444-1-5000-5-500-5000-0.00-0.1-2000-3000-100-10-true-1",
# "green", "o"],
# ["Less",
# "part6and7-microbench-streamsluice-streamsluice_less-800-part7-sine-1split2join1-120-4000-4000-960-linear-2000-1-1440-stair_3-80-1-1440-stair_3-1-0-3-444-1-5000-3-444-1-5000-3-444-1-5000-5-500-5000-0.00-0.1-2000-3000-100-10-true-1",
# "orange", "o"],
## ["Minus_one",
## "part6and7-microbench-streamsluice-streamsluice_minus_one-800-part7-sine-1split2join1-120-4000-4000-960-linear-2000-1-1440-stair_3-80-1-1440-stair_3-1-0-3-444-1-5000-3-444-1-5000-3-444-1-5000-5-500-5000-0.00-0.1-2000-3000-100-10-true-2",
## "purple", "o"],
# ["No_Balance",
# "part6and7-microbench-streamsluice-streamsluice_no_balance-800-part7-sine-1split2join1-120-4000-4000-960-linear-2000-1-1440-stair_3-80-1-1440-stair_3-1-0-3-444-1-5000-3-444-1-5000-3-444-1-5000-5-500-5000-0.00-0.1-2000-3000-100-10-true-1",
# "olive", "o"],
# ["Sluice",
# "part6and7-microbench-streamsluice-streamsluice-800-part6-sine-1split2join1-120-4000-4000-960-linear-2000-1-1440-stair_3-80-1-1440-stair_3-1-0-3-444-1-5000-3-444-1-5000-3-444-1-5000-5-500-5000-0.00-0.1-2000-3000-100-10-true-1",
# "blue", "o"],
# ],
"part7_gradient_1": [
["Static",
"part6and7-microbench-streamsluice-streamsluice_less-800-part7-linear-1split2join1-100-4000-4000-960-linear-2000-1-1440-stair_3-80-1-1440-stair_3-1-0-3-444-1-5000-3-444-1-5000-3-444-1-5000-5-500-5000-0.00-0.1-2000-3000-100-10-true-2",
"part6and7-microbench-streamsluice_later-ds2-700-part6-gradient-1split2join1-120-4000-4000-960-linear-2000-1-1440-stair_3-80-1-1440-stair_3-1-0-3-444-1-5000-3-444-1-5000-3-444-1-5000-5-500-5000-0.00-0.1-2000-3000-100-10-false-3",
"black", "o"],
["More",
"part6and7-microbench-streamsluice-streamsluice_more-800-part7-linear-1split2join1-100-4000-4000-960-linear-2000-1-1440-stair_3-80-1-1440-stair_3-1-0-3-444-1-5000-3-444-1-5000-3-444-1-5000-5-500-5000-0.00-0.1-2000-3000-100-10-true-3",
"part6and7-microbench-streamsluice-streamsluice_more-800-part7-gradient-1split2join1-120-4000-4000-960-linear-2000-1-1440-stair_3-80-1-1440-stair_3-1-0-3-444-1-5000-3-444-1-5000-3-444-1-5000-5-500-5000-0.00-0.1-2000-3000-100-10-true-1",
"green", "o"],
["Less",
"part6and7-microbench-streamsluice-streamsluice_less-800-part7-linear-1split2join1-100-4000-4000-960-linear-2000-1-1440-stair_3-80-1-1440-stair_3-1-0-3-444-1-5000-3-444-1-5000-3-444-1-5000-5-500-5000-0.00-0.1-2000-3000-100-10-true-2",
"part6and7-microbench-streamsluice-streamsluice_less-800-part7-gradient-1split2join1-120-4000-4000-960-linear-2000-1-1440-stair_3-80-1-1440-stair_3-1-0-3-444-1-5000-3-444-1-5000-3-444-1-5000-5-500-5000-0.00-0.1-2000-3000-100-10-true-2",
"orange", "o"],
["Minus_one",
"part6and7-microbench-streamsluice-streamsluice_minus_one-800-part7-gradient-1split2join1-120-4000-4000-960-linear-2000-1-1440-stair_3-80-1-1440-stair_3-1-0-3-444-1-5000-3-444-1-5000-3-444-1-5000-5-500-5000-0.00-0.1-2000-3000-100-10-true-3",
"purple", "o"],
["No_Balance",
"part6and7-microbench-streamsluice-streamsluice_no_balance-800-part7-gradient-1split2join1-120-4000-4000-960-linear-2000-1-1440-stair_3-80-1-1440-stair_3-1-0-3-444-1-5000-3-444-1-5000-3-444-1-5000-5-500-5000-0.00-0.1-2000-3000-100-10-true-1",
"olive", "o"],
["Sluice",
"part6and7-microbench-streamsluice-streamsluice-800-part6-linear-1split2join1-120-4000-4000-960-linear-2000-1-1440-stair_3-80-1-1440-stair_3-1-0-3-444-1-5000-3-444-1-5000-3-444-1-5000-5-500-5000-0.00-0.1-2000-3000-100-10-true-2",
"part6and7-microbench-streamsluice-streamsluice-800-part6-gradient-1split2join1-120-4000-4000-960-linear-2000-1-1440-stair_3-80-1-1440-stair_3-1-0-3-444-1-5000-3-444-1-5000-3-444-1-5000-5-500-5000-0.00-0.1-2000-3000-100-10-true-1",
"blue", "o"],
]

],
}

startTime=60 #30+300 #30
14 changes: 7 additions & 7 deletions streamsluice_scripts/scripts/part6and7_microbench-local.sh
Original file line number Diff line number Diff line change
@@ -267,17 +267,17 @@ run_scale_test(){
for repeat in 1 2 3; do #
is_treat=true
autotune=true
run_one_exp
printf "${EXP_NAME}\n" >> part6and7_result.txt
# run_one_exp
# printf "${EXP_NAME}\n" >> part6and7_result.txt
done
done
done
done

period_low=80
LP2=5
LP3=5
LP4=5
LP2=6
LP3=6
LP4=6
LP5=13
SOURCE_TYPE="part7"
whether_type="streamsluice"
@@ -287,15 +287,15 @@ run_scale_test(){
autotuner_increase_bar_option=10
autotuner_initial_value_alpha=800 #1000 #1200

for CURVE_TYPE in "linear" "sine" "gradient"; do
for CURVE_TYPE in "linear" "sine"; do # "linear" "gradient"
for amplitude_low in 2000; do
is_treat=false
autotune=false
how_type="ds2"
# run_one_exp
# printf "${EXP_NAME}\n" >> part6and7_result.txt
whether_type="streamsluice"
for how_type in "streamsluice_more" "streamsluice_less" "streamsluice_minus_one" "streamsluice_no_balance" "streamsluice_not_bottleneck"; do # "ds2" "drs" "streamswitch"
for how_type in "streamsluice_not_bottleneck"; do # "streamsluice_more" "streamsluice_less" "streamsluice_minus_one" "streamsluice_no_balance"
for repeat in 1 2 3; do
is_treat=true
autotune=true

0 comments on commit 8862205

Please sign in to comment.