Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions benchmark/scripts/scanThreads/config_BCoAMM.csv

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ aRow,10000,U64
aCol,1000,U64
bCol,500,U64
sketchDimension,25,U64
threads,1,U64
ptFile,torchscripts/CRS.pt,String
useCPP,1,U64
cppAlgoTag,bcoofd,String
cppAlgoTag,CoOFD,String
threads,1,U64
forceMP,1,U64
10 changes: 10 additions & 0 deletions benchmark/scripts/scanThreads/config_CPPCOUNTERSKETCH.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
key,value,type
aRow,10000,U64
aCol,1000,U64
bCol,500,U64
sketchDimension,25,U64
ptFile,torchscripts/CRS.pt,String
useCPP,1,U64
cppAlgoTag,countSketch,String
threads,1,U64
forceMP,1,U64
5 changes: 3 additions & 2 deletions benchmark/scripts/scanThreads/config_CPPCRS.csv
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ aRow,10000,U64
aCol,1000,U64
bCol,500,U64
sketchDimension,25,U64
threads,1,U64
ptFile,torchscripts/CRS.pt,String
useCPP,1,U64
cppAlgoTag,crs,String
cppAlgoTag,crs,String
threads,1,U64
forceMP,1,U64
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ aRow,10000,U64
aCol,1000,U64
bCol,500,U64
sketchDimension,25,U64
threads,1,U64
ptFile,torchscripts/RAWMM.pt,String
useCPP,1,U64
cppAlgoTag,count-sketch,String
cppAlgoTag,ews,String
threads,1,U64
forceMP,1,U64
5 changes: 3 additions & 2 deletions benchmark/scripts/scanThreads/config_CPPMM.csv
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ aRow,10000,U64
aCol,1000,U64
bCol,500,U64
sketchDimension,25,U64
threads,1,U64
ptFile,torchscripts/RAWMM.pt,String
useCPP,1,U64
cppAlgoTag,mm,String
cppAlgoTag,mm,String
forceMP,1,U64
threads,1,U64
10 changes: 10 additions & 0 deletions benchmark/scripts/scanThreads/config_CPPTOW.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
key,value,type
aRow,10000,U64
aCol,1000,U64
bCol,500,U64
sketchDimension,25,U64
ptFile,torchscripts/RAWMM.pt,String
useCPP,1,U64
cppAlgoTag,tugOfWar,String
threads,1,U64
forceMP,1,U64
6 changes: 0 additions & 6 deletions benchmark/scripts/scanThreads/config_CRS.csv

This file was deleted.

8 changes: 0 additions & 8 deletions benchmark/scripts/scanThreads/config_CoAMM.csv

This file was deleted.

8 changes: 0 additions & 8 deletions benchmark/scripts/scanThreads/config_CounterSketch.csv

This file was deleted.

8 changes: 0 additions & 8 deletions benchmark/scripts/scanThreads/config_FDAMM.csv

This file was deleted.

