nvmath-python 0.9.0__cp314-cp314-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.
- nvmath/__init__.pxd +0 -0
- nvmath/__init__.py +45 -0
- nvmath/_internal/__init__.py +0 -0
- nvmath/_internal/attribute_ifc_factory.py +330 -0
- nvmath/_internal/layout.py +70 -0
- nvmath/_internal/templates.py +383 -0
- nvmath/_utils.py +150 -0
- nvmath/bindings/__init__.py +51 -0
- nvmath/bindings/_internal/__init__.pxd +0 -0
- nvmath/bindings/_internal/__init__.py +0 -0
- nvmath/bindings/_internal/cublas.cp314-win_amd64.pyd +0 -0
- nvmath/bindings/_internal/cublas.pxd +530 -0
- nvmath/bindings/_internal/cublasLt.cp314-win_amd64.pyd +0 -0
- nvmath/bindings/_internal/cublasLt.pxd +59 -0
- nvmath/bindings/_internal/cublasMp.pxd +52 -0
- nvmath/bindings/_internal/cudss.cp314-win_amd64.pyd +0 -0
- nvmath/bindings/_internal/cudss.pxd +47 -0
- nvmath/bindings/_internal/cufft.cp314-win_amd64.pyd +0 -0
- nvmath/bindings/_internal/cufft.pxd +70 -0
- nvmath/bindings/_internal/cufftMp.pxd +77 -0
- nvmath/bindings/_internal/curand.cp314-win_amd64.pyd +0 -0
- nvmath/bindings/_internal/curand.pxd +42 -0
- nvmath/bindings/_internal/cusolver.cp314-win_amd64.pyd +0 -0
- nvmath/bindings/_internal/cusolver.pxd +15 -0
- nvmath/bindings/_internal/cusolverDn.cp314-win_amd64.pyd +0 -0
- nvmath/bindings/_internal/cusolverDn.pxd +406 -0
- nvmath/bindings/_internal/cusparse.cp314-win_amd64.pyd +0 -0
- nvmath/bindings/_internal/cusparse.pxd +277 -0
- nvmath/bindings/_internal/cusparseLt.cp314-win_amd64.pyd +0 -0
- nvmath/bindings/_internal/cusparseLt.pxd +48 -0
- nvmath/bindings/_internal/cutensor.cp314-win_amd64.pyd +0 -0
- nvmath/bindings/_internal/cutensor.pxd +58 -0
- nvmath/bindings/_internal/mathdx.cp314-win_amd64.pyd +0 -0
- nvmath/bindings/_internal/mathdx.pxd +116 -0
- nvmath/bindings/_internal/nvshmem.pxd +29 -0
- nvmath/bindings/_internal/utils.cp314-win_amd64.pyd +0 -0
- nvmath/bindings/_internal/utils.pxd +179 -0
- nvmath/bindings/_internal/utils.pyi +10 -0
- nvmath/bindings/cublas.cp314-win_amd64.pyd +0 -0
- nvmath/bindings/cublas.pxd +558 -0
- nvmath/bindings/cublas.pyi +746 -0
- nvmath/bindings/cublasLt.cp314-win_amd64.pyd +0 -0
- nvmath/bindings/cublasLt.pxd +109 -0
- nvmath/bindings/cublasLt.pyi +1337 -0
- nvmath/bindings/cublasMp.pxd +85 -0
- nvmath/bindings/cublasMp.pyi +219 -0
- nvmath/bindings/cudss.cp314-win_amd64.pyd +0 -0
- nvmath/bindings/cudss.pxd +86 -0
- nvmath/bindings/cudss.pyi +282 -0
- nvmath/bindings/cufft.cp314-win_amd64.pyd +0 -0
- nvmath/bindings/cufft.pxd +118 -0
- nvmath/bindings/cufft.pyi +241 -0
- nvmath/bindings/cufftMp.pxd +124 -0
- nvmath/bindings/cufftMp.pyi +260 -0
- nvmath/bindings/curand.cp314-win_amd64.pyd +0 -0
- nvmath/bindings/curand.pxd +71 -0
- nvmath/bindings/curand.pyi +159 -0
- nvmath/bindings/cusolver.cp314-win_amd64.pyd +0 -0
- nvmath/bindings/cusolver.pxd +62 -0
- nvmath/bindings/cusolver.pyi +242 -0
- nvmath/bindings/cusolverDn.cp314-win_amd64.pyd +0 -0
- nvmath/bindings/cusolverDn.pxd +430 -0
- nvmath/bindings/cusolverDn.pyi +416 -0
- nvmath/bindings/cusparse.cp314-win_amd64.pyd +0 -0
- nvmath/bindings/cusparse.pxd +338 -0
- nvmath/bindings/cusparse.pyi +659 -0
- nvmath/bindings/cusparseLt.cp314-win_amd64.pyd +0 -0
- nvmath/bindings/cusparseLt.pxd +99 -0
- nvmath/bindings/cusparseLt.pyi +198 -0
- nvmath/bindings/cutensor.cp314-win_amd64.pyd +0 -0
- nvmath/bindings/cutensor.pxd +98 -0
- nvmath/bindings/cutensor.pyi +294 -0
- nvmath/bindings/cycublas.cp314-win_amd64.pyd +0 -0
- nvmath/bindings/cycublas.pxd +684 -0
- nvmath/bindings/cycublasLt.cp314-win_amd64.pyd +0 -0
- nvmath/bindings/cycublasLt.pxd +1055 -0
- nvmath/bindings/cycublasMp.pxd +183 -0
- nvmath/bindings/cycudss.cp314-win_amd64.pyd +0 -0
- nvmath/bindings/cycudss.pxd +224 -0
- nvmath/bindings/cycufft.cp314-win_amd64.pyd +0 -0
- nvmath/bindings/cycufft.pxd +326 -0
- nvmath/bindings/cycufftMp.pxd +334 -0
- nvmath/bindings/cycurand.cp314-win_amd64.pyd +0 -0
- nvmath/bindings/cycurand.pxd +146 -0
- nvmath/bindings/cycusolver.cp314-win_amd64.pyd +0 -0
- nvmath/bindings/cycusolver.pxd +154 -0
- nvmath/bindings/cycusolverDn.cp314-win_amd64.pyd +0 -0
- nvmath/bindings/cycusolverDn.pxd +446 -0
- nvmath/bindings/cycusparse.cp314-win_amd64.pyd +0 -0
- nvmath/bindings/cycusparse.pxd +470 -0
- nvmath/bindings/cycusparseLt.cp314-win_amd64.pyd +0 -0
- nvmath/bindings/cycusparseLt.pxd +150 -0
- nvmath/bindings/cycutensor.cp314-win_amd64.pyd +0 -0
- nvmath/bindings/cycutensor.pxd +192 -0
- nvmath/bindings/cymathdx.cp314-win_amd64.pyd +0 -0
- nvmath/bindings/cymathdx.pxd +552 -0
- nvmath/bindings/cynvshmem.pxd +126 -0
- nvmath/bindings/mathdx.cp314-win_amd64.pyd +0 -0
- nvmath/bindings/mathdx.pxd +182 -0
- nvmath/bindings/mathdx.pyi +1244 -0
- nvmath/bindings/nvpl/__init__.pxd +0 -0
- nvmath/bindings/nvpl/__init__.py +13 -0
- nvmath/bindings/nvpl/_internal/__init__.pxd +0 -0
- nvmath/bindings/nvpl/_internal/__init__.py +0 -0
- nvmath/bindings/nvpl/_internal/blas.cp314-win_amd64.pyd +0 -0
- nvmath/bindings/nvpl/_internal/blas.pxd +125 -0
- nvmath/bindings/nvpl/_internal/fft.cp314-win_amd64.pyd +0 -0
- nvmath/bindings/nvpl/_internal/fft.pxd +36 -0
- nvmath/bindings/nvpl/blas.cp314-win_amd64.pyd +0 -0
- nvmath/bindings/nvpl/blas.pxd +85 -0
- nvmath/bindings/nvpl/blas.pyi +122 -0
- nvmath/bindings/nvpl/cyblas.cp314-win_amd64.pyd +0 -0
- nvmath/bindings/nvpl/cyblas.pxd +166 -0
- nvmath/bindings/nvpl/cyfft.cp314-win_amd64.pyd +0 -0
- nvmath/bindings/nvpl/cyfft.pxd +92 -0
- nvmath/bindings/nvpl/fft.cp314-win_amd64.pyd +0 -0
- nvmath/bindings/nvpl/fft.pxd +100 -0
- nvmath/bindings/nvpl/fft.pyi +100 -0
- nvmath/bindings/nvshmem.pxd +54 -0
- nvmath/bindings/nvshmem.pyi +179 -0
- nvmath/device/__init__.py +21 -0
- nvmath/device/_deprecated.py +33 -0
- nvmath/device/common.py +313 -0
- nvmath/device/common_backend.py +131 -0
- nvmath/device/common_cuda.py +201 -0
- nvmath/device/common_numba.py +310 -0
- nvmath/device/common_opaque_tensor.py +201 -0
- nvmath/device/cublasdx.py +1805 -0
- nvmath/device/cublasdx_backend.py +807 -0
- nvmath/device/cublasdx_numba.py +1612 -0
- nvmath/device/cufftdx.py +510 -0
- nvmath/device/cufftdx_backend.py +196 -0
- nvmath/device/cufftdx_numba.py +196 -0
- nvmath/device/curand_kernel.py +9147 -0
- nvmath/device/cusolverdx.py +2690 -0
- nvmath/device/cusolverdx_backend.py +440 -0
- nvmath/device/cusolverdx_numba.py +1624 -0
- nvmath/device/llvm_array.py +29 -0
- nvmath/device/random.py +445 -0
- nvmath/device/random_helpers.py +23 -0
- nvmath/device/random_states.py +187 -0
- nvmath/device/types.py +147 -0
- nvmath/device/vector_types_numba.py +203 -0
- nvmath/distributed/__init__.py +205 -0
- nvmath/distributed/_internal/__init__.py +0 -0
- nvmath/distributed/_internal/nvshmem.py +302 -0
- nvmath/distributed/_internal/tensor_ifc.py +67 -0
- nvmath/distributed/_internal/tensor_ifc_cupy.py +62 -0
- nvmath/distributed/_internal/tensor_ifc_host_device.py +165 -0
- nvmath/distributed/_internal/tensor_ifc_numpy.py +41 -0
- nvmath/distributed/_internal/tensor_ifc_torch.py +141 -0
- nvmath/distributed/_internal/tensor_wrapper.py +78 -0
- nvmath/distributed/_utils.py +167 -0
- nvmath/distributed/distribution.py +770 -0
- nvmath/distributed/fft/__init__.py +7 -0
- nvmath/distributed/fft/_configuration.py +79 -0
- nvmath/distributed/fft/fft.py +2801 -0
- nvmath/distributed/linalg/__init__.py +12 -0
- nvmath/distributed/linalg/_internal/__init__.py +3 -0
- nvmath/distributed/linalg/_internal/epilog_protocol.py +496 -0
- nvmath/distributed/linalg/_internal/matmul_desc_ifc.py +28 -0
- nvmath/distributed/linalg/advanced/__init__.py +8 -0
- nvmath/distributed/linalg/advanced/_configuration.py +166 -0
- nvmath/distributed/linalg/advanced/matmulmod.py +2908 -0
- nvmath/distributed/process_group.py +408 -0
- nvmath/distributed/reshape/__init__.py +6 -0
- nvmath/distributed/reshape/_configuration.py +39 -0
- nvmath/distributed/reshape/reshape.py +1256 -0
- nvmath/fft/__init__.py +7 -0
- nvmath/fft/_configuration.py +208 -0
- nvmath/fft/_exec_utils.py +109 -0
- nvmath/fft/_helpers.py +237 -0
- nvmath/fft/fft.py +2903 -0
- nvmath/internal/__init__.pxd +3 -0
- nvmath/internal/__init__.py +10 -0
- nvmath/internal/_bindings.cp314-win_amd64.pyd +0 -0
- nvmath/internal/_bindings.pxd +12 -0
- nvmath/internal/_device_utils.py +54 -0
- nvmath/internal/enum_utils.py +142 -0
- nvmath/internal/formatters.py +87 -0
- nvmath/internal/mem_limit.py +51 -0
- nvmath/internal/memory.cp314-win_amd64.pyd +0 -0
- nvmath/internal/memory.pxd +10 -0
- nvmath/internal/memory.pyi +46 -0
- nvmath/internal/ndbuffer/__init__.pxd +3 -0
- nvmath/internal/ndbuffer/__init__.py +7 -0
- nvmath/internal/ndbuffer/copy_kernel/args.h +34 -0
- nvmath/internal/ndbuffer/copy_kernel/copy_kernel_impl/array_view.h +52 -0
- nvmath/internal/ndbuffer/copy_kernel/copy_kernel_impl/elementwise.h +68 -0
- nvmath/internal/ndbuffer/copy_kernel/copy_kernel_impl/grid_indexer.h +69 -0
- nvmath/internal/ndbuffer/copy_kernel/copy_kernel_impl/transposed.h +240 -0
- nvmath/internal/ndbuffer/copy_kernel/copy_kernel_impl/type_utils.h +39 -0
- nvmath/internal/ndbuffer/copy_kernel/copy_kernel_impl/utils.h +132 -0
- nvmath/internal/ndbuffer/copy_kernel/copy_kernel_impl/vec.h +159 -0
- nvmath/internal/ndbuffer/copy_kernel/elementwise.h +53 -0
- nvmath/internal/ndbuffer/copy_kernel/transposed.h +58 -0
- nvmath/internal/ndbuffer/copy_kernel.cp314-win_amd64.pyd +0 -0
- nvmath/internal/ndbuffer/copy_kernel.pxd +9 -0
- nvmath/internal/ndbuffer/copy_kernel.pyi +9 -0
- nvmath/internal/ndbuffer/data_layout.cp314-win_amd64.pyd +0 -0
- nvmath/internal/ndbuffer/data_layout.pxd +72 -0
- nvmath/internal/ndbuffer/data_layout.pyi +23 -0
- nvmath/internal/ndbuffer/jit.cp314-win_amd64.pyd +0 -0
- nvmath/internal/ndbuffer/jit.pxd +7 -0
- nvmath/internal/ndbuffer/jit.pyi +6 -0
- nvmath/internal/ndbuffer/ndbuffer.cp314-win_amd64.pyd +0 -0
- nvmath/internal/ndbuffer/ndbuffer.pxd +36 -0
- nvmath/internal/ndbuffer/ndbuffer.pyi +41 -0
- nvmath/internal/ndbuffer/package_utils.cp314-win_amd64.pyd +0 -0
- nvmath/internal/ndbuffer/package_utils.pxd +11 -0
- nvmath/internal/ndbuffer/package_utils.pyi +12 -0
- nvmath/internal/package_ifc.py +147 -0
- nvmath/internal/package_ifc_cuda.py +49 -0
- nvmath/internal/package_ifc_cupy.py +49 -0
- nvmath/internal/package_ifc_torch.py +31 -0
- nvmath/internal/package_wrapper.py +14 -0
- nvmath/internal/tensor_ifc.py +194 -0
- nvmath/internal/tensor_ifc_cupy.py +241 -0
- nvmath/internal/tensor_ifc_ndbuffer.py +153 -0
- nvmath/internal/tensor_ifc_numpy.py +183 -0
- nvmath/internal/tensor_ifc_torch.py +176 -0
- nvmath/internal/tensor_wrapper.py +157 -0
- nvmath/internal/typemaps.py +162 -0
- nvmath/internal/utils.py +771 -0
- nvmath/linalg/__init__.py +46 -0
- nvmath/linalg/_internal/__init__.py +3 -0
- nvmath/linalg/_internal/algo_cap_ifc.py +82 -0
- nvmath/linalg/_internal/algo_config_ifc.py +43 -0
- nvmath/linalg/_internal/batch.py +217 -0
- nvmath/linalg/_internal/enum_to_tuples.py +64 -0
- nvmath/linalg/_internal/epilog_protocol.py +766 -0
- nvmath/linalg/_internal/layout.py +624 -0
- nvmath/linalg/_internal/matmul_desc_ifc.py +28 -0
- nvmath/linalg/_internal/matmul_pref_ifc.py +27 -0
- nvmath/linalg/_internal/matrix_layout_ifc.py +26 -0
- nvmath/linalg/_internal/typemaps.py +144 -0
- nvmath/linalg/_internal/utils.py +134 -0
- nvmath/linalg/advanced/__init__.py +8 -0
- nvmath/linalg/advanced/_algorithmmod.py +149 -0
- nvmath/linalg/advanced/_configuration.py +349 -0
- nvmath/linalg/advanced/helpers/__init__.py +5 -0
- nvmath/linalg/advanced/helpers/matmul.py +1348 -0
- nvmath/linalg/advanced/matmulmod.py +3937 -0
- nvmath/linalg/generic/__init__.py +43 -0
- nvmath/linalg/generic/_configuration/__init__.py +37 -0
- nvmath/linalg/generic/_configuration/layout.py +263 -0
- nvmath/linalg/generic/_configuration/match.py +609 -0
- nvmath/linalg/generic/_configuration/qualifiers.py +494 -0
- nvmath/linalg/generic/_configuration/wrap.py +217 -0
- nvmath/linalg/generic/_dtype.py +15 -0
- nvmath/linalg/generic/matmulmod.py +1060 -0
- nvmath/memory.py +282 -0
- nvmath/sparse/__init__.py +38 -0
- nvmath/sparse/_internal/__init__.py +21 -0
- nvmath/sparse/_internal/common_utils.py +144 -0
- nvmath/sparse/_internal/cudss_config_ifc.py +741 -0
- nvmath/sparse/_internal/cudss_data_ifc.py +399 -0
- nvmath/sparse/_internal/cudss_utils.py +445 -0
- nvmath/sparse/_internal/cusparse_utils.py +382 -0
- nvmath/sparse/_internal/sparse_bsc_ifc.py +300 -0
- nvmath/sparse/_internal/sparse_bsr_ifc.py +303 -0
- nvmath/sparse/_internal/sparse_coo_ifc.py +254 -0
- nvmath/sparse/_internal/sparse_csc_ifc.py +266 -0
- nvmath/sparse/_internal/sparse_csr_ifc.py +266 -0
- nvmath/sparse/_internal/sparse_dia_ifc.py +239 -0
- nvmath/sparse/_internal/sparse_format_helpers.py +601 -0
- nvmath/sparse/_internal/sparse_tensor_ifc.py +121 -0
- nvmath/sparse/_internal/sparse_ust_ifc.py +146 -0
- nvmath/sparse/_internal/utils.py +56 -0
- nvmath/sparse/advanced/__init__.py +7 -0
- nvmath/sparse/advanced/_configuration.py +230 -0
- nvmath/sparse/advanced/direct_solver.py +1884 -0
- nvmath/sparse/generic/__init__.py +7 -0
- nvmath/sparse/generic/_configuration.py +129 -0
- nvmath/sparse/generic/_helpers.py +137 -0
- nvmath/sparse/generic/_thunks.py +21 -0
- nvmath/sparse/generic/matmulmod.py +2426 -0
- nvmath/sparse/ust/__init__.py +7 -0
- nvmath/sparse/ust/_converters.py +378 -0
- nvmath/sparse/ust/_drawer.py +552 -0
- nvmath/sparse/ust/_emitter.py +553 -0
- nvmath/sparse/ust/_jit.py +212 -0
- nvmath/sparse/ust/_kernel.py +346 -0
- nvmath/sparse/ust/_semiring.py +71 -0
- nvmath/sparse/ust/_utils.py +102 -0
- nvmath/sparse/ust/interfaces/__init__.py +0 -0
- nvmath/sparse/ust/interfaces/torch_interface.py +476 -0
- nvmath/sparse/ust/semiring_ops.py +71 -0
- nvmath/sparse/ust/tensor.py +1027 -0
- nvmath/sparse/ust/tensor_drawer.py +552 -0
- nvmath/sparse/ust/tensor_emitter.py +558 -0
- nvmath/sparse/ust/tensor_format.py +935 -0
- nvmath/sparse/ust/tensor_jit.py +212 -0
- nvmath/sparse/ust/tensor_kernel.py +348 -0
- nvmath/sparse/ust/tensor_utils.py +380 -0
- nvmath/tensor/__init__.py +6 -0
- nvmath/tensor/_configuration.py +95 -0
- nvmath/tensor/_internal/__init__.py +3 -0
- nvmath/tensor/_internal/cutensor_config_ifc.py +247 -0
- nvmath/tensor/_internal/cutensor_utils.py +162 -0
- nvmath/tensor/_internal/data.py +43 -0
- nvmath/tensor/_internal/einsum_parser.py +444 -0
- nvmath/tensor/_internal/typemaps.py +96 -0
- nvmath/tensor/contract.py +1861 -0
- nvmath_python-0.9.0.dist-info/METADATA +127 -0
- nvmath_python-0.9.0.dist-info/RECORD +309 -0
- nvmath_python-0.9.0.dist-info/WHEEL +5 -0
- nvmath_python-0.9.0.dist-info/licenses/LICENSE +177 -0
- nvmath_python-0.9.0.dist-info/top_level.txt +2 -0
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
# Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED.
|
|
2
|
+
#
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
|
|
5
|
+
import _cython_3_2_4
|
|
6
|
+
import enum
|
|
7
|
+
from typing import Any, Callable, ClassVar
|
|
8
|
+
|
|
9
|
+
__pyx_capi__: dict
|
|
10
|
+
__test__: dict
|
|
11
|
+
block_sparse_contract: _cython_3_2_4.cython_function_or_method
|
|
12
|
+
check_status: _cython_3_2_4.cython_function_or_method
|
|
13
|
+
contract: _cython_3_2_4.cython_function_or_method
|
|
14
|
+
contract_trinary: _cython_3_2_4.cython_function_or_method
|
|
15
|
+
create: _cython_3_2_4.cython_function_or_method
|
|
16
|
+
create_block_sparse_contraction: _cython_3_2_4.cython_function_or_method
|
|
17
|
+
create_block_sparse_tensor_descriptor: _cython_3_2_4.cython_function_or_method
|
|
18
|
+
create_contraction: _cython_3_2_4.cython_function_or_method
|
|
19
|
+
create_contraction_trinary: _cython_3_2_4.cython_function_or_method
|
|
20
|
+
create_elementwise_binary: _cython_3_2_4.cython_function_or_method
|
|
21
|
+
create_elementwise_trinary: _cython_3_2_4.cython_function_or_method
|
|
22
|
+
create_permutation: _cython_3_2_4.cython_function_or_method
|
|
23
|
+
create_plan: _cython_3_2_4.cython_function_or_method
|
|
24
|
+
create_plan_preference: _cython_3_2_4.cython_function_or_method
|
|
25
|
+
create_reduction: _cython_3_2_4.cython_function_or_method
|
|
26
|
+
create_tensor_descriptor: _cython_3_2_4.cython_function_or_method
|
|
27
|
+
destroy: _cython_3_2_4.cython_function_or_method
|
|
28
|
+
destroy_block_sparse_tensor_descriptor: _cython_3_2_4.cython_function_or_method
|
|
29
|
+
destroy_operation_descriptor: _cython_3_2_4.cython_function_or_method
|
|
30
|
+
destroy_plan: _cython_3_2_4.cython_function_or_method
|
|
31
|
+
destroy_plan_preference: _cython_3_2_4.cython_function_or_method
|
|
32
|
+
destroy_tensor_descriptor: _cython_3_2_4.cython_function_or_method
|
|
33
|
+
elementwise_binary_execute: _cython_3_2_4.cython_function_or_method
|
|
34
|
+
elementwise_trinary_execute: _cython_3_2_4.cython_function_or_method
|
|
35
|
+
estimate_workspace_size: _cython_3_2_4.cython_function_or_method
|
|
36
|
+
get_cudart_version: _cython_3_2_4.cython_function_or_method
|
|
37
|
+
get_error_string: _cython_3_2_4.cython_function_or_method
|
|
38
|
+
get_operation_descriptor_attribute_dtype: _cython_3_2_4.cython_function_or_method
|
|
39
|
+
get_plan_attribute_dtype: _cython_3_2_4.cython_function_or_method
|
|
40
|
+
get_plan_preference_attribute_dtype: _cython_3_2_4.cython_function_or_method
|
|
41
|
+
get_version: _cython_3_2_4.cython_function_or_method
|
|
42
|
+
handle_read_plan_cache_from_file: _cython_3_2_4.cython_function_or_method
|
|
43
|
+
handle_resize_plan_cache: _cython_3_2_4.cython_function_or_method
|
|
44
|
+
handle_write_plan_cache_to_file: _cython_3_2_4.cython_function_or_method
|
|
45
|
+
logger_force_disable: _cython_3_2_4.cython_function_or_method
|
|
46
|
+
logger_open_file: _cython_3_2_4.cython_function_or_method
|
|
47
|
+
logger_set_file: _cython_3_2_4.cython_function_or_method
|
|
48
|
+
logger_set_level: _cython_3_2_4.cython_function_or_method
|
|
49
|
+
logger_set_mask: _cython_3_2_4.cython_function_or_method
|
|
50
|
+
operation_descriptor_get_attribute: _cython_3_2_4.cython_function_or_method
|
|
51
|
+
operation_descriptor_set_attribute: _cython_3_2_4.cython_function_or_method
|
|
52
|
+
permute: _cython_3_2_4.cython_function_or_method
|
|
53
|
+
plan_get_attribute: _cython_3_2_4.cython_function_or_method
|
|
54
|
+
plan_preference_get_attribute: _cython_3_2_4.cython_function_or_method
|
|
55
|
+
plan_preference_set_attribute: _cython_3_2_4.cython_function_or_method
|
|
56
|
+
read_kernel_cache_from_file: _cython_3_2_4.cython_function_or_method
|
|
57
|
+
reduce: _cython_3_2_4.cython_function_or_method
|
|
58
|
+
write_kernel_cache_to_file: _cython_3_2_4.cython_function_or_method
|
|
59
|
+
|
|
60
|
+
class Algo(enum.IntEnum):
|
|
61
|
+
"""
|
|
62
|
+
Allows users to specify the algorithm to be used for performing the
|
|
63
|
+
desired tensor operation.
|
|
64
|
+
|
|
65
|
+
See `cutensorAlgo_t`.
|
|
66
|
+
"""
|
|
67
|
+
__new__: ClassVar[Callable] = ...
|
|
68
|
+
DEFAULT: ClassVar[Algo] = ...
|
|
69
|
+
DEFAULT_PATIENT: ClassVar[Algo] = ...
|
|
70
|
+
GETT: ClassVar[Algo] = ...
|
|
71
|
+
TGETT: ClassVar[Algo] = ...
|
|
72
|
+
TTGT: ClassVar[Algo] = ...
|
|
73
|
+
_generate_next_value_: ClassVar[Callable] = ...
|
|
74
|
+
_member_map_: ClassVar[dict] = ...
|
|
75
|
+
_member_names_: ClassVar[list] = ...
|
|
76
|
+
_member_type_: ClassVar[type[int]] = ...
|
|
77
|
+
_value2member_map_: ClassVar[dict] = ...
|
|
78
|
+
|
|
79
|
+
class AutotuneMode(enum.IntEnum):
|
|
80
|
+
"""
|
|
81
|
+
This enum determines the mode w.r.t. cuTENSOR's auto-tuning capability.
|
|
82
|
+
|
|
83
|
+
See `cutensorAutotuneMode_t`.
|
|
84
|
+
"""
|
|
85
|
+
__new__: ClassVar[Callable] = ...
|
|
86
|
+
INCREMENTAL: ClassVar[AutotuneMode] = ...
|
|
87
|
+
NONE: ClassVar[AutotuneMode] = ...
|
|
88
|
+
_generate_next_value_: ClassVar[Callable] = ...
|
|
89
|
+
_member_map_: ClassVar[dict] = ...
|
|
90
|
+
_member_names_: ClassVar[list] = ...
|
|
91
|
+
_member_type_: ClassVar[type[int]] = ...
|
|
92
|
+
_value2member_map_: ClassVar[dict] = ...
|
|
93
|
+
|
|
94
|
+
class CacheMode(enum.IntEnum):
|
|
95
|
+
"""
|
|
96
|
+
This enum defines what is considered a cache hit.
|
|
97
|
+
|
|
98
|
+
See `cutensorCacheMode_t`.
|
|
99
|
+
"""
|
|
100
|
+
__new__: ClassVar[Callable] = ...
|
|
101
|
+
NONE: ClassVar[CacheMode] = ...
|
|
102
|
+
PEDANTIC: ClassVar[CacheMode] = ...
|
|
103
|
+
_generate_next_value_: ClassVar[Callable] = ...
|
|
104
|
+
_member_map_: ClassVar[dict] = ...
|
|
105
|
+
_member_names_: ClassVar[list] = ...
|
|
106
|
+
_member_type_: ClassVar[type[int]] = ...
|
|
107
|
+
_value2member_map_: ClassVar[dict] = ...
|
|
108
|
+
|
|
109
|
+
class ComputeDesc:
|
|
110
|
+
"""See `cutensorComputeDescriptor_t`."""
|
|
111
|
+
COMPUTE_16BF: ClassVar[method] = ...
|
|
112
|
+
COMPUTE_16F: ClassVar[method] = ...
|
|
113
|
+
COMPUTE_32F: ClassVar[method] = ...
|
|
114
|
+
COMPUTE_3XTF32: ClassVar[method] = ...
|
|
115
|
+
COMPUTE_4X16F: ClassVar[method] = ...
|
|
116
|
+
COMPUTE_64F: ClassVar[method] = ...
|
|
117
|
+
COMPUTE_8XINT8: ClassVar[method] = ...
|
|
118
|
+
COMPUTE_9X16BF: ClassVar[method] = ...
|
|
119
|
+
COMPUTE_TF32: ClassVar[method] = ...
|
|
120
|
+
|
|
121
|
+
class JitMode(enum.IntEnum):
|
|
122
|
+
"""
|
|
123
|
+
This enum determines the mode w.r.t. cuTENSOR's just-in-time
|
|
124
|
+
compilation capability.
|
|
125
|
+
|
|
126
|
+
See `cutensorJitMode_t`.
|
|
127
|
+
"""
|
|
128
|
+
__new__: ClassVar[Callable] = ...
|
|
129
|
+
DEFAULT: ClassVar[JitMode] = ...
|
|
130
|
+
NONE: ClassVar[JitMode] = ...
|
|
131
|
+
_generate_next_value_: ClassVar[Callable] = ...
|
|
132
|
+
_member_map_: ClassVar[dict] = ...
|
|
133
|
+
_member_names_: ClassVar[list] = ...
|
|
134
|
+
_member_type_: ClassVar[type[int]] = ...
|
|
135
|
+
_value2member_map_: ClassVar[dict] = ...
|
|
136
|
+
|
|
137
|
+
class OperationDescriptorAttribute(enum.IntEnum):
|
|
138
|
+
"""
|
|
139
|
+
This enum lists all attributes of a `cutensorOperationDescriptor_t`
|
|
140
|
+
that can be modified (see `cutensorOperationDescriptorSetAttribute` and
|
|
141
|
+
`cutensorOperationDescriptorGetAttribute`).
|
|
142
|
+
|
|
143
|
+
See `cutensorOperationDescriptorAttribute_t`.
|
|
144
|
+
"""
|
|
145
|
+
__new__: ClassVar[Callable] = ...
|
|
146
|
+
FLOPS: ClassVar[OperationDescriptorAttribute] = ...
|
|
147
|
+
MOVED_BYTES: ClassVar[OperationDescriptorAttribute] = ...
|
|
148
|
+
PADDING_LEFT: ClassVar[OperationDescriptorAttribute] = ...
|
|
149
|
+
PADDING_RIGHT: ClassVar[OperationDescriptorAttribute] = ...
|
|
150
|
+
PADDING_VALUE: ClassVar[OperationDescriptorAttribute] = ...
|
|
151
|
+
SCALAR_TYPE: ClassVar[OperationDescriptorAttribute] = ...
|
|
152
|
+
TAG: ClassVar[OperationDescriptorAttribute] = ...
|
|
153
|
+
_generate_next_value_: ClassVar[Callable] = ...
|
|
154
|
+
_member_map_: ClassVar[dict] = ...
|
|
155
|
+
_member_names_: ClassVar[list] = ...
|
|
156
|
+
_member_type_: ClassVar[type[int]] = ...
|
|
157
|
+
_value2member_map_: ClassVar[dict] = ...
|
|
158
|
+
|
|
159
|
+
class Operator(enum.IntEnum):
|
|
160
|
+
"""
|
|
161
|
+
This enum captures all unary and binary element-wise operations
|
|
162
|
+
supported by the cuTENSOR library.
|
|
163
|
+
|
|
164
|
+
See `cutensorOperator_t`.
|
|
165
|
+
"""
|
|
166
|
+
__new__: ClassVar[Callable] = ...
|
|
167
|
+
OP_ABS: ClassVar[Operator] = ...
|
|
168
|
+
OP_ACOS: ClassVar[Operator] = ...
|
|
169
|
+
OP_ACOSH: ClassVar[Operator] = ...
|
|
170
|
+
OP_ADD: ClassVar[Operator] = ...
|
|
171
|
+
OP_ASIN: ClassVar[Operator] = ...
|
|
172
|
+
OP_ASINH: ClassVar[Operator] = ...
|
|
173
|
+
OP_ATAN: ClassVar[Operator] = ...
|
|
174
|
+
OP_ATANH: ClassVar[Operator] = ...
|
|
175
|
+
OP_CEIL: ClassVar[Operator] = ...
|
|
176
|
+
OP_CONJ: ClassVar[Operator] = ...
|
|
177
|
+
OP_COS: ClassVar[Operator] = ...
|
|
178
|
+
OP_COSH: ClassVar[Operator] = ...
|
|
179
|
+
OP_EXP: ClassVar[Operator] = ...
|
|
180
|
+
OP_FLOOR: ClassVar[Operator] = ...
|
|
181
|
+
OP_IDENTITY: ClassVar[Operator] = ...
|
|
182
|
+
OP_LOG: ClassVar[Operator] = ...
|
|
183
|
+
OP_MAX: ClassVar[Operator] = ...
|
|
184
|
+
OP_MIN: ClassVar[Operator] = ...
|
|
185
|
+
OP_MISH: ClassVar[Operator] = ...
|
|
186
|
+
OP_MUL: ClassVar[Operator] = ...
|
|
187
|
+
OP_NEG: ClassVar[Operator] = ...
|
|
188
|
+
OP_RCP: ClassVar[Operator] = ...
|
|
189
|
+
OP_RELU: ClassVar[Operator] = ...
|
|
190
|
+
OP_SIGMOID: ClassVar[Operator] = ...
|
|
191
|
+
OP_SIN: ClassVar[Operator] = ...
|
|
192
|
+
OP_SINH: ClassVar[Operator] = ...
|
|
193
|
+
OP_SOFT_PLUS: ClassVar[Operator] = ...
|
|
194
|
+
OP_SOFT_SIGN: ClassVar[Operator] = ...
|
|
195
|
+
OP_SQRT: ClassVar[Operator] = ...
|
|
196
|
+
OP_SWISH: ClassVar[Operator] = ...
|
|
197
|
+
OP_TAN: ClassVar[Operator] = ...
|
|
198
|
+
OP_TANH: ClassVar[Operator] = ...
|
|
199
|
+
OP_UNKNOWN: ClassVar[Operator] = ...
|
|
200
|
+
_generate_next_value_: ClassVar[Callable] = ...
|
|
201
|
+
_member_map_: ClassVar[dict] = ...
|
|
202
|
+
_member_names_: ClassVar[list] = ...
|
|
203
|
+
_member_type_: ClassVar[type[int]] = ...
|
|
204
|
+
_value2member_map_: ClassVar[dict] = ...
|
|
205
|
+
|
|
206
|
+
class PlanAttribute(enum.IntEnum):
|
|
207
|
+
"""
|
|
208
|
+
This enum lists all attributes of a `cutensorPlan_t` object that can be
|
|
209
|
+
retrieved via `cutensorPlanGetAttribute`.
|
|
210
|
+
|
|
211
|
+
See `cutensorPlanAttribute_t`.
|
|
212
|
+
"""
|
|
213
|
+
__new__: ClassVar[Callable] = ...
|
|
214
|
+
REQUIRED_WORKSPACE: ClassVar[PlanAttribute] = ...
|
|
215
|
+
_generate_next_value_: ClassVar[Callable] = ...
|
|
216
|
+
_member_map_: ClassVar[dict] = ...
|
|
217
|
+
_member_names_: ClassVar[list] = ...
|
|
218
|
+
_member_type_: ClassVar[type[int]] = ...
|
|
219
|
+
_value2member_map_: ClassVar[dict] = ...
|
|
220
|
+
|
|
221
|
+
class PlanPreferenceAttribute(enum.IntEnum):
|
|
222
|
+
"""
|
|
223
|
+
This enum lists all attributes of a `cutensorPlanPreference_t` object
|
|
224
|
+
that can be modified.
|
|
225
|
+
|
|
226
|
+
See `cutensorPlanPreferenceAttribute_t`.
|
|
227
|
+
"""
|
|
228
|
+
__new__: ClassVar[Callable] = ...
|
|
229
|
+
ALGO: ClassVar[PlanPreferenceAttribute] = ...
|
|
230
|
+
AUTOTUNE_MODE: ClassVar[PlanPreferenceAttribute] = ...
|
|
231
|
+
CACHE_MODE: ClassVar[PlanPreferenceAttribute] = ...
|
|
232
|
+
INCREMENTAL_COUNT: ClassVar[PlanPreferenceAttribute] = ...
|
|
233
|
+
JIT: ClassVar[PlanPreferenceAttribute] = ...
|
|
234
|
+
KERNEL_RANK: ClassVar[PlanPreferenceAttribute] = ...
|
|
235
|
+
_generate_next_value_: ClassVar[Callable] = ...
|
|
236
|
+
_member_map_: ClassVar[dict] = ...
|
|
237
|
+
_member_names_: ClassVar[list] = ...
|
|
238
|
+
_member_type_: ClassVar[type[int]] = ...
|
|
239
|
+
_value2member_map_: ClassVar[dict] = ...
|
|
240
|
+
|
|
241
|
+
class Status(enum.IntEnum):
|
|
242
|
+
"""
|
|
243
|
+
cuTENSOR status type returnsThe type is used for function status
|
|
244
|
+
returns. All cuTENSOR library functions return their status, which can
|
|
245
|
+
have the following values.
|
|
246
|
+
|
|
247
|
+
See `cutensorStatus_t`.
|
|
248
|
+
"""
|
|
249
|
+
__new__: ClassVar[Callable] = ...
|
|
250
|
+
ALLOC_FAILED: ClassVar[Status] = ...
|
|
251
|
+
ARCH_MISMATCH: ClassVar[Status] = ...
|
|
252
|
+
CUBLAS_ERROR: ClassVar[Status] = ...
|
|
253
|
+
CUDA_ERROR: ClassVar[Status] = ...
|
|
254
|
+
EXECUTION_FAILED: ClassVar[Status] = ...
|
|
255
|
+
INSUFFICIENT_DRIVER: ClassVar[Status] = ...
|
|
256
|
+
INSUFFICIENT_WORKSPACE: ClassVar[Status] = ...
|
|
257
|
+
INTERNAL_ERROR: ClassVar[Status] = ...
|
|
258
|
+
INVALID_VALUE: ClassVar[Status] = ...
|
|
259
|
+
IO_ERROR: ClassVar[Status] = ...
|
|
260
|
+
LICENSE_ERROR: ClassVar[Status] = ...
|
|
261
|
+
MAPPING_ERROR: ClassVar[Status] = ...
|
|
262
|
+
NOT_INITIALIZED: ClassVar[Status] = ...
|
|
263
|
+
NOT_SUPPORTED: ClassVar[Status] = ...
|
|
264
|
+
SUCCESS: ClassVar[Status] = ...
|
|
265
|
+
_generate_next_value_: ClassVar[Callable] = ...
|
|
266
|
+
_member_map_: ClassVar[dict] = ...
|
|
267
|
+
_member_names_: ClassVar[list] = ...
|
|
268
|
+
_member_type_: ClassVar[type[int]] = ...
|
|
269
|
+
_value2member_map_: ClassVar[dict] = ...
|
|
270
|
+
|
|
271
|
+
class WorksizePreference(enum.IntEnum):
|
|
272
|
+
"""
|
|
273
|
+
This enum gives users finer control over the suggested workspace.This
|
|
274
|
+
enum gives users finer control over the amount of workspace that is
|
|
275
|
+
suggested by `cutensorEstimateWorkspaceSize`
|
|
276
|
+
|
|
277
|
+
See `cutensorWorksizePreference_t`.
|
|
278
|
+
"""
|
|
279
|
+
__new__: ClassVar[Callable] = ...
|
|
280
|
+
WORKSPACE_DEFAULT: ClassVar[WorksizePreference] = ...
|
|
281
|
+
WORKSPACE_MAX: ClassVar[WorksizePreference] = ...
|
|
282
|
+
WORKSPACE_MIN: ClassVar[WorksizePreference] = ...
|
|
283
|
+
_generate_next_value_: ClassVar[Callable] = ...
|
|
284
|
+
_member_map_: ClassVar[dict] = ...
|
|
285
|
+
_member_names_: ClassVar[list] = ...
|
|
286
|
+
_member_type_: ClassVar[type[int]] = ...
|
|
287
|
+
_value2member_map_: ClassVar[dict] = ...
|
|
288
|
+
|
|
289
|
+
class cuTENSORError(Exception):
|
|
290
|
+
"""cuTENSORError(status)"""
|
|
291
|
+
def __init__(self, status) -> Any:
|
|
292
|
+
"""Initialize self. See help(type(self)) for accurate signature."""
|
|
293
|
+
def __reduce__(self) -> Any:
|
|
294
|
+
"""cuTENSORError.__reduce__(self)"""
|
|
Binary file
|