File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -32,15 +32,20 @@ def onetrace_enabled():
32
32
"""Enable `onetrace` collection for kernels executed in this context.
33
33
34
34
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>`_.
36
37
37
38
:Example:
38
- Launch the Python interpreter using `onetrace` tool: ::
39
+ Launch the Python interpreter using `onetrace` tool:
40
+
41
+ .. code-block:: bash
39
42
40
43
$ onetrace --conditional-collection -v -t --demangle python app.py
41
44
42
45
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
44
49
45
50
import dpctl.tensor as dpt
46
51
from dpctl.utils import onetrace_enabled
You can’t perform that action at this time.
0 commit comments