18 changes: 9 additions & 9 deletions benchmark/scripts/scanThreads/drawTogether.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ def main():
figPath = os.path.abspath(os.path.join(os.getcwd(), "../..")) + "/figures/" + scanTag
configTemplate = exeSpace + "config.csv"
commonBase = resultPath + "/"
resultPaths = ["CRS", "MM"]
csvTemplates = ["config_CPPCRS.csv", "config_CPPMM.csv"]
evaTypes = ['crs-cpp', 'mm-cpp']
valueVec = [1, 2, 4, 6, 8, 10, 12]
resultPaths = ["mm", "crs","ews","counterSketch","cofd","tow"]
csvTemplates = ["config_CPPMM.csv", "config_CPPCRS.csv","config_CPPEWS.csv","config_CPPCOUNTERSKETCH.csv","config_CPPCOFD.csv","config_CPPTOW.csv"]
methodTags = ["mm", "crs","ews","counterSketch","cofd","tow"]
valueVec = [ 2, 4, 6, 8, 10, 12]
valueVecRun = valueVec
print(configTemplate)
reRun = 0
Expand All @@ -159,7 +159,7 @@ def main():
froErroAllSum = np.zeros((tRows, tCols))
errorBoundRatioSum = np.zeros((tRows, tCols))
cacheMissAll = np.zeros((tRows, tCols))
rounds = 10
rounds = 1
for i in range(rounds):
elapseTimeAll, ch, periodAll, fro, eb = compareMethod(exeSpace, commonBase, resultPaths, csvTemplates, valueVec,
reRun)
Expand All @@ -180,22 +180,22 @@ def main():
# os.system("mkdir " + figPath)
groupLine.DrawFigureXYnormal(periodAll,
1 / elapseTimeAllSum,
evaTypes,
methodTags,
"#threads", "1/elapsed time (1/ms)", 0, 1, figPath + "/" + "threads" + "_elapsedTime",
True)
groupLine.DrawFigureXYnormal(periodAll,
froErroAllSum * 100.0,
evaTypes,
methodTags,
"#threads", "normalized error %", 0, 1, figPath + "/" + "threads" + "_froError",
True)
groupLine.DrawFigureXYnormal(periodAll,
errorBoundRatioSum * 100.0,
evaTypes,
methodTags,
"#threads", "error bound ratio %", 0, 1, figPath + "/" + "threads" + "_ebRatio",
True)
groupLine.DrawFigureXYnormal(periodAll,
cacheMissAll,
evaTypes,
methodTags,
"#threads", "cache miss %", 0, 1, figPath + "/" + "threads" + "_cachemiss",
True)
# draw2yLine("watermark time (ms)",singleValueVecDisp,lat95Vec,errVec,"95% Latency (ms)","Error","ms","",figPath+"wm_lat")
Expand Down
Empty file modified benchmark/scripts/scanThreadsRockPi5/OoOCommon.py
100755 → 100644
Empty file.
Empty file modified benchmark/scripts/scanThreadsRockPi5/accuBar.py
100755 → 100644
Empty file.
Empty file modified benchmark/scripts/scanThreadsRockPi5/autoParase.py
100755 → 100644
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ key,value,type
aRow,10000,U64
aCol,1000,U64
bCol,500,U64
aReduce,10,U64
sketchDimension,25,U64
ptFile,torchscripts/CRS.pt,String
useCPP,1,U64
cppAlgoTag,CoOFD,String
threads,1,U64
ptFile,torchscripts/RAWMM.pt,String
forceMP,1,U64
10 changes: 10 additions & 0 deletions benchmark/scripts/scanThreadsRockPi5/config_CPPCOUNTERSKETCH.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
key,value,type
aRow,10000,U64
aCol,1000,U64
bCol,500,U64
sketchDimension,25,U64
ptFile,torchscripts/CRS.pt,String
useCPP,1,U64
cppAlgoTag,countSketch,String
threads,1,U64
forceMP,1,U64
5 changes: 3 additions & 2 deletions benchmark/scripts/scanThreadsRockPi5/config_CPPCRS.csv
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ aRow,10000,U64
aCol,1000,U64
bCol,500,U64
sketchDimension,25,U64
threads,1,U64
ptFile,torchscripts/CRS.pt,String
useCPP,1,U64
cppAlgoTag,crs,String
cppAlgoTag,crs,String
threads,1,U64
forceMP,1,U64
10 changes: 10 additions & 0 deletions benchmark/scripts/scanThreadsRockPi5/config_CPPEWS.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
key,value,type
aRow,10000,U64
aCol,1000,U64
bCol,500,U64
sketchDimension,25,U64
ptFile,torchscripts/RAWMM.pt,String
useCPP,1,U64
cppAlgoTag,ews,String
threads,1,U64
forceMP,1,U64
5 changes: 3 additions & 2 deletions benchmark/scripts/scanThreadsRockPi5/config_CPPMM.csv
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ aRow,10000,U64
aCol,1000,U64
bCol,500,U64
sketchDimension,25,U64
threads,1,U64
ptFile,torchscripts/RAWMM.pt,String
useCPP,1,U64
cppAlgoTag,mm,String
cppAlgoTag,mm,String
forceMP,1,U64
threads,1,U64
10 changes: 10 additions & 0 deletions benchmark/scripts/scanThreadsRockPi5/config_CPPTOW.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
key,value,type
aRow,10000,U64
aCol,1000,U64
bCol,500,U64
sketchDimension,25,U64
ptFile,torchscripts/RAWMM.pt,String
useCPP,1,U64
cppAlgoTag,tugOfWar,String
threads,1,U64
forceMP,1,U64
16 changes: 8 additions & 8 deletions benchmark/scripts/scanThreadsRockPi5/drawTogether.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ def main():
figPath = os.path.abspath(os.path.join(os.getcwd(), "../..")) + "/figures/" + scanTag
configTemplate = exeSpace + "config.csv"
commonBase = resultPath + "/"
resultPaths = ["CRS", "MM", "counter-sketch", "BCO"]
csvTemplates = ["config_CPPCRS.csv", "config_CPPMM.csv", "config_CPPCounterSketch.csv", "config_CPPBCO.csv"]
evaTypes = ['crs-cpp', 'mm-cpp', 'counter-sketch-cpp', 'bco']
valueVec = [1, 2, 3, 4, 5, 6, 7, 8]
resultPaths = ["mm", "crs","ews","counterSketch","cofd","tow"]
csvTemplates = ["config_CPPMM.csv", "config_CPPCRS.csv","config_CPPEWS.csv","config_CPPCOUNTERSKETCH.csv","config_CPPCOFD.csv","config_CPPTOW.csv"]
methodTags = ["mm", "crs","ews","counterSketch","cofd","tow"]
valueVec = [1,2,3,4,5,6,7,8]
valueVecRun = valueVec
print(configTemplate)
reRun = 0
Expand Down Expand Up @@ -180,22 +180,22 @@ def main():
# os.system("mkdir " + figPath)
groupLine.DrawFigureXYnormal(periodAll,
1 / elapseTimeAllSum,
evaTypes,
methodTags,
"#threads", "1/elapsed time (1/ms)", 0, 1, figPath + "/" + "threads" + "_elapsedTime",
True)
groupLine.DrawFigureXYnormal(periodAll,
froErroAllSum * 100.0,
evaTypes,
methodTags,
"#threads", "normalized error %", 0, 1, figPath + "/" + "threads" + "_froError",
True)
groupLine.DrawFigureXYnormal(periodAll,
errorBoundRatioSum * 100.0,
evaTypes,
methodTags,
"#threads", "error bound ratio %", 0, 1, figPath + "/" + "threads" + "_ebRatio",
True)
groupLine.DrawFigureXYnormal(periodAll,
cacheMissAll,
evaTypes,
methodTags,
"#threads", "cache miss %", 0, 1, figPath + "/" + "threads" + "_cachemiss",
True)
# draw2yLine("watermark time (ms)",singleValueVecDisp,lat95Vec,errVec,"95% Latency (ms)","Error","ms","",figPath+"wm_lat")
Expand Down
Loading