Skip to content

Commit 989e087

Browse files
authored
Merge pull request #445 from rwgk/add_docs_nvvm_rst
Add cuda_bindings/docs/source/module/nvvm.rst
2 parents acff0c5 + 71267d1 commit 989e087

File tree

6 files changed

+76
-0
lines changed

6 files changed

+76
-0
lines changed

cuda_bindings/docs/source/api.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ CUDA Python API Reference
1010
module/runtime
1111
module/nvrtc
1212
module/nvjitlink
13+
module/nvvm

cuda_bindings/docs/source/install.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Where the optional dependencies are:
2929

3030
* nvidia-cuda-nvrtc-cu12 (Provides NVRTC shared library)
3131
* nvidia-nvjitlink-cu12>=12.3 (Provides nvJitLink shared library)
32+
* nvidia-cuda-nvcc-cu12 (Provides NVVM shared library)
3233

3334

3435
## Installing from Conda
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
nvvm
2+
====
3+
4+
The ``cuda.bindings.nvvm`` Python module wraps the
5+
`libNVVM C API <https://docs.nvidia.com/cuda/libnvvm-api/>`_.
6+
7+
Functions
8+
---------
9+
10+
.. autofunction:: cuda.bindings.nvvm.version
11+
.. autofunction:: cuda.bindings.nvvm.ir_version
12+
.. autofunction:: cuda.bindings.nvvm.create_program
13+
.. autofunction:: cuda.bindings.nvvm.add_module_to_program
14+
.. autofunction:: cuda.bindings.nvvm.lazy_add_module_to_program
15+
.. autofunction:: cuda.bindings.nvvm.compile_program
16+
.. autofunction:: cuda.bindings.nvvm.verify_program
17+
.. autofunction:: cuda.bindings.nvvm.get_compiled_result_size
18+
.. autofunction:: cuda.bindings.nvvm.get_compiled_result
19+
.. autofunction:: cuda.bindings.nvvm.get_program_log_size
20+
.. autofunction:: cuda.bindings.nvvm.get_program_log
21+
22+
Types
23+
-----
24+
25+
..
26+
The empty lines below are important!
27+
28+
.. autoclass:: cuda.bindings.nvvm.Result
29+
30+
.. autoattribute:: cuda.bindings.nvvm.Result.SUCCESS
31+
32+
.. autoattribute:: cuda.bindings.nvvm.Result.ERROR_OUT_OF_MEMORY
33+
34+
.. autoattribute:: cuda.bindings.nvvm.Result.ERROR_PROGRAM_CREATION_FAILURE
35+
36+
.. autoattribute:: cuda.bindings.nvvm.Result.ERROR_IR_VERSION_MISMATCH
37+
38+
.. autoattribute:: cuda.bindings.nvvm.Result.ERROR_INVALID_INPUT
39+
40+
.. autoattribute:: cuda.bindings.nvvm.Result.ERROR_INVALID_PROGRAM
41+
42+
.. autoattribute:: cuda.bindings.nvvm.Result.ERROR_INVALID_IR
43+
44+
.. autoattribute:: cuda.bindings.nvvm.Result.ERROR_INVALID_OPTION
45+
46+
.. autoattribute:: cuda.bindings.nvvm.Result.ERROR_NO_MODULE_IN_PROGRAM
47+
48+
.. autoattribute:: cuda.bindings.nvvm.Result.ERROR_COMPILATION
49+
50+
.. autoattribute:: cuda.bindings.nvvm.Result.ERROR_CANCELLED

cuda_bindings/docs/source/release.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Release Notes
44
.. toctree::
55
:maxdepth: 3
66

7+
12.X.Y <release/12.X.Y-notes.rst>
78
12.8.0 <release/12.8.0-notes.md>
89
12.6.2 <release/12.6.2-notes.md>
910
12.6.1 <release/12.6.1-notes.md>
@@ -15,6 +16,7 @@ Release Notes
1516
12.2.0 <release/12.2.0-notes.md>
1617
12.1.0 <release/12.1.0-notes.md>
1718
12.0.0 <release/12.0.0-notes.md>
19+
11.8.7 <release/11.8.7-notes.rst>
1820
11.8.6 <release/11.8.6-notes.md>
1921
11.8.5 <release/11.8.5-notes.md>
2022
11.8.4 <release/11.8.4-notes.md>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
``cuda-bindings`` 11.8.7 Release notes
2+
======================================
3+
4+
Released on **TBD**.
5+
6+
7+
Highlights
8+
----------
9+
10+
* The ``cuda.bindings.nvvm`` Python module was added, wrapping the
11+
`libNVVM C API <https://docs.nvidia.com/cuda/libnvvm-api/>`_.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
``cuda-bindings`` 12.X.Y Release notes
2+
======================================
3+
4+
Released on **TBD**.
5+
6+
7+
Highlights
8+
----------
9+
10+
* The ``cuda.bindings.nvvm`` Python module was added, wrapping the
11+
`libNVVM C API <https://docs.nvidia.com/cuda/libnvvm-api/>`_.

0 commit comments

Comments
 (0)