Skip to content

Commit c1c0474

Browse files
Copilotleofang
andcommitted
Phase 5: Fix MyST syntax issues and validate conversion
Co-authored-by: leofang <5534781+leofang@users.noreply.github.com>
1 parent f386286 commit c1c0474

1 file changed

Lines changed: 7 additions & 10 deletions

File tree

cuda_bindings/docs/source/overview.rst

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ interoperability among different accelerated libraries. Most importantly, it
1515
should be easy for Python developers to use NVIDIA GPUs.
1616

1717
``cuda.bindings`` workflow
18-
------------------------
18+
---------------------------
1919

2020
Because Python is an interpreted language, you need a way to compile the device
2121
code into
@@ -286,17 +286,16 @@ was used for application performance.
286286
287287
The following command was used to profile the applications:
288288
289-
.. code-block:: {code-block} shell
289+
.. code-block:: shell
290290
291291
nsys profile -s none -t cuda --stats=true <executable>
292292
293-
.. code-block:: {list-table} Kernel and application performance comparison.
294-
293+
.. list-table:: Kernel and application performance comparison.
295294
:header-rows: 1
296-
295+
297296
* -
298297
- C++
299-
- Python
298+
- Python
300299
* - Kernel execution
301300
- 352µs
302301
- 352µs
@@ -310,8 +309,7 @@ interactive kernel profiler for CUDA applications. It allows you to have
310309
detailed insights into kernel performance. This is useful when you're trying to
311310
maximize performance ({numref}``Figure 1``).
312311
313-
.. code-block:: {figure} _static/images/Nsight-Compute-CLI-625x473.png
314-
312+
.. figure:: _static/images/Nsight-Compute-CLI-625x473.png
315313
:name: Figure 1
316314
317315
Screenshot of Nsight Compute CLI output of ``cuda.bindings`` example.
@@ -353,8 +351,7 @@ Let's use the following kernel definition as an example:
353351
354352
The first step is to create array objects with types corresponding to your kernel arguments. Primitive NumPy types have the following corresponding kernel types:
355353
356-
.. code-block:: {list-table} Correspondence between NumPy types and kernel types.
357-
354+
.. list-table:: Correspondence between NumPy types and kernel types.
358355
:header-rows: 1
359356
360357
* - NumPy type

0 commit comments

Comments
 (0)