File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed
Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 11from typing import List , Optional
2+ import traceback
23
34import torch
45from torch .nn .attention import sdpa_kernel , SDPBackend
@@ -269,6 +270,7 @@ def run_benchmark(cfg: BenchmarkConfig) -> BenchmarkResult:
269270 cudnn_dense_tflops = cudnn_tflops ,
270271 )
271272 except Exception as exc :
273+ full_error = f"{ exc } \n { traceback .format_exc ()} "
272274 return BenchmarkResult (
273275 config = cfg ,
274276 triton_dense_ms = None ,
@@ -281,7 +283,7 @@ def run_benchmark(cfg: BenchmarkConfig) -> BenchmarkResult:
281283 triton_gated_tflops = None ,
282284 fa_dense_tflops = None ,
283285 cudnn_dense_tflops = None ,
284- error_message = str ( exc ) ,
286+ error_message = full_error ,
285287 )
286288
287289
@@ -290,7 +292,7 @@ def print_results(results: List[BenchmarkResult]) -> None:
290292 if not ok :
291293 print ("No successful benchmark results." )
292294 for r in results :
293- print (f"Failed: { r .config } -> { r .error_message } " )
295+ print (f"Failed: { r .config } \n { r .error_message } " )
294296 return
295297
296298 rows = []
Original file line number Diff line number Diff line change 11from typing import List , Optional
2+ import traceback
23
34import torch
45from torch .nn .attention import sdpa_kernel , SDPBackend
@@ -209,6 +210,7 @@ def run_benchmark(cfg: BenchmarkConfig) -> BenchmarkResult:
209210 cudnn_dense_tflops = cudnn_dense_tflops ,
210211 )
211212 except Exception as exc :
213+ full_error = f"{ exc } \n { traceback .format_exc ()} "
212214 return BenchmarkResult (
213215 config = cfg ,
214216 triton_dense_ms = None ,
@@ -221,7 +223,7 @@ def run_benchmark(cfg: BenchmarkConfig) -> BenchmarkResult:
221223 triton_gated_tflops = None ,
222224 fa_dense_tflops = None ,
223225 cudnn_dense_tflops = None ,
224- error_message = str ( exc ) ,
226+ error_message = full_error ,
225227 )
226228
227229
@@ -230,7 +232,7 @@ def print_results(results: List[BenchmarkResult]) -> None:
230232 if not ok :
231233 print ("No successful benchmark results." )
232234 for r in results :
233- print (f"Failed: { r .config } -> { r .error_message } " )
235+ print (f"Failed: { r .config } \n { r .error_message } " )
234236 return
235237
236238 rows = []
Original file line number Diff line number Diff line change 11from typing import List , Optional
2+ import traceback
23
34import torch
45from torch .nn .attention import sdpa_kernel , SDPBackend
@@ -212,6 +213,7 @@ def run_benchmark(cfg: BenchmarkConfig) -> BenchmarkResult:
212213 cudnn_dense_tflops = cudnn_dense_tflops ,
213214 )
214215 except Exception as exc :
216+ full_error = f"{ exc } \n { traceback .format_exc ()} "
215217 return BenchmarkResult (
216218 config = cfg ,
217219 triton_dense_ms = None ,
@@ -224,7 +226,7 @@ def run_benchmark(cfg: BenchmarkConfig) -> BenchmarkResult:
224226 triton_gated_tflops = None ,
225227 fa_dense_tflops = None ,
226228 cudnn_dense_tflops = None ,
227- error_message = str ( exc ) ,
229+ error_message = full_error ,
228230 )
229231
230232
@@ -233,7 +235,7 @@ def print_results(results: List[BenchmarkResult]) -> None:
233235 if not ok :
234236 print ("No successful benchmark results." )
235237 for r in results :
236- print (f"Failed: { r .config } -> { r .error_message } " )
238+ print (f"Failed: { r .config } \n { r .error_message } " )
237239 return
238240
239241 rows = []
You can’t perform that action at this time.
0 commit comments