Skip to content

Commit f9a3e1b

Browse files
Address SPHINX error
Docorated bash example as bash code-block, added URL for intel/pti-gpu, mentioned `unitrace` as an alternative to `onetrace`.
1 parent 396f764 commit f9a3e1b

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

dpctl/utils/_onetrace_context.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,20 @@ def onetrace_enabled():
3232
"""Enable `onetrace` collection for kernels executed in this context.
3333
3434
N.B.: Proper working of this utility assumes that Python interpreter
35-
has been launched by `onetrace` tool from intel/pti-gpu project.
35+
has been launched by `onetrace` or `unitrace` tool from project
36+
`intel/pti-gpu <https://github.com/intel/pti-gpu>`_.
3637
3738
:Example:
38-
Launch the Python interpreter using `onetrace` tool: ::
39+
Launch the Python interpreter using `onetrace` tool:
40+
41+
.. code-block:: bash
3942
4043
$ onetrace --conditional-collection -v -t --demangle python app.py
4144
4245
Now using the context manager in the Python sessions enables
43-
data collection and its output for every offloaded kernel ::
46+
data collection and its output for every offloaded kernel:
47+
48+
.. code-block:: python
4449
4550
import dpctl.tensor as dpt
4651
from dpctl.utils import onetrace_enabled

0 commit comments

Comments
 (0)