Skip to content

Commit 0079436

Browse files
ndgrigorianCopilot
andcommitted
alias SyclProgramCompilationError in dpctl.program
Co-authored-by: Copilot <copilot@github.com>
1 parent 489656c commit 0079436

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

dpctl/program/__init__.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"SyclKernelBundle",
4141
"SyclKernelBundleCompilationError",
4242
"SyclProgram",
43+
"SyclProgramCompilationError",
4344
]
4445

4546

@@ -54,4 +55,15 @@ def __getattr__(name):
5455
stacklevel=2,
5556
)
5657
return SyclKernelBundle
58+
if name == "SyclProgramCompilationError":
59+
from warnings import warn
60+
61+
warn(
62+
"dpctl.program.SyclProgramCompilationError is deprecated and will "
63+
"be removed in a future release. Use "
64+
"dpctl.program.SyclKernelBundleCompilationError instead.",
65+
DeprecationWarning,
66+
stacklevel=2,
67+
)
68+
return SyclKernelBundleCompilationError
5769
raise AttributeError(f"module {__name__} has no attribute {name}")

0 commit comments

Comments
 (0)