nvmath-python 0.5.0__cp313-cp313-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (174) hide show
  1. nvmath/__init__.pxd +0 -0
  2. nvmath/__init__.py +37 -0
  3. nvmath/_internal/__init__.py +0 -0
  4. nvmath/_internal/layout.py +58 -0
  5. nvmath/_utils.py +363 -0
  6. nvmath/bindings/__init__.pxd +0 -0
  7. nvmath/bindings/__init__.py +44 -0
  8. nvmath/bindings/_internal/__init__.pxd +0 -0
  9. nvmath/bindings/_internal/__init__.py +0 -0
  10. nvmath/bindings/_internal/cublas.cp313-win_amd64.pyd +0 -0
  11. nvmath/bindings/_internal/cublas.pxd +518 -0
  12. nvmath/bindings/_internal/cublasLt.cp313-win_amd64.pyd +0 -0
  13. nvmath/bindings/_internal/cublasLt.pxd +54 -0
  14. nvmath/bindings/_internal/cudss.cp313-win_amd64.pyd +0 -0
  15. nvmath/bindings/_internal/cudss.pxd +44 -0
  16. nvmath/bindings/_internal/cufft.cp313-win_amd64.pyd +0 -0
  17. nvmath/bindings/_internal/cufft.pxd +69 -0
  18. nvmath/bindings/_internal/cufftMp.pxd +77 -0
  19. nvmath/bindings/_internal/curand.cp313-win_amd64.pyd +0 -0
  20. nvmath/bindings/_internal/curand.pxd +42 -0
  21. nvmath/bindings/_internal/cusolver.cp313-win_amd64.pyd +0 -0
  22. nvmath/bindings/_internal/cusolver.pxd +15 -0
  23. nvmath/bindings/_internal/cusolverDn.cp313-win_amd64.pyd +0 -0
  24. nvmath/bindings/_internal/cusolverDn.pxd +386 -0
  25. nvmath/bindings/_internal/cusparse.cp313-win_amd64.pyd +0 -0
  26. nvmath/bindings/_internal/cusparse.pxd +270 -0
  27. nvmath/bindings/_internal/mathdx.cp313-win_amd64.pyd +0 -0
  28. nvmath/bindings/_internal/mathdx.pxd +79 -0
  29. nvmath/bindings/_internal/nvshmem.pxd +29 -0
  30. nvmath/bindings/_internal/utils.cp313-win_amd64.pyd +0 -0
  31. nvmath/bindings/_internal/utils.pxd +186 -0
  32. nvmath/bindings/cublas.cp313-win_amd64.pyd +0 -0
  33. nvmath/bindings/cublas.pxd +545 -0
  34. nvmath/bindings/cublas.pyi +18 -0
  35. nvmath/bindings/cublasLt.cp313-win_amd64.pyd +0 -0
  36. nvmath/bindings/cublasLt.pxd +99 -0
  37. nvmath/bindings/cudss.cp313-win_amd64.pyd +0 -0
  38. nvmath/bindings/cudss.pxd +83 -0
  39. nvmath/bindings/cudss.pyi +249 -0
  40. nvmath/bindings/cufft.cp313-win_amd64.pyd +0 -0
  41. nvmath/bindings/cufft.pxd +114 -0
  42. nvmath/bindings/cufftMp.pxd +124 -0
  43. nvmath/bindings/curand.cp313-win_amd64.pyd +0 -0
  44. nvmath/bindings/curand.pxd +71 -0
  45. nvmath/bindings/cusolver.cp313-win_amd64.pyd +0 -0
  46. nvmath/bindings/cusolver.pxd +60 -0
  47. nvmath/bindings/cusolverDn.cp313-win_amd64.pyd +0 -0
  48. nvmath/bindings/cusolverDn.pxd +410 -0
  49. nvmath/bindings/cusparse.cp313-win_amd64.pyd +0 -0
  50. nvmath/bindings/cusparse.pxd +329 -0
  51. nvmath/bindings/cycublas.cp313-win_amd64.pyd +0 -0
  52. nvmath/bindings/cycublas.pxd +657 -0
  53. nvmath/bindings/cycublasLt.cp313-win_amd64.pyd +0 -0
  54. nvmath/bindings/cycublasLt.pxd +1010 -0
  55. nvmath/bindings/cycudss.cp313-win_amd64.pyd +0 -0
  56. nvmath/bindings/cycudss.pxd +191 -0
  57. nvmath/bindings/cycufft.cp313-win_amd64.pyd +0 -0
  58. nvmath/bindings/cycufft.pxd +320 -0
  59. nvmath/bindings/cycufftMp.pxd +333 -0
  60. nvmath/bindings/cycurand.cp313-win_amd64.pyd +0 -0
  61. nvmath/bindings/cycurand.pxd +146 -0
  62. nvmath/bindings/cycusolver.cp313-win_amd64.pyd +0 -0
  63. nvmath/bindings/cycusolver.pxd +143 -0
  64. nvmath/bindings/cycusolverDn.cp313-win_amd64.pyd +0 -0
  65. nvmath/bindings/cycusolverDn.pxd +414 -0
  66. nvmath/bindings/cycusparse.cp313-win_amd64.pyd +0 -0
  67. nvmath/bindings/cycusparse.pxd +476 -0
  68. nvmath/bindings/cymathdx.cp313-win_amd64.pyd +0 -0
  69. nvmath/bindings/cymathdx.pxd +363 -0
  70. nvmath/bindings/cynvshmem.pxd +126 -0
  71. nvmath/bindings/mathdx.cp313-win_amd64.pyd +0 -0
  72. nvmath/bindings/mathdx.pxd +131 -0
  73. nvmath/bindings/mathdx.pyi +686 -0
  74. nvmath/bindings/nvpl/__init__.pxd +0 -0
  75. nvmath/bindings/nvpl/__init__.py +11 -0
  76. nvmath/bindings/nvpl/_internal/__init__.pxd +0 -0
  77. nvmath/bindings/nvpl/_internal/__init__.py +0 -0
  78. nvmath/bindings/nvpl/_internal/fft.pxd +36 -0
  79. nvmath/bindings/nvpl/cyfft.pxd +87 -0
  80. nvmath/bindings/nvpl/fft.pxd +100 -0
  81. nvmath/bindings/nvshmem.pxd +54 -0
  82. nvmath/device/__init__.py +23 -0
  83. nvmath/device/_deprecated.py +33 -0
  84. nvmath/device/caching.py +51 -0
  85. nvmath/device/common.py +131 -0
  86. nvmath/device/common_backend.py +125 -0
  87. nvmath/device/common_cuda.py +156 -0
  88. nvmath/device/common_mathdx.py +97 -0
  89. nvmath/device/common_numba.py +159 -0
  90. nvmath/device/common_opaque_tensor.py +128 -0
  91. nvmath/device/cublasdx.py +1085 -0
  92. nvmath/device/cublasdx_backend.py +552 -0
  93. nvmath/device/cublasdx_numba.py +528 -0
  94. nvmath/device/cufftdx.py +551 -0
  95. nvmath/device/cufftdx_backend.py +194 -0
  96. nvmath/device/cufftdx_numba.py +123 -0
  97. nvmath/device/curand_kernel.py +9147 -0
  98. nvmath/device/nvrtc.py +95 -0
  99. nvmath/device/patch.py +35 -0
  100. nvmath/device/random.py +417 -0
  101. nvmath/device/random_helpers.py +23 -0
  102. nvmath/device/random_states.py +189 -0
  103. nvmath/device/types.py +11 -0
  104. nvmath/device/vector_types_numba.py +203 -0
  105. nvmath/distributed/__init__.py +117 -0
  106. nvmath/distributed/_internal/__init__.py +0 -0
  107. nvmath/distributed/_internal/nvshmem.py +243 -0
  108. nvmath/distributed/_internal/tensor_ifc_cupy.py +111 -0
  109. nvmath/distributed/_internal/tensor_ifc_numpy.py +53 -0
  110. nvmath/distributed/_internal/tensor_ifc_torch.py +108 -0
  111. nvmath/distributed/_internal/tensor_wrapper.py +59 -0
  112. nvmath/distributed/_utils.py +152 -0
  113. nvmath/distributed/fft/__init__.py +6 -0
  114. nvmath/distributed/fft/_configuration.py +86 -0
  115. nvmath/distributed/fft/fft.py +1737 -0
  116. nvmath/distributed/reshape/__init__.py +6 -0
  117. nvmath/distributed/reshape/_configuration.py +39 -0
  118. nvmath/distributed/reshape/reshape.py +1249 -0
  119. nvmath/fft/__init__.py +7 -0
  120. nvmath/fft/_configuration.py +208 -0
  121. nvmath/fft/_exec_utils.py +116 -0
  122. nvmath/fft/_helpers.py +260 -0
  123. nvmath/fft/fft.py +2346 -0
  124. nvmath/internal/__init__.py +5 -0
  125. nvmath/internal/enum_utils.py +142 -0
  126. nvmath/internal/formatters.py +87 -0
  127. nvmath/internal/mem_limit.py +51 -0
  128. nvmath/internal/package_ifc.py +119 -0
  129. nvmath/internal/package_ifc_cuda.py +43 -0
  130. nvmath/internal/package_ifc_cupy.py +49 -0
  131. nvmath/internal/package_ifc_torch.py +31 -0
  132. nvmath/internal/package_wrapper.py +14 -0
  133. nvmath/internal/tensor_ifc.py +143 -0
  134. nvmath/internal/tensor_ifc_cupy.py +185 -0
  135. nvmath/internal/tensor_ifc_numpy.py +157 -0
  136. nvmath/internal/tensor_ifc_torch.py +115 -0
  137. nvmath/internal/tensor_wrapper.py +160 -0
  138. nvmath/internal/typemaps.py +154 -0
  139. nvmath/internal/utils.py +634 -0
  140. nvmath/linalg/__init__.py +11 -0
  141. nvmath/linalg/_internal/__init__.py +3 -0
  142. nvmath/linalg/_internal/algo_cap_ifc.py +86 -0
  143. nvmath/linalg/_internal/algo_config_ifc.py +87 -0
  144. nvmath/linalg/_internal/enum_to_tuples.py +64 -0
  145. nvmath/linalg/_internal/epilog_protocol.py +738 -0
  146. nvmath/linalg/_internal/matmul_desc_ifc.py +72 -0
  147. nvmath/linalg/_internal/matmul_pref_ifc.py +65 -0
  148. nvmath/linalg/_internal/matrix_layout_ifc.py +59 -0
  149. nvmath/linalg/_internal/typemaps.py +135 -0
  150. nvmath/linalg/_internal/utils.py +96 -0
  151. nvmath/linalg/advanced/__init__.py +8 -0
  152. nvmath/linalg/advanced/_algorithmmod.py +142 -0
  153. nvmath/linalg/advanced/_configuration.py +320 -0
  154. nvmath/linalg/advanced/helpers/__init__.py +5 -0
  155. nvmath/linalg/advanced/helpers/matmul.py +173 -0
  156. nvmath/linalg/advanced/matmulmod.py +2855 -0
  157. nvmath/memory.py +266 -0
  158. nvmath/sparse/__init__.py +18 -0
  159. nvmath/sparse/_internal/__init__.py +21 -0
  160. nvmath/sparse/_internal/common_utils.py +81 -0
  161. nvmath/sparse/_internal/cudss_config_ifc.py +584 -0
  162. nvmath/sparse/_internal/cudss_data_ifc.py +291 -0
  163. nvmath/sparse/_internal/cudss_utils.py +398 -0
  164. nvmath/sparse/_internal/sparse_csr_ifc.py +154 -0
  165. nvmath/sparse/_internal/sparse_format_helpers.py +88 -0
  166. nvmath/sparse/_internal/sparse_tensor_ifc.py +80 -0
  167. nvmath/sparse/advanced/__init__.py +7 -0
  168. nvmath/sparse/advanced/_configuration.py +150 -0
  169. nvmath/sparse/advanced/direct_solver.py +1705 -0
  170. nvmath_python-0.5.0.dist-info/METADATA +122 -0
  171. nvmath_python-0.5.0.dist-info/RECORD +174 -0
  172. nvmath_python-0.5.0.dist-info/WHEEL +5 -0
  173. nvmath_python-0.5.0.dist-info/licenses/LICENSE +177 -0
  174. nvmath_python-0.5.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,99 @@
