@@ -14,7 +14,11 @@ def parse_args():
1414 "target" ,
1515 help = "Path to result csv file with benchmark results including host info and dates" ,
1616 )
17- parser .add_argument ("--param_cols" , help = "Names of parameter columns, separated by commas." , required = True )
17+ parser .add_argument (
18+ "--param_cols" ,
19+ help = "Names of parameter columns, separated by commas." ,
20+ required = True ,
21+ )
1822 parser .add_argument ("--benchmark" , help = "Name of the benchmark." , required = True )
1923 parser .add_argument ("--compiler" , help = "Name of the compiler, like `triton`." , required = True )
2024 parser .add_argument ("--tflops_col" , help = "Column name with tflops." , required = True )
@@ -47,10 +51,18 @@ def transform_df(df, param_cols, tflops_col, hbm_col, benchmark, compiler, tag):
4751
4852 host_info = {
4953 n : os .getenv (n .upper (), default = "" )
50- for n in ["libigc1_version" , "level_zero_version" , "gpu_device" , "agama_version" ]
54+ for n in [
55+ "libigc1_version" ,
56+ "level_zero_version" ,
57+ "gpu_device" ,
58+ "agama_version" ,
59+ "torch_version" ,
60+ "compiler_version" ,
61+ "benchmarking_method" ,
62+ ]
5163 }
5264 if not host_info ["gpu_device" ]:
53- raise RuntimeError ("Could not find GPU device description, was capture_device .sh called?" )
65+ raise RuntimeError ("Could not find GPU device description, was `capture-hw-details .sh` called?" )
5466 for name , val in host_info .items ():
5567 df_results [name ] = val
5668
@@ -61,8 +73,15 @@ def main():
6173 args = parse_args ()
6274 param_cols = args .param_cols .split ("," )
6375 df = pd .read_csv (args .source )
64- result_df = transform_df (df , param_cols = param_cols , tflops_col = args .tflops_col , hbm_col = args .hbm_col ,
65- benchmark = args .benchmark , compiler = args .compiler , tag = args .tag )
76+ result_df = transform_df (
77+ df ,
78+ param_cols = param_cols ,
79+ tflops_col = args .tflops_col ,
80+ hbm_col = args .hbm_col ,
81+ benchmark = args .benchmark ,
82+ compiler = args .compiler ,
83+ tag = args .tag ,
84+ )
6685 result_df .to_csv (args .target , index = False )
6786
6887
0 commit comments