Skip to content

Commit 1e81c7e

Browse files
committed
Fix issues in migration doc
1 parent 7bc6799 commit 1e81c7e

1 file changed

Lines changed: 25 additions & 1 deletion

File tree

‎cuda_bindings_13/docs/source/module/v2_migration.rst‎

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ The ``cuda.bindings._v2.driver`` module replaces ``cuda.bindings.driver``. The d
9494
Functions
9595
---------
9696

97-
Where the C symbol has a version suffix (``cuCtxCreate_v2``), the legacy module exposes only the unsuffixed name, while the new module keeps the suffix, so one legacy function can map to several new ones. Only changes to parameters and return values beyond the general rules above are noted. Renamed parameters are not listed.
97+
Where the C symbol has a version suffix (``cuCtxCreate_v2``), the legacy module generally exposes only the unsuffixed name, while the new module keeps the suffix, so one legacy function can map to several new ones. A few legacy functions (``cuCtxGetDevice_v2`` and similar) already carry the suffix. They have their own rows and map to the new function of the same name. Only changes to parameters and return values beyond the general rules above are noted. Renamed parameters are not listed.
9898

9999
.. list-table::
100100
:header-rows: 1
@@ -205,6 +205,9 @@ Where the C symbol has a version suffix (``cuCtxCreate_v2``), the legacy module
205205
* - ``cuCtxGetDevice``
206206
- ``ctx_get_device_v2``
207207
- Parameters added: ``ctx``.
208+
* - ``cuCtxGetDevice_v2``
209+
- ``ctx_get_device_v2``
210+
-
208211
* - ``cuCtxGetExecAffinity``
209212
- ``ctx_get_exec_affinity``
210213
-
@@ -250,6 +253,9 @@ Where the C symbol has a version suffix (``cuCtxCreate_v2``), the legacy module
250253
* - ``cuCtxSynchronize``
251254
- ``ctx_synchronize_v2``
252255
- Parameters added: ``ctx``.
256+
* - ``cuCtxSynchronize_v2``
257+
- ``ctx_synchronize_v2``
258+
-
253259
* - ``cuCtxWaitEvent``
254260
- ``ctx_wait_event``
255261
-
@@ -520,6 +526,9 @@ Where the C symbol has a version suffix (``cuCtxCreate_v2``), the legacy module
520526
* - ``cuGraphAddNode``
521527
- ``graph_add_node_v3``
522528
-
529+
* - ``cuGraphAddNode_v3``
530+
- ``graph_add_node_v3``
531+
-
523532
* - ``cuGraphBatchMemOpNodeGetParams``
524533
- ``graph_batch_mem_op_node_get_params``
525534
-
@@ -721,6 +730,9 @@ Where the C symbol has a version suffix (``cuCtxCreate_v2``), the legacy module
721730
* - ``cuGraphNodeSetParams``
722731
- ``graph_node_set_params_v2``
723732
-
733+
* - ``cuGraphNodeSetParams_v2``
734+
- ``graph_node_set_params_v2``
735+
-
724736
* - ``cuGraphReleaseUserObject``
725737
- ``graph_release_user_object``
726738
-
@@ -853,6 +865,9 @@ Where the C symbol has a version suffix (``cuCtxCreate_v2``), the legacy module
853865
* - ``cuLaunchHostFunc``
854866
- ``launch_host_func_v2``
855867
- Parameters added: ``sync_mode``.
868+
* - ``cuLaunchHostFunc_v2``
869+
- ``launch_host_func_v2``
870+
-
856871
* - ``cuLaunchKernel``
857872
- ``launch_kernel``
858873
-
@@ -1294,12 +1309,18 @@ Where the C symbol has a version suffix (``cuCtxCreate_v2``), the legacy module
12941309
* - ``cuMulticastBindAddr``
12951310
- ``multicast_bind_addr_v2``
12961311
- Parameters added: ``dev``.
1312+
* - ``cuMulticastBindAddr_v2``
1313+
- ``multicast_bind_addr_v2``
1314+
-
12971315
* - ``cuMulticastBindMem``
12981316
- ``multicast_bind_mem``
12991317
-
13001318
* - ``cuMulticastBindMem``
13011319
- ``multicast_bind_mem_v2``
13021320
- Parameters added: ``dev``.
1321+
* - ``cuMulticastBindMem_v2``
1322+
- ``multicast_bind_mem_v2``
1323+
-
13031324
* - ``cuMulticastCreate``
13041325
- ``multicast_create``
13051326
-
@@ -1402,6 +1423,9 @@ Where the C symbol has a version suffix (``cuCtxCreate_v2``), the legacy module
14021423
* - ``cuStreamGetCtx``
14031424
- ``stream_get_ctx_v2``
14041425
- Returns a 2-tuple ``(ctx, green_ctx)``. The legacy function returned only the context.
1426+
* - ``cuStreamGetCtx_v2``
1427+
- ``stream_get_ctx_v2``
1428+
-
14051429
* - ``cuStreamGetDevResource``
14061430
- ``stream_get_dev_resource``
14071431
-

0 commit comments

Comments
 (0)