Skip to content

Commit 3e071e2

Browse files
committed
add nvfatbin.rst
1 parent 4c2f3f3 commit 3e071e2

1 file changed

Lines changed: 89 additions & 0 deletions

File tree

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
.. SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
.. SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
3+
4+
.. default-role:: cpp:any
5+
6+
nvfatbin
7+
========
8+
9+
Note
10+
----
11+
12+
The nvfatbin bindings are not supported on nvFatbin installations <12.4. Ensure the installed CUDA toolkit's nvFatbin version is >=12.4.
13+
14+
The Tile IR API (:func:`cuda.bindings.nvfatbin.add_tile_ir`) is only available in CUDA 13.1+.
15+
16+
Functions
17+
---------
18+
19+
NvFatbin defines the following functions for creating and populating fatbinaries.
20+
21+
.. autofunction:: cuda.bindings.nvfatbin.create
22+
.. autofunction:: cuda.bindings.nvfatbin.destroy
23+
.. autofunction:: cuda.bindings.nvfatbin.add_ptx
24+
.. autofunction:: cuda.bindings.nvfatbin.add_cubin
25+
.. autofunction:: cuda.bindings.nvfatbin.add_ltoir
26+
.. autofunction:: cuda.bindings.nvfatbin.add_reloc
27+
.. autofunction:: cuda.bindings.nvfatbin.add_tile_ir
28+
.. autofunction:: cuda.bindings.nvfatbin.size
29+
.. autofunction:: cuda.bindings.nvfatbin.get
30+
.. autofunction:: cuda.bindings.nvfatbin.get_error_string
31+
.. autofunction:: cuda.bindings.nvfatbin.version
32+
33+
Types
34+
---------
35+
.. autoclass:: cuda.bindings.nvfatbin.Result
36+
37+
.. autoattribute:: cuda.bindings.nvfatbin.Result.SUCCESS
38+
39+
40+
.. autoattribute:: cuda.bindings.nvfatbin.Result.ERROR_INTERNAL
41+
42+
43+
.. autoattribute:: cuda.bindings.nvfatbin.Result.ERROR_ELF_ARCH_MISMATCH
44+
45+
46+
.. autoattribute:: cuda.bindings.nvfatbin.Result.ERROR_ELF_SIZE_MISMATCH
47+
48+
49+
.. autoattribute:: cuda.bindings.nvfatbin.Result.ERROR_MISSING_PTX_VERSION
50+
51+
52+
.. autoattribute:: cuda.bindings.nvfatbin.Result.ERROR_NULL_POINTER
53+
54+
55+
.. autoattribute:: cuda.bindings.nvfatbin.Result.ERROR_COMPRESSION_FAILED
56+
57+
58+
.. autoattribute:: cuda.bindings.nvfatbin.Result.ERROR_COMPRESSED_SIZE_EXCEEDED
59+
60+
61+
.. autoattribute:: cuda.bindings.nvfatbin.Result.ERROR_UNRECOGNIZED_OPTION
62+
63+
64+
.. autoattribute:: cuda.bindings.nvfatbin.Result.ERROR_INVALID_ARCH
65+
66+
67+
.. autoattribute:: cuda.bindings.nvfatbin.Result.ERROR_INVALID_NVVM
68+
69+
70+
.. autoattribute:: cuda.bindings.nvfatbin.Result.ERROR_EMPTY_INPUT
71+
72+
73+
.. autoattribute:: cuda.bindings.nvfatbin.Result.ERROR_MISSING_PTX_ARCH
74+
75+
76+
.. autoattribute:: cuda.bindings.nvfatbin.Result.ERROR_PTX_ARCH_MISMATCH
77+
78+
79+
.. autoattribute:: cuda.bindings.nvfatbin.Result.ERROR_MISSING_FATBIN
80+
81+
82+
.. autoattribute:: cuda.bindings.nvfatbin.Result.ERROR_INVALID_INDEX
83+
84+
85+
.. autoattribute:: cuda.bindings.nvfatbin.Result.ERROR_IDENTIFIER_REUSE
86+
87+
88+
.. autoattribute:: cuda.bindings.nvfatbin.Result.ERROR_INTERNAL_PTX_OPTION
89+

0 commit comments

Comments
 (0)