Skip to content

Commit 4c4f235

Browse files
authored
add method name to cuda error msg (pytorch#15133)
as title
1 parent e159e65 commit 4c4f235

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backends/cuda/cuda_backend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def preprocess(
166166
if len(missing_fallback_kernels) > 0:
167167
formatted_kernels = "\n - ".join(sorted(missing_fallback_kernels))
168168
raise RuntimeError(
169-
f"Missing fallback kernels ({len(missing_fallback_kernels)} total):\n - {formatted_kernels}\n"
169+
f"Method {CudaBackend.method_name_from_compile_specs(compile_specs)} missing fallback kernels ({len(missing_fallback_kernels)} total):\n - {formatted_kernels}\n"
170170
"Please add them to the AOTI backend."
171171
)
172172

0 commit comments

Comments
 (0)