1
+ # Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED.
2
+ #
3
+ # SPDX-License-Identifier: Apache-2.0
4
+ #
5
+ # This code was automatically generated across versions from 11.0.3 to 12.8.0. Do not modify it directly.
6
+
7
+ from libc.stdint cimport intptr_t
8
+
9
+ from .cycublasLt cimport *
10
+
11
+
12
+ ###############################################################################
13
+ # Types
14
+ ###############################################################################
15
+
16
+ ctypedef cublasLtHandle_t Handle
17
+ ctypedef cublasLtMatrixLayout_t MatrixLayout
18
+ ctypedef cublasLtMatmulDesc_t MatmulDesc
19
+ ctypedef cublasLtMatrixTransformDesc_t MatrixTransformDesc
20
+ ctypedef cublasLtMatmulPreference_t MatmulPreference
21
+ ctypedef cublasLtLoggerCallback_t LoggerCallback
22
+
23
+ ctypedef cudaStream_t Stream
24
+ ctypedef cudaDataType DataType
25
+ ctypedef libraryPropertyType_t LibraryPropertyType
26
+
27
+
28
+ ###############################################################################
29
+ # Enum
30
+ ###############################################################################
31
+
32
+ ctypedef cublasLtMatmulTile_t _MatmulTile
33
+ ctypedef cublasLtMatmulStages_t _MatmulStages
34
+ ctypedef cublasLtPointerMode_t _PointerMode
35
+ ctypedef cublasLtPointerModeMask_t _PointerModeMask
36
+ ctypedef cublasLtOrder_t _Order
37
+ ctypedef cublasLtMatrixLayoutAttribute_t _MatrixLayoutAttribute
38
+ ctypedef cublasLtMatmulDescAttributes_t _MatmulDescAttribute
39
+ ctypedef cublasLtMatrixTransformDescAttributes_t _MatrixTransformDescAttribute
40
+ ctypedef cublasLtReductionScheme_t _ReductionScheme
41
+ ctypedef cublasLtEpilogue_t _Epilogue
42
+ ctypedef cublasLtMatmulSearch_t _MatmulSearch
43
+ ctypedef cublasLtMatmulPreferenceAttributes_t _MatmulPreferenceAttribute
44
+ ctypedef cublasLtMatmulAlgoCapAttributes_t _MatmulAlgoCapAttribute
45
+ ctypedef cublasLtMatmulAlgoConfigAttributes_t _MatmulAlgoConfigAttribute
46
+ ctypedef cublasLtClusterShape_t _ClusterShape
47
+ ctypedef cublasLtMatmulInnerShape_t _MatmulInnerShape
48
+ ctypedef cublasLtMatmulMatrixScale_t _MatmulMatrixScale
49
+
50
+
51
+ ###############################################################################
52
+ # Functions
53
+ ###############################################################################
54
+
55
+ cpdef intptr_t create() except? 0
56
+ cpdef destroy(intptr_t light_handle)
57
+ cpdef size_t get_version() except? 0
58
+ cpdef size_t get_cudart_version() except? 0
59
+ cpdef int get_property(int type) except? -1
60
+ cpdef matmul(intptr_t light_handle, intptr_t compute_desc, intptr_t alpha, intptr_t a, intptr_t adesc, intptr_t b, intptr_t bdesc, intptr_t beta, intptr_t c, intptr_t cdesc, intptr_t d, intptr_t ddesc, intptr_t algo, intptr_t workspace, size_t workspace_size_in_bytes, intptr_t stream)
61
+ cpdef matrix_transform(intptr_t light_handle, intptr_t transform_desc, intptr_t alpha, intptr_t a, intptr_t adesc, intptr_t beta, intptr_t b, intptr_t bdesc, intptr_t c, intptr_t cdesc, intptr_t stream)
62
+ cpdef intptr_t matrix_layout_create(int type, uint64_t rows, uint64_t cols, int64_t ld) except? 0
63
+ cpdef matrix_layout_destroy(intptr_t mat_layout)
64
+ cpdef get_matrix_layout_attribute_dtype(int attr)
65
+ cpdef matrix_layout_set_attribute(intptr_t mat_layout, int attr, intptr_t buf, size_t size_in_bytes)
66
+ cpdef matrix_layout_get_attribute(intptr_t mat_layout, int attr, intptr_t buf, size_t size_in_bytes, intptr_t size_written)
67
+ cpdef intptr_t matmul_desc_create(int compute_type, int scale_type) except? 0
68
+ cpdef matmul_desc_destroy(intptr_t matmul_desc)
69
+ cpdef get_matmul_desc_attribute_dtype(int attr)
70
+ cpdef matmul_desc_set_attribute(intptr_t matmul_desc, int attr, intptr_t buf, size_t size_in_bytes)
71
+ cpdef matmul_desc_get_attribute(intptr_t matmul_desc, int attr, intptr_t buf, size_t size_in_bytes, intptr_t size_written)
72
+ cpdef intptr_t matrix_transform_desc_create(int scale_type) except? 0
73
+ cpdef matrix_transform_desc_destroy(intptr_t transform_desc)
74
+ cpdef get_matrix_transform_desc_attribute_dtype(int attr)
75
+ cpdef matrix_transform_desc_set_attribute(intptr_t transform_desc, int attr, intptr_t buf, size_t size_in_bytes)
76
+ cpdef matrix_transform_desc_get_attribute(intptr_t transform_desc, int attr, intptr_t buf, size_t size_in_bytes, intptr_t size_written)
77
+ cpdef intptr_t matmul_preference_create() except? 0
78
+ cpdef matmul_preference_destroy(intptr_t pref)
79
+ cpdef get_matmul_preference_attribute_dtype(int attr)
80
+ cpdef matmul_preference_set_attribute(intptr_t pref, int attr, intptr_t buf, size_t size_in_bytes)
81
+ cpdef matmul_preference_get_attribute(intptr_t pref, int attr, intptr_t buf, size_t size_in_bytes, intptr_t size_written)
82
+ cpdef matmul_algo_get_heuristic(intptr_t light_handle, intptr_t operation_desc, intptr_t adesc, intptr_t bdesc, intptr_t cdesc, intptr_t ddesc, intptr_t preference, int requested_algo_count, intptr_t heuristic_results_array, intptr_t return_algo_count)
83
+ cpdef matmul_algo_init(intptr_t light_handle, int compute_type, int scale_type, int atype, int btype, int ctype, int dtype, int algo_id, intptr_t algo)
84
+ cpdef matmul_algo_check(intptr_t light_handle, intptr_t operation_desc, intptr_t adesc, intptr_t bdesc, intptr_t cdesc, intptr_t ddesc, intptr_t algo, intptr_t result)
85
+ cpdef get_matmul_algo_cap_attribute_dtype(int attr)
86
+ cpdef matmul_algo_cap_get_attribute(intptr_t algo, int attr, intptr_t buf, size_t size_in_bytes, intptr_t size_written)
87
+ cpdef get_matmul_algo_config_attribute_dtype(int attr)
88
+ cpdef matmul_algo_config_set_attribute(intptr_t algo, int attr, intptr_t buf, size_t size_in_bytes)
89
+ cpdef matmul_algo_config_get_attribute(intptr_t algo, int attr, intptr_t buf, size_t size_in_bytes, intptr_t size_written)
90
+ cpdef logger_open_file(log_file)
91
+ cpdef logger_set_level(int level)
92
+ cpdef logger_set_mask(int mask)
93
+ cpdef logger_force_disable()
94
+ cpdef str get_status_name(int status)
95
+ cpdef str get_status_string(int status)
96
+ cpdef size_t heuristics_cache_get_capacity() except? 0
97
+ cpdef heuristics_cache_set_capacity(size_t capacity)
98
+ cpdef disable_cpu_instructions_set_mask(unsigned mask)
99
+ cpdef tuple matmul_algo_get_ids(intptr_t light_handle, cublasComputeType_t compute_type, size_t scale_type, size_t atype, size_t btype, size_t ctype, size_t dtype, int requested_algo_count)
@@ -0,0 +1,83 @@
1
+ # Copyright (c) 2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED.
2
+ #
3
+ # SPDX-License-Identifier: Apache-2.0
4
+ #
5
+ # This code was automatically generated with version 0.5.0. Do not modify it directly.
6
+
7
+ from libc.stdint cimport intptr_t
8
+
9
+ from .cycudss cimport *
10
+
11
+
12
+ ###############################################################################
13
+ # Types
14
+ ###############################################################################
15
+
16
+ ctypedef cudssHandle_t Handle
17
+ ctypedef cudssMatrix_t Matrix
18
+ ctypedef cudssData_t Data
19
+ ctypedef cudssConfig_t Config
20
+ ctypedef cudssDistributedInterface_t DistributedInterface
21
+ ctypedef cudssThreadingInterface_t ThreadingInterface
22
+ ctypedef cudssDeviceMemHandler_t DeviceMemHandler
23
+
24
+ ctypedef cudaStream_t Stream
25
+ ctypedef cudaDataType DataType
26
+ ctypedef libraryPropertyType_t LibraryPropertyType
27
+
28
+
29
+ ###############################################################################
30
+ # Enum
31
+ ###############################################################################
32
+
33
+ ctypedef cudssOpType_t _OpType
34
+ ctypedef cudssConfigParam_t _ConfigParam
35
+ ctypedef cudssDataParam_t _DataParam
36
+ ctypedef cudssPhase_t _Phase
37
+ ctypedef cudssStatus_t _Status
38
+ ctypedef cudssMatrixType_t _MatrixType
39
+ ctypedef cudssMatrixViewType_t _MatrixViewType
40
+ ctypedef cudssIndexBase_t _IndexBase
41
+ ctypedef cudssLayout_t _Layout
42
+ ctypedef cudssAlgType_t _AlgType
43
+ ctypedef cudssPivotType_t _PivotType
44
+ ctypedef cudssMatrixFormat_t _MatrixFormat
45
+
46
+
47
+ ###############################################################################
48
+ # Functions
49
+ ###############################################################################
50
+
51
+ cpdef get_config_param_dtype(int attr)
52
+ cpdef config_set(intptr_t config, int param, intptr_t value, size_t size_in_bytes)
53
+ cpdef config_get(intptr_t config, int param, intptr_t value, size_t size_in_bytes, intptr_t size_written)
54
+ cpdef get_data_param_dtype(int attr)
55
+ cpdef data_set(intptr_t handle, intptr_t data, int param, intptr_t value, size_t size_in_bytes)
56
+ cpdef data_get(intptr_t handle, intptr_t data, int param, intptr_t value, size_t size_in_bytes, intptr_t size_written)
57
+ cpdef execute(intptr_t handle, int phase, intptr_t solver_config, intptr_t solver_data, intptr_t input_matrix, intptr_t solution, intptr_t rhs)
58
+ cpdef set_stream(intptr_t handle, intptr_t stream)
59
+ cpdef set_comm_layer(intptr_t handle, intptr_t comm_lib_file_name)
60
+ cpdef set_threading_layer(intptr_t handle, thr_lib_file_name)
61
+ cpdef intptr_t config_create() except? 0
62
+ cpdef config_destroy(intptr_t solver_config)
63
+ cpdef intptr_t data_create(intptr_t handle) except? 0
64
+ cpdef data_destroy(intptr_t handle, intptr_t solver_data)
65
+ cpdef intptr_t create() except? 0
66
+ cpdef destroy(intptr_t handle)
67
+ cpdef int get_property(int property_type) except? -1
68
+ cpdef intptr_t matrix_create_dn(int64_t nrows, int64_t ncols, int64_t ld, intptr_t values, int value_type, int layout) except? 0
69
+ cpdef intptr_t matrix_create_csr(int64_t nrows, int64_t ncols, int64_t nnz, intptr_t row_start, intptr_t row_end, intptr_t col_indices, intptr_t values, int index_type, int value_type, int mtype, int mview, int index_base) except? 0
70
+ cpdef intptr_t matrix_create_batch_dn(int64_t batch_count, intptr_t nrows, intptr_t ncols, intptr_t ld, intptr_t values, int index_type, int value_type, int layout) except? 0
71
+ cpdef intptr_t matrix_create_batch_csr(int64_t batch_count, intptr_t nrows, intptr_t ncols, intptr_t nnz, intptr_t row_start, intptr_t row_end, intptr_t col_indices, intptr_t values, int index_type, int value_type, int mtype, int mview, int index_base) except? 0
72
+ cpdef matrix_destroy(intptr_t matrix)
73
+ cpdef tuple matrix_get_dn(intptr_t matrix)
74
+ cpdef tuple matrix_get_csr(intptr_t matrix)
75
+ cpdef matrix_set_values(intptr_t matrix, intptr_t values)
76
+ cpdef matrix_set_csr_pointers(intptr_t matrix, intptr_t row_offsets, intptr_t row_end, intptr_t col_indices, intptr_t values)
77
+ cpdef matrix_get_batch_dn(intptr_t matrix, intptr_t batch_count, intptr_t nrows, intptr_t ncols, intptr_t ld, intptr_t values, intptr_t index_type, intptr_t value_type, intptr_t layout)
78
+ cpdef matrix_get_batch_csr(intptr_t matrix, intptr_t batch_count, intptr_t nrows, intptr_t ncols, intptr_t nnz, intptr_t row_start, intptr_t row_end, intptr_t col_indices, intptr_t values, intptr_t index_type, intptr_t value_type, intptr_t mtype, intptr_t mview, intptr_t index_base)
79
+ cpdef matrix_set_batch_values(intptr_t matrix, intptr_t values)
80
+ cpdef matrix_set_batch_csr_pointers(intptr_t matrix, intptr_t row_offsets, intptr_t row_end, intptr_t col_indices, intptr_t values)
81
+ cpdef int matrix_get_format(intptr_t matrix) except? -1
82
+ cpdef get_device_mem_handler(intptr_t handle, intptr_t handler)
83
+ cpdef set_device_mem_handler(intptr_t handle, intptr_t handler)
@@ -0,0 +1,249 @@
1
+ # Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED.
2
+ #
3
+ # SPDX-License-Identifier: Apache-2.0
4
+
5
+ import _cython_3_0_12
6
+ import enum
7
+ from typing import Any, Callable, ClassVar
8
+
9
+ __pyx_capi__: dict
10
+ __test__: dict
11
+ check_status: _cython_3_0_12.cython_function_or_method
12
+ config_create: _cython_3_0_12.cython_function_or_method
13
+ config_destroy: _cython_3_0_12.cython_function_or_method
14
+ config_get: _cython_3_0_12.cython_function_or_method
15
+ config_set: _cython_3_0_12.cython_function_or_method
16
+ create: _cython_3_0_12.cython_function_or_method
17
+ data_create: _cython_3_0_12.cython_function_or_method
18
+ data_destroy: _cython_3_0_12.cython_function_or_method
19
+ data_get: _cython_3_0_12.cython_function_or_method
20
+ data_set: _cython_3_0_12.cython_function_or_method
21
+ destroy: _cython_3_0_12.cython_function_or_method
22
+ execute: _cython_3_0_12.cython_function_or_method
23
+ get_config_param_dtype: _cython_3_0_12.cython_function_or_method
24
+ get_data_param_dtype: _cython_3_0_12.cython_function_or_method
25
+ get_device_mem_handler: _cython_3_0_12.cython_function_or_method
26
+ get_property: _cython_3_0_12.cython_function_or_method
27
+ matrix_create_batch_csr: _cython_3_0_12.cython_function_or_method
28
+ matrix_create_batch_dn: _cython_3_0_12.cython_function_or_method
29
+ matrix_create_csr: _cython_3_0_12.cython_function_or_method
30
+ matrix_create_dn: _cython_3_0_12.cython_function_or_method
31
+ matrix_destroy: _cython_3_0_12.cython_function_or_method
32
+ matrix_get_batch_csr: _cython_3_0_12.cython_function_or_method
33
+ matrix_get_batch_dn: _cython_3_0_12.cython_function_or_method
34
+ matrix_get_csr: _cython_3_0_12.cython_function_or_method
35
+ matrix_get_dn: _cython_3_0_12.cython_function_or_method
36
+ matrix_get_format: _cython_3_0_12.cython_function_or_method
37
+ matrix_set_batch_csr_pointers: _cython_3_0_12.cython_function_or_method
38
+ matrix_set_batch_values: _cython_3_0_12.cython_function_or_method
39
+ matrix_set_csr_pointers: _cython_3_0_12.cython_function_or_method
40
+ matrix_set_values: _cython_3_0_12.cython_function_or_method
41
+ set_comm_layer: _cython_3_0_12.cython_function_or_method
42
+ set_device_mem_handler: _cython_3_0_12.cython_function_or_method
43
+ set_stream: _cython_3_0_12.cython_function_or_method
44
+ set_threading_layer: _cython_3_0_12.cython_function_or_method
45
+
46
+ class AlgType(enum.IntEnum):
47
+ __new__: ClassVar[Callable] = ...
48
+ ALG_1: ClassVar[AlgType] = ...
49
+ ALG_2: ClassVar[AlgType] = ...
50
+ ALG_3: ClassVar[AlgType] = ...
51
+ ALG_DEFAULT: ClassVar[AlgType] = ...
52
+ _generate_next_value_: ClassVar[Callable] = ...
53
+ _member_map_: ClassVar[dict] = ...
54
+ _member_names_: ClassVar[list] = ...
55
+ _member_type_: ClassVar[type[int]] = ...
56
+ _unhashable_values_: ClassVar[list] = ...
57
+ _use_args_: ClassVar[bool] = ...
58
+ _value2member_map_: ClassVar[dict] = ...
59
+ def __format__(self, *args, **kwargs) -> str: ...
60
+
61
+ class ConfigParam(enum.IntEnum):
62
+ __new__: ClassVar[Callable] = ...
63
+ FACTORIZATION_ALG: ClassVar[ConfigParam] = ...
64
+ HOST_NTHREADS: ClassVar[ConfigParam] = ...
65
+ HYBRID_DEVICE_MEMORY_LIMIT: ClassVar[ConfigParam] = ...
66
+ HYBRID_EXECUTE_MODE: ClassVar[ConfigParam] = ...
67
+ HYBRID_MODE: ClassVar[ConfigParam] = ...
68
+ IR_N_STEPS: ClassVar[ConfigParam] = ...
69
+ IR_TOL: ClassVar[ConfigParam] = ...
70
+ MATCHING_TYPE: ClassVar[ConfigParam] = ...
71
+ MAX_LU_NNZ: ClassVar[ConfigParam] = ...
72
+ PIVOT_EPSILON: ClassVar[ConfigParam] = ...
73
+ PIVOT_EPSILON_ALG: ClassVar[ConfigParam] = ...
74
+ PIVOT_THRESHOLD: ClassVar[ConfigParam] = ...
75
+ PIVOT_TYPE: ClassVar[ConfigParam] = ...
76
+ REORDERING_ALG: ClassVar[ConfigParam] = ...
77
+ SOLVE_ALG: ClassVar[ConfigParam] = ...
78
+ SOLVE_MODE: ClassVar[ConfigParam] = ...
79
+ USE_CUDA_REGISTER_MEMORY: ClassVar[ConfigParam] = ...
80
+ _generate_next_value_: ClassVar[Callable] = ...
81
+ _member_map_: ClassVar[dict] = ...
82
+ _member_names_: ClassVar[list] = ...
83
+ _member_type_: ClassVar[type[int]] = ...
84
+ _unhashable_values_: ClassVar[list] = ...
85
+ _use_args_: ClassVar[bool] = ...
86
+ _value2member_map_: ClassVar[dict] = ...
87
+ def __format__(self, *args, **kwargs) -> str: ...
88
+
89
+ class DataParam(enum.IntEnum):
90
+ __new__: ClassVar[Callable] = ...
91
+ COMM: ClassVar[DataParam] = ...
92
+ DIAG: ClassVar[DataParam] = ...
93
+ HYBRID_DEVICE_MEMORY_MIN: ClassVar[DataParam] = ...
94
+ INERTIA: ClassVar[DataParam] = ...
95
+ INFO: ClassVar[DataParam] = ...
96
+ LU_NNZ: ClassVar[DataParam] = ...
97
+ MEMORY_ESTIMATES: ClassVar[DataParam] = ...
98
+ NPIVOTS: ClassVar[DataParam] = ...
99
+ PERM_COL: ClassVar[DataParam] = ...
100
+ PERM_REORDER_COL: ClassVar[DataParam] = ...
101
+ PERM_REORDER_ROW: ClassVar[DataParam] = ...
102
+ PERM_ROW: ClassVar[DataParam] = ...
103
+ USER_PERM: ClassVar[DataParam] = ...
104
+ _generate_next_value_: ClassVar[Callable] = ...
105
+ _member_map_: ClassVar[dict] = ...
106
+ _member_names_: ClassVar[list] = ...
107
+ _member_type_: ClassVar[type[int]] = ...
108
+ _unhashable_values_: ClassVar[list] = ...
109
+ _use_args_: ClassVar[bool] = ...
110
+ _value2member_map_: ClassVar[dict] = ...
111
+ def __format__(self, *args, **kwargs) -> str: ...
112
+
113
+ class IndexBase(enum.IntEnum):
114
+ __new__: ClassVar[Callable] = ...
115
+ ONE: ClassVar[IndexBase] = ...
116
+ ZERO: ClassVar[IndexBase] = ...
117
+ _generate_next_value_: ClassVar[Callable] = ...
118
+ _member_map_: ClassVar[dict] = ...
119
+ _member_names_: ClassVar[list] = ...
120
+ _member_type_: ClassVar[type[int]] = ...
121
+ _unhashable_values_: ClassVar[list] = ...
122
+ _use_args_: ClassVar[bool] = ...
123
+ _value2member_map_: ClassVar[dict] = ...
124
+ def __format__(self, *args, **kwargs) -> str: ...
125
+
126
+ class Layout(enum.IntEnum):
127
+ __new__: ClassVar[Callable] = ...
128
+ COL_MAJOR: ClassVar[Layout] = ...
129
+ ROW_MAJOR: ClassVar[Layout] = ...
130
+ _generate_next_value_: ClassVar[Callable] = ...
131
+ _member_map_: ClassVar[dict] = ...
132
+ _member_names_: ClassVar[list] = ...
133
+ _member_type_: ClassVar[type[int]] = ...
134
+ _unhashable_values_: ClassVar[list] = ...
135
+ _use_args_: ClassVar[bool] = ...
136
+ _value2member_map_: ClassVar[dict] = ...
137
+ def __format__(self, *args, **kwargs) -> str: ...
138
+
139
+ class MatrixFormat(enum.IntEnum):
140
+ __new__: ClassVar[Callable] = ...
141
+ BATCH: ClassVar[MatrixFormat] = ...
142
+ CSR: ClassVar[MatrixFormat] = ...
143
+ DENSE: ClassVar[MatrixFormat] = ...
144
+ _generate_next_value_: ClassVar[Callable] = ...
145
+ _member_map_: ClassVar[dict] = ...
146
+ _member_names_: ClassVar[list] = ...
147
+ _member_type_: ClassVar[type[int]] = ...
148
+ _unhashable_values_: ClassVar[list] = ...
149
+ _use_args_: ClassVar[bool] = ...
150
+ _value2member_map_: ClassVar[dict] = ...
151
+ def __format__(self, *args, **kwargs) -> str: ...
152
+
153
+ class MatrixType(enum.IntEnum):
154
+ __new__: ClassVar[Callable] = ...
155
+ GENERAL: ClassVar[MatrixType] = ...
156
+ HERMITIAN: ClassVar[MatrixType] = ...
157
+ HPD: ClassVar[MatrixType] = ...
158
+ SPD: ClassVar[MatrixType] = ...
159
+ SYMMETRIC: ClassVar[MatrixType] = ...
160
+ _generate_next_value_: ClassVar[Callable] = ...
161
+ _member_map_: ClassVar[dict] = ...
162
+ _member_names_: ClassVar[list] = ...
163
+ _member_type_: ClassVar[type[int]] = ...
164
+ _unhashable_values_: ClassVar[list] = ...
165
+ _use_args_: ClassVar[bool] = ...
166
+ _value2member_map_: ClassVar[dict] = ...
167
+ def __format__(self, *args, **kwargs) -> str: ...
168
+
169
+ class MatrixViewType(enum.IntEnum):
170
+ __new__: ClassVar[Callable] = ...
171
+ FULL: ClassVar[MatrixViewType] = ...
172
+ LOWER: ClassVar[MatrixViewType] = ...
173
+ UPPER: ClassVar[MatrixViewType] = ...
174
+ _generate_next_value_: ClassVar[Callable] = ...
175
+ _member_map_: ClassVar[dict] = ...
176
+ _member_names_: ClassVar[list] = ...
177
+ _member_type_: ClassVar[type[int]] = ...
178
+ _unhashable_values_: ClassVar[list] = ...
179
+ _use_args_: ClassVar[bool] = ...
180
+ _value2member_map_: ClassVar[dict] = ...
181
+ def __format__(self, *args, **kwargs) -> str: ...
182
+
183
+ class OpType(enum.IntEnum):
184
+ __new__: ClassVar[Callable] = ...
185
+ MAX: ClassVar[OpType] = ...
186
+ MIN: ClassVar[OpType] = ...
187
+ SUM: ClassVar[OpType] = ...
188
+ _generate_next_value_: ClassVar[Callable] = ...
189
+ _member_map_: ClassVar[dict] = ...
190
+ _member_names_: ClassVar[list] = ...
191
+ _member_type_: ClassVar[type[int]] = ...
192
+ _unhashable_values_: ClassVar[list] = ...
193
+ _use_args_: ClassVar[bool] = ...
194
+ _value2member_map_: ClassVar[dict] = ...
195
+ def __format__(self, *args, **kwargs) -> str: ...
196
+
197
+ class Phase(enum.IntEnum):
198
+ __new__: ClassVar[Callable] = ...
199
+ ANALYSIS: ClassVar[Phase] = ...
200
+ FACTORIZATION: ClassVar[Phase] = ...
201
+ REFACTORIZATION: ClassVar[Phase] = ...
202
+ SOLVE: ClassVar[Phase] = ...
203
+ SOLVE_BWD: ClassVar[Phase] = ...
204
+ SOLVE_DIAG: ClassVar[Phase] = ...
205
+ SOLVE_FWD: ClassVar[Phase] = ...
206
+ _generate_next_value_: ClassVar[Callable] = ...
207
+ _member_map_: ClassVar[dict] = ...
208
+ _member_names_: ClassVar[list] = ...
209
+ _member_type_: ClassVar[type[int]] = ...
210
+ _unhashable_values_: ClassVar[list] = ...
211
+ _use_args_: ClassVar[bool] = ...
212
+ _value2member_map_: ClassVar[dict] = ...
213
+ def __format__(self, *args, **kwargs) -> str: ...
214
+
215
+ class PivotType(enum.IntEnum):
216
+ __new__: ClassVar[Callable] = ...
217
+ PIVOT_COL: ClassVar[PivotType] = ...
218
+ PIVOT_NONE: ClassVar[PivotType] = ...
219
+ PIVOT_ROW: ClassVar[PivotType] = ...
220
+ _generate_next_value_: ClassVar[Callable] = ...
221
+ _member_map_: ClassVar[dict] = ...
222
+ _member_names_: ClassVar[list] = ...
223
+ _member_type_: ClassVar[type[int]] = ...
224
+ _unhashable_values_: ClassVar[list] = ...
225
+ _use_args_: ClassVar[bool] = ...
226
+ _value2member_map_: ClassVar[dict] = ...
227
+ def __format__(self, *args, **kwargs) -> str: ...
228
+
229
+ class Status(enum.IntEnum):
230
+ __new__: ClassVar[Callable] = ...
231
+ ALLOC_FAILED: ClassVar[Status] = ...
232
+ EXECUTION_FAILED: ClassVar[Status] = ...
233
+ INTERNAL_ERROR: ClassVar[Status] = ...
234
+ INVALID_VALUE: ClassVar[Status] = ...
235
+ NOT_INITIALIZED: ClassVar[Status] = ...
236
+ NOT_SUPPORTED: ClassVar[Status] = ...
237
+ SUCCESS: ClassVar[Status] = ...
238
+ _generate_next_value_: ClassVar[Callable] = ...
239
+ _member_map_: ClassVar[dict] = ...
240
+ _member_names_: ClassVar[list] = ...
241
+ _member_type_: ClassVar[type[int]] = ...
242
+ _unhashable_values_: ClassVar[list] = ...
243
+ _use_args_: ClassVar[bool] = ...
244
+ _value2member_map_: ClassVar[dict] = ...
245
+ def __format__(self, *args, **kwargs) -> str: ...
246
+
247
+ class cuDSSError(Exception):
248
+ def __init__(self, status) -> Any: ...
249
+ def __reduce__(self) -> Any: ...
@@ -0,0 +1,114 @@
1
+ # Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED.
2
+ #
3
+ # SPDX-License-Identifier: Apache-2.0
4
+ #
5
+ # This code was automatically generated across versions from 11.0.3 to 12.8.0. Do not modify it directly.
6
+
7
+ from libc.stdint cimport intptr_t
8
+
9
+ from .cycufft cimport *
10
+
11
+
12
+ ###############################################################################
13
+ # Types
14
+ ###############################################################################
15
+
16
+ ctypedef cufftXt1dFactors Xt1dFactors
17
+ ctypedef cufftCallbackLoadC CallbackLoadC
18
+ ctypedef cufftCallbackLoadZ CallbackLoadZ
19
+ ctypedef cufftCallbackLoadR CallbackLoadR
20
+ ctypedef cufftCallbackLoadD CallbackLoadD
21
+ ctypedef cufftJITCallbackLoadC JITCallbackLoadC
22
+ ctypedef cufftJITCallbackLoadZ JITCallbackLoadZ
23
+ ctypedef cufftJITCallbackLoadR JITCallbackLoadR
24
+ ctypedef cufftJITCallbackLoadD JITCallbackLoadD
25
+ ctypedef cufftCallbackStoreR CallbackStoreR
26
+ ctypedef cufftJITCallbackStoreR JITCallbackStoreR
27
+ ctypedef cufftCallbackStoreD CallbackStoreD
28
+ ctypedef cufftJITCallbackStoreD JITCallbackStoreD
29
+ ctypedef cufftCallbackStoreC CallbackStoreC
30
+ ctypedef cufftJITCallbackStoreC JITCallbackStoreC
31
+ ctypedef cufftCallbackStoreZ CallbackStoreZ
32
+ ctypedef cufftJITCallbackStoreZ JITCallbackStoreZ
33
+
34
+ ctypedef cudaStream_t Stream
35
+ ctypedef cudaDataType DataType
36
+ ctypedef libraryPropertyType_t LibraryPropertyType
37
+
38
+
39
+ ###############################################################################
40
+ # Enum
41
+ ###############################################################################
42
+
43
+ ctypedef libFormat_t _LibFormat
44
+ ctypedef cufftResult _Result
45
+ ctypedef cufftType _Type
46
+ ctypedef cufftCompatibility _Compatibility
47
+ ctypedef cufftXtSubFormat _XtSubFormat
48
+ ctypedef cufftXtCopyType _XtCopyType
49
+ ctypedef cufftXtQueryType _XtQueryType
50
+ ctypedef cufftXtWorkAreaPolicy _XtWorkAreaPolicy
51
+ ctypedef cufftXtCallbackType _XtCallbackType
52
+ ctypedef cufftProperty _Property
53
+
54
+
55
+ ###############################################################################
56
+ # Functions
57
+ ###############################################################################
58
+
59
+ cpdef plan1d(intptr_t plan, int nx, int type, int batch)
60
+ cpdef plan2d(intptr_t plan, int nx, int ny, int type)
61
+ cpdef plan3d(intptr_t plan, int nx, int ny, int nz, int type)
62
+ cpdef plan_many(intptr_t plan, int rank, n, inembed, int istride, int idist, onembed, int ostride, int odist, int type, int batch)
63
+ cpdef size_t make_plan1d(int plan, int nx, int type, int batch) except? -1
64
+ cpdef size_t make_plan2d(int plan, int nx, int ny, int type) except? -1
65
+ cpdef size_t make_plan3d(int plan, int nx, int ny, int nz, int type) except? -1
66
+ cpdef size_t make_plan_many(int plan, int rank, n, inembed, int istride, int idist, onembed, int ostride, int odist, int type, int batch) except? -1
67
+ cpdef size_t make_plan_many64(int plan, int rank, n, inembed, long long int istride, long long int idist, onembed, long long int ostride, long long int odist, int type, long long int batch) except? -1
68
+ cpdef size_t get_size_many64(int plan, int rank, n, inembed, long long int istride, long long int idist, onembed, long long int ostride, long long int odist, int type, long long int batch) except? -1
69
+ cpdef size_t estimate1d(int nx, int type, int batch) except? -1
70
+ cpdef size_t estimate2d(int nx, int ny, int type) except? -1
71
+ cpdef size_t estimate3d(int nx, int ny, int nz, int type) except? -1
72
+ cpdef size_t estimate_many(int rank, n, inembed, int istride, int idist, onembed, int ostride, int odist, int type, int batch) except? -1
73
+ cpdef int create() except? -1
74
+ cpdef size_t get_size1d(int handle, int nx, int type, int batch) except? -1
75
+ cpdef size_t get_size2d(int handle, int nx, int ny, int type) except? -1
76
+ cpdef size_t get_size3d(int handle, int nx, int ny, int nz, int type) except? -1
77
+ cpdef size_t get_size_many(int handle, int rank, intptr_t n, intptr_t inembed, int istride, int idist, intptr_t onembed, int ostride, int odist, int type, int batch) except? -1
78
+ cpdef size_t get_size(int handle) except? -1
79
+ cpdef set_work_area(int plan, intptr_t work_area)
80
+ cpdef set_auto_allocation(int plan, int auto_allocate)
81
+ cpdef exec_c2c(int plan, intptr_t idata, intptr_t odata, int direction)
82
+ cpdef exec_r2c(int plan, intptr_t idata, intptr_t odata)
83
+ cpdef exec_c2r(int plan, intptr_t idata, intptr_t odata)
84
+ cpdef exec_z2z(int plan, intptr_t idata, intptr_t odata, int direction)
85
+ cpdef exec_d2z(int plan, intptr_t idata, intptr_t odata)
86
+ cpdef exec_z2d(int plan, intptr_t idata, intptr_t odata)
87
+ cpdef set_stream(int plan, intptr_t stream)
88
+ cpdef destroy(int plan)
89
+ cpdef int get_version() except? -1
90
+ cpdef int get_property(int type) except? -1
91
+ cpdef xt_set_gpus(int handle, int n_gpus, which_gpus)
92
+ cpdef intptr_t xt_malloc(int plan, int format) except? -1
93
+ cpdef xt_memcpy(int plan, intptr_t dst_pointer, intptr_t src_pointer, int type)
94
+ cpdef xt_free(intptr_t descriptor)
95
+ cpdef xt_set_work_area(int plan, intptr_t work_area)
96
+ cpdef xt_exec_descriptor_c2c(int plan, intptr_t input, intptr_t output, int direction)
97
+ cpdef xt_exec_descriptor_r2c(int plan, intptr_t input, intptr_t output)
98
+ cpdef xt_exec_descriptor_c2r(int plan, intptr_t input, intptr_t output)
99
+ cpdef xt_exec_descriptor_z2z(int plan, intptr_t input, intptr_t output, int direction)
100
+ cpdef xt_exec_descriptor_d2z(int plan, intptr_t input, intptr_t output)
101
+ cpdef xt_exec_descriptor_z2d(int plan, intptr_t input, intptr_t output)
102
+ cpdef xt_query_plan(int plan, intptr_t query_struct, int query_type)
103
+ cpdef xt_clear_callback(int plan, int cb_type)
104
+ cpdef xt_set_callback_shared_size(int plan, int cb_type, size_t shared_size)
105
+ cpdef size_t xt_make_plan_many(int plan, int rank, n, inembed, long long int istride, long long int idist, int inputtype, onembed, long long int ostride, long long int odist, int outputtype, long long int batch, int executiontype) except? 0
106
+ cpdef size_t xt_get_size_many(int plan, int rank, n, inembed, long long int istride, long long int idist, int inputtype, onembed, long long int ostride, long long int odist, int outputtype, long long int batch, int executiontype) except? 0
107
+ cpdef xt_exec(int plan, intptr_t input, intptr_t output, int direction)
108
+ cpdef xt_exec_descriptor(int plan, intptr_t input, intptr_t output, int direction)
109
+ cpdef xt_set_work_area_policy(int plan, int policy, intptr_t work_size)
110
+ cpdef xt_set_jit_callback(int plan, lto_callback_fatbin, size_t lto_callback_fatbin_size, int type, caller_info)
111
+ cpdef xt_set_subformat_default(int plan, int subformat_forward, int subformat_inverse)
112
+ cpdef set_plan_property_int64(int plan, int property, long long int input_value_int)
113
+ cpdef long long int get_plan_property_int64(int plan, int property) except? -1
114
+ cpdef reset_plan_property(int plan, int property)
@@ -0,0 +1,124 @@
1
+ # Copyright (c) 2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED.
2
+ #
3
+ # SPDX-License-Identifier: Apache-2.0
4
+ #
5
+ # This code was automatically generated across versions from 11.2.6 to 11.4.0. Do not modify it directly.
6
+
7
+ from libc.stdint cimport intptr_t
8
+
9
+ from .cycufftMp cimport *
10
+
11
+
12
+ ###############################################################################
13
+ # Types
14
+ ###############################################################################
15
+
16
+ ctypedef cufftReshapeHandle ReshapeHandle
17
+ ctypedef cufftXt1dFactors Xt1dFactors
18
+ ctypedef cufftCallbackLoadC CallbackLoadC
19
+ ctypedef cufftCallbackLoadZ CallbackLoadZ
20
+ ctypedef cufftCallbackLoadR CallbackLoadR
21
+ ctypedef cufftCallbackLoadD CallbackLoadD
22
+ ctypedef cufftJITCallbackLoadC JITCallbackLoadC
23
+ ctypedef cufftJITCallbackLoadZ JITCallbackLoadZ
24
+ ctypedef cufftJITCallbackLoadR JITCallbackLoadR
25
+ ctypedef cufftJITCallbackLoadD JITCallbackLoadD
26
+ ctypedef cufftCallbackStoreR CallbackStoreR
27
+ ctypedef cufftJITCallbackStoreR JITCallbackStoreR
28
+ ctypedef cufftCallbackStoreD CallbackStoreD
29
+ ctypedef cufftJITCallbackStoreD JITCallbackStoreD
30
+ ctypedef cufftCallbackStoreC CallbackStoreC
31
+ ctypedef cufftJITCallbackStoreC JITCallbackStoreC
32
+ ctypedef cufftCallbackStoreZ CallbackStoreZ
33
+ ctypedef cufftJITCallbackStoreZ JITCallbackStoreZ
34
+
35
+ ctypedef cudaStream_t Stream
36
+ ctypedef cudaDataType DataType
37
+ ctypedef libraryPropertyType_t LibraryPropertyType
38
+
39
+
40
+ ###############################################################################
41
+ # Enum
42
+ ###############################################################################
43
+
44
+ ctypedef libFormat_t _LibFormat
45
+ ctypedef cufftResult _Result
46
+ ctypedef cufftType _Type
47
+ ctypedef cufftCompatibility _Compatibility
48
+ ctypedef cufftProperty _Property
49
+ ctypedef cufftXtSubFormat _XtSubFormat
50
+ ctypedef cufftXtCopyType _XtCopyType
51
+ ctypedef cufftXtQueryType _XtQueryType
52
+ ctypedef cufftXtWorkAreaPolicy _XtWorkAreaPolicy
53
+ ctypedef cufftXtCallbackType _XtCallbackType
54
+ ctypedef cufftMpCommType _MpCommType
55
+
56
+
57
+ ###############################################################################
58
+ # Functions
59
+ ###############################################################################
60
+
61
+ cpdef plan1d(intptr_t plan, int nx, int type, int batch)
62
+ cpdef plan2d(intptr_t plan, int nx, int ny, int type)
63
+ cpdef plan3d(intptr_t plan, int nx, int ny, int nz, int type)
64
+ cpdef plan_many(intptr_t plan, int rank, n, inembed, int istride, int idist, onembed, int ostride, int odist, int type, int batch)
65
+ cpdef size_t make_plan1d(int plan, int nx, int type, int batch) except? -1
66
+ cpdef size_t make_plan2d(int plan, int nx, int ny, int type) except? -1
67
+ cpdef size_t make_plan3d(int plan, int nx, int ny, int nz, int type) except? -1
68
+ cpdef size_t make_plan_many(int plan, int rank, n, inembed, int istride, int idist, onembed, int ostride, int odist, int type, int batch) except? -1
69
+ cpdef size_t make_plan_many64(int plan, int rank, n, inembed, long long int istride, long long int idist, onembed, long long int ostride, long long int odist, int type, long long int batch) except? -1
70
+ cpdef size_t get_size_many64(int plan, int rank, n, inembed, long long int istride, long long int idist, onembed, long long int ostride, long long int odist, int type, long long int batch) except? -1
71
+ cpdef size_t estimate1d(int nx, int type, int batch) except? -1
72
+ cpdef size_t estimate2d(int nx, int ny, int type) except? -1
73
+ cpdef size_t estimate3d(int nx, int ny, int nz, int type) except? -1
74
+ cpdef size_t estimate_many(int rank, n, inembed, int istride, int idist, onembed, int ostride, int odist, int type, int batch) except? -1
75
+ cpdef int create() except? -1
76
+ cpdef size_t get_size1d(int handle, int nx, int type, int batch) except? -1
77
+ cpdef size_t get_size2d(int handle, int nx, int ny, int type) except? -1
78
+ cpdef size_t get_size3d(int handle, int nx, int ny, int nz, int type) except? -1
79
+ cpdef size_t get_size_many(int handle, int rank, intptr_t n, intptr_t inembed, int istride, int idist, intptr_t onembed, int ostride, int odist, int type, int batch) except? -1
80
+ cpdef size_t get_size(int handle) except? -1
81
+ cpdef set_work_area(int plan, intptr_t work_area)
82
+ cpdef set_auto_allocation(int plan, int auto_allocate)
83
+ cpdef exec_c2c(int plan, intptr_t idata, intptr_t odata, int direction)
84
+ cpdef exec_r2c(int plan, intptr_t idata, intptr_t odata)
85
+ cpdef exec_c2r(int plan, intptr_t idata, intptr_t odata)
86
+ cpdef exec_z2z(int plan, intptr_t idata, intptr_t odata, int direction)
87
+ cpdef exec_d2z(int plan, intptr_t idata, intptr_t odata)
88
+ cpdef exec_z2d(int plan, intptr_t idata, intptr_t odata)
89
+ cpdef set_stream(int plan, intptr_t stream)
90
+ cpdef destroy(int plan)
91
+ cpdef int get_version() except? -1
92
+ cpdef int get_property(int type) except? -1
93
+ cpdef set_plan_property_int64(int plan, int property, long long int input_value_int)
94
+ cpdef long long int get_plan_property_int64(int plan, int property) except? -1
95
+ cpdef reset_plan_property(int plan, int property)
96
+ cpdef xt_set_gpus(int handle, int n_gpus, which_gpus)
97
+ cpdef intptr_t xt_malloc(int plan, int format) except? -1
98
+ cpdef xt_memcpy(int plan, intptr_t dst_pointer, intptr_t src_pointer, int type)
99
+ cpdef xt_free(intptr_t descriptor)
100
+ cpdef xt_set_work_area(int plan, intptr_t work_area)
101
+ cpdef xt_exec_descriptor_c2c(int plan, intptr_t input, intptr_t output, int direction)
102
+ cpdef xt_exec_descriptor_r2c(int plan, intptr_t input, intptr_t output)
103
+ cpdef xt_exec_descriptor_c2r(int plan, intptr_t input, intptr_t output)
104
+ cpdef xt_exec_descriptor_z2z(int plan, intptr_t input, intptr_t output, int direction)
105
+ cpdef xt_exec_descriptor_d2z(int plan, intptr_t input, intptr_t output)
106
+ cpdef xt_exec_descriptor_z2d(int plan, intptr_t input, intptr_t output)
107
+ cpdef xt_query_plan(int plan, intptr_t query_struct, int query_type)
108
+ cpdef xt_clear_callback(int plan, int cb_type)
109
+ cpdef xt_set_callback_shared_size(int plan, int cb_type, size_t shared_size)
110
+ cpdef size_t xt_make_plan_many(int plan, int rank, n, inembed, long long int istride, long long int idist, int inputtype, onembed, long long int ostride, long long int odist, int outputtype, long long int batch, int executiontype) except? 0
111
+ cpdef size_t xt_get_size_many(int plan, int rank, n, inembed, long long int istride, long long int idist, int inputtype, onembed, long long int ostride, long long int odist, int outputtype, long long int batch, int executiontype) except? 0
112
+ cpdef xt_exec(int plan, intptr_t input, intptr_t output, int direction)
113
+ cpdef xt_exec_descriptor(int plan, intptr_t input, intptr_t output, int direction)
114
+ cpdef xt_set_work_area_policy(int plan, int policy, intptr_t work_size)
115
+ cpdef attach_comm(int plan, int comm_type, intptr_t comm_handle)
116
+ cpdef xt_set_distribution(int plan, int rank, lower_input, upper_input, lower_output, upper_output, strides_input, strides_output)
117
+ cpdef xt_set_subformat_default(int plan, int subformat_forward, int subformat_inverse)
118
+ cpdef intptr_t create_reshape() except? -1
119
+ cpdef attach_reshape_comm(intptr_t handle, int comm_type, intptr_t comm_handle)
120
+ cpdef size_t get_reshape_size(intptr_t handle) except? -1
121
+ cpdef make_reshape_11_2(intptr_t handle, size_t element_size, int rank, lower_input, upper_input, lower_output, upper_output, strides_input, strides_output)
122
+ cpdef exec_reshape_async(intptr_t handle, intptr_t data_out, intptr_t data_in, intptr_t workspace, intptr_t stream)
123
+ cpdef destroy_reshape(intptr_t handle)
124
+ cpdef make_reshape_11_4(intptr_t handle, size_t element_size, int rank, lower_input, upper_input, strides_input, lower_output, upper_output, strides_output, intptr_t comm_handle, int comm_type)