We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 489656c commit 0079436Copy full SHA for 0079436
1 file changed
dpctl/program/__init__.py
@@ -40,6 +40,7 @@
40
"SyclKernelBundle",
41
"SyclKernelBundleCompilationError",
42
"SyclProgram",
43
+ "SyclProgramCompilationError",
44
]
45
46
@@ -54,4 +55,15 @@ def __getattr__(name):
54
55
stacklevel=2,
56
)
57
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
69
raise AttributeError(f"module {__name__} has no attribute {name}")
0 commit comments