Skip to content

Commit 29c7379

Browse files
committed
adds warning to syclinterface_diagnostics
1 parent 65df8d3 commit 29c7379

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dpctl/_diagnostics.pyx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ def _shutdown_logger():
6161
def syclinterface_diagnostics(verbosity="warning", log_dir=None):
6262
"""Context manager that activate verbosity of DPCTLSyclInterface
6363
function calls.
64+
65+
.. warning::
66+
This context manager modifies the ``DPCTL_VERBOSITY`` environment
67+
variable and should only be used from a single thread.
6468
"""
6569
_allowed_verbosity = ["warning", "error"]
6670
if verbosity not in _allowed_verbosity:

0 commit comments

Comments
 (0)