gstaichi 0.1.21.dev0__cp310-cp310-win_amd64.whl → 0.1.25.dev0__cp310-cp310-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.
- gstaichi/CHANGELOG.md +9 -0
- {taichi → gstaichi}/__init__.py +9 -13
- {taichi → gstaichi}/_funcs.py +8 -8
- {taichi → gstaichi}/_kernels.py +19 -19
- gstaichi/_lib/__init__.py +3 -0
- taichi/_lib/core/taichi_python.cp310-win_amd64.pyd → gstaichi/_lib/core/gstaichi_python.cp310-win_amd64.pyd +0 -0
- taichi/_lib/core/taichi_python.pyi → gstaichi/_lib/core/gstaichi_python.pyi +382 -522
- {taichi → gstaichi}/_lib/runtime/runtime_cuda.bc +0 -0
- {taichi → gstaichi}/_lib/runtime/runtime_x64.bc +0 -0
- {taichi → gstaichi}/_lib/utils.py +15 -15
- {taichi → gstaichi}/_logging.py +1 -1
- {taichi → gstaichi}/_main.py +24 -31
- gstaichi/_snode/__init__.py +5 -0
- {taichi → gstaichi}/_snode/fields_builder.py +27 -29
- {taichi → gstaichi}/_snode/snode_tree.py +5 -5
- gstaichi/_test_tools/__init__.py +0 -0
- gstaichi/_test_tools/load_kernel_string.py +30 -0
- gstaichi/_version.py +1 -0
- {taichi → gstaichi}/_version_check.py +8 -5
- gstaichi/ad/__init__.py +3 -0
- {taichi → gstaichi}/ad/_ad.py +26 -26
- {taichi → gstaichi}/algorithms/_algorithms.py +7 -7
- {taichi → gstaichi}/examples/minimal.py +1 -1
- {taichi → gstaichi}/experimental.py +1 -1
- gstaichi/lang/__init__.py +50 -0
- {taichi → gstaichi}/lang/_ndarray.py +30 -26
- {taichi → gstaichi}/lang/_ndrange.py +8 -8
- gstaichi/lang/_template_mapper.py +199 -0
- {taichi → gstaichi}/lang/_texture.py +19 -19
- {taichi → gstaichi}/lang/_wrap_inspect.py +7 -7
- {taichi → gstaichi}/lang/any_array.py +13 -13
- {taichi → gstaichi}/lang/argpack.py +29 -29
- gstaichi/lang/ast/__init__.py +5 -0
- {taichi → gstaichi}/lang/ast/ast_transformer.py +94 -582
- {taichi → gstaichi}/lang/ast/ast_transformer_utils.py +54 -41
- gstaichi/lang/ast/ast_transformers/__init__.py +0 -0
- gstaichi/lang/ast/ast_transformers/call_transformer.py +267 -0
- gstaichi/lang/ast/ast_transformers/function_def_transformer.py +320 -0
- {taichi → gstaichi}/lang/ast/checkers.py +5 -5
- gstaichi/lang/ast/transform.py +9 -0
- {taichi → gstaichi}/lang/common_ops.py +12 -12
- gstaichi/lang/exception.py +80 -0
- {taichi → gstaichi}/lang/expr.py +22 -22
- {taichi → gstaichi}/lang/field.py +29 -27
- {taichi → gstaichi}/lang/impl.py +116 -121
- {taichi → gstaichi}/lang/kernel_arguments.py +16 -16
- {taichi → gstaichi}/lang/kernel_impl.py +330 -363
- {taichi → gstaichi}/lang/matrix.py +119 -115
- {taichi → gstaichi}/lang/matrix_ops.py +6 -6
- {taichi → gstaichi}/lang/matrix_ops_utils.py +4 -4
- {taichi → gstaichi}/lang/mesh.py +22 -22
- {taichi → gstaichi}/lang/misc.py +39 -68
- {taichi → gstaichi}/lang/ops.py +146 -141
- {taichi → gstaichi}/lang/runtime_ops.py +2 -2
- {taichi → gstaichi}/lang/shell.py +3 -3
- {taichi → gstaichi}/lang/simt/__init__.py +1 -1
- {taichi → gstaichi}/lang/simt/block.py +7 -7
- {taichi → gstaichi}/lang/simt/grid.py +1 -1
- {taichi → gstaichi}/lang/simt/subgroup.py +1 -1
- {taichi → gstaichi}/lang/simt/warp.py +1 -1
- {taichi → gstaichi}/lang/snode.py +46 -44
- {taichi → gstaichi}/lang/source_builder.py +13 -13
- {taichi → gstaichi}/lang/struct.py +33 -33
- {taichi → gstaichi}/lang/util.py +24 -24
- gstaichi/linalg/__init__.py +8 -0
- {taichi → gstaichi}/linalg/matrixfree_cg.py +14 -14
- {taichi → gstaichi}/linalg/sparse_cg.py +10 -10
- {taichi → gstaichi}/linalg/sparse_matrix.py +23 -23
- {taichi → gstaichi}/linalg/sparse_solver.py +21 -21
- {taichi → gstaichi}/math/__init__.py +1 -1
- {taichi → gstaichi}/math/_complex.py +21 -20
- {taichi → gstaichi}/math/mathimpl.py +56 -56
- gstaichi/profiler/__init__.py +6 -0
- {taichi → gstaichi}/profiler/kernel_metrics.py +11 -11
- {taichi → gstaichi}/profiler/kernel_profiler.py +30 -36
- {taichi → gstaichi}/profiler/memory_profiler.py +1 -1
- {taichi → gstaichi}/profiler/scoped_profiler.py +2 -2
- {taichi → gstaichi}/sparse/_sparse_grid.py +7 -7
- {taichi → gstaichi}/tools/__init__.py +4 -4
- {taichi → gstaichi}/tools/diagnose.py +10 -17
- gstaichi/types/__init__.py +19 -0
- {taichi → gstaichi}/types/annotations.py +1 -1
- {taichi → gstaichi}/types/compound_types.py +8 -8
- {taichi → gstaichi}/types/enums.py +1 -1
- {taichi → gstaichi}/types/ndarray_type.py +7 -7
- {taichi → gstaichi}/types/primitive_types.py +17 -14
- {taichi → gstaichi}/types/quant.py +9 -9
- {taichi → gstaichi}/types/texture_type.py +5 -5
- {taichi → gstaichi}/types/utils.py +1 -1
- {gstaichi-0.1.21.dev0.data → gstaichi-0.1.25.dev0.data}/data/bin/SPIRV-Tools-shared.dll +0 -0
- {gstaichi-0.1.21.dev0.data → gstaichi-0.1.25.dev0.data}/data/lib/SPIRV-Tools-diff.lib +0 -0
- {gstaichi-0.1.21.dev0.data → gstaichi-0.1.25.dev0.data}/data/lib/SPIRV-Tools-link.lib +0 -0
- {gstaichi-0.1.21.dev0.data → gstaichi-0.1.25.dev0.data}/data/lib/SPIRV-Tools-lint.lib +0 -0
- {gstaichi-0.1.21.dev0.data → gstaichi-0.1.25.dev0.data}/data/lib/SPIRV-Tools-opt.lib +0 -0
- {gstaichi-0.1.21.dev0.data → gstaichi-0.1.25.dev0.data}/data/lib/SPIRV-Tools-reduce.lib +0 -0
- {gstaichi-0.1.21.dev0.data → gstaichi-0.1.25.dev0.data}/data/lib/SPIRV-Tools-shared.lib +0 -0
- {gstaichi-0.1.21.dev0.data → gstaichi-0.1.25.dev0.data}/data/lib/SPIRV-Tools.lib +0 -0
- {gstaichi-0.1.21.dev0.dist-info → gstaichi-0.1.25.dev0.dist-info}/METADATA +13 -16
- gstaichi-0.1.25.dev0.dist-info/RECORD +138 -0
- gstaichi-0.1.25.dev0.dist-info/entry_points.txt +2 -0
- gstaichi-0.1.25.dev0.dist-info/top_level.txt +1 -0
- gstaichi-0.1.21.dev0.data/data/include/GLFW/glfw3.h +0 -6389
- gstaichi-0.1.21.dev0.data/data/include/GLFW/glfw3native.h +0 -594
- gstaichi-0.1.21.dev0.data/data/lib/cmake/glfw3/glfw3Config.cmake +0 -3
- gstaichi-0.1.21.dev0.data/data/lib/cmake/glfw3/glfw3ConfigVersion.cmake +0 -65
- gstaichi-0.1.21.dev0.data/data/lib/cmake/glfw3/glfw3Targets-release.cmake +0 -19
- gstaichi-0.1.21.dev0.data/data/lib/cmake/glfw3/glfw3Targets.cmake +0 -107
- gstaichi-0.1.21.dev0.data/data/lib/glfw3.lib +0 -0
- gstaichi-0.1.21.dev0.dist-info/RECORD +0 -198
- gstaichi-0.1.21.dev0.dist-info/entry_points.txt +0 -2
- gstaichi-0.1.21.dev0.dist-info/top_level.txt +0 -1
- taichi/CHANGELOG.md +0 -17
- taichi/_lib/__init__.py +0 -3
- taichi/_lib/c_api/bin/taichi_c_api.dll +0 -0
- taichi/_lib/c_api/include/taichi/cpp/taichi.hpp +0 -1401
- taichi/_lib/c_api/include/taichi/taichi.h +0 -29
- taichi/_lib/c_api/include/taichi/taichi_core.h +0 -1111
- taichi/_lib/c_api/include/taichi/taichi_cpu.h +0 -29
- taichi/_lib/c_api/include/taichi/taichi_cuda.h +0 -36
- taichi/_lib/c_api/include/taichi/taichi_platform.h +0 -55
- taichi/_lib/c_api/include/taichi/taichi_unity.h +0 -64
- taichi/_lib/c_api/include/taichi/taichi_vulkan.h +0 -151
- taichi/_lib/c_api/lib/taichi_c_api.lib +0 -0
- taichi/_lib/c_api/runtime/runtime_cuda.bc +0 -0
- taichi/_lib/c_api/runtime/runtime_x64.bc +0 -0
- taichi/_lib/c_api/taichi/lib/cmake/taichi/TaichiConfig.cmake +0 -29
- taichi/_lib/c_api/taichi/lib/cmake/taichi/TaichiConfigVersion.cmake +0 -65
- taichi/_lib/c_api/taichi/lib/cmake/taichi/TaichiTargets.cmake +0 -121
- taichi/_lib/runtime/slim_libdevice.10.bc +0 -0
- taichi/_snode/__init__.py +0 -5
- taichi/_ti_module/__init__.py +0 -3
- taichi/_ti_module/cppgen.py +0 -309
- taichi/_ti_module/module.py +0 -145
- taichi/_version.py +0 -1
- taichi/ad/__init__.py +0 -3
- taichi/aot/__init__.py +0 -12
- taichi/aot/_export.py +0 -28
- taichi/aot/conventions/__init__.py +0 -3
- taichi/aot/conventions/gfxruntime140/__init__.py +0 -38
- taichi/aot/conventions/gfxruntime140/dr.py +0 -244
- taichi/aot/conventions/gfxruntime140/sr.py +0 -613
- taichi/aot/module.py +0 -253
- taichi/aot/utils.py +0 -151
- taichi/graph/__init__.py +0 -3
- taichi/graph/_graph.py +0 -292
- taichi/lang/__init__.py +0 -50
- taichi/lang/ast/__init__.py +0 -5
- taichi/lang/ast/transform.py +0 -9
- taichi/lang/exception.py +0 -80
- taichi/linalg/__init__.py +0 -8
- taichi/profiler/__init__.py +0 -6
- taichi/shaders/Circles_vk.frag +0 -29
- taichi/shaders/Circles_vk.vert +0 -45
- taichi/shaders/Circles_vk_frag.spv +0 -0
- taichi/shaders/Circles_vk_vert.spv +0 -0
- taichi/shaders/Lines_vk.frag +0 -9
- taichi/shaders/Lines_vk.vert +0 -11
- taichi/shaders/Lines_vk_frag.spv +0 -0
- taichi/shaders/Lines_vk_vert.spv +0 -0
- taichi/shaders/Mesh_vk.frag +0 -71
- taichi/shaders/Mesh_vk.vert +0 -68
- taichi/shaders/Mesh_vk_frag.spv +0 -0
- taichi/shaders/Mesh_vk_vert.spv +0 -0
- taichi/shaders/Particles_vk.frag +0 -95
- taichi/shaders/Particles_vk.vert +0 -73
- taichi/shaders/Particles_vk_frag.spv +0 -0
- taichi/shaders/Particles_vk_vert.spv +0 -0
- taichi/shaders/SceneLines2quad_vk_comp.spv +0 -0
- taichi/shaders/SceneLines_vk.frag +0 -9
- taichi/shaders/SceneLines_vk.vert +0 -12
- taichi/shaders/SceneLines_vk_frag.spv +0 -0
- taichi/shaders/SceneLines_vk_vert.spv +0 -0
- taichi/shaders/SetImage_vk.frag +0 -21
- taichi/shaders/SetImage_vk.vert +0 -15
- taichi/shaders/SetImage_vk_frag.spv +0 -0
- taichi/shaders/SetImage_vk_vert.spv +0 -0
- taichi/shaders/Triangles_vk.frag +0 -16
- taichi/shaders/Triangles_vk.vert +0 -29
- taichi/shaders/Triangles_vk_frag.spv +0 -0
- taichi/shaders/Triangles_vk_vert.spv +0 -0
- taichi/shaders/lines2quad_vk_comp.spv +0 -0
- taichi/types/__init__.py +0 -19
- {taichi → gstaichi}/__main__.py +0 -0
- {taichi → gstaichi}/_lib/core/__init__.py +0 -0
- {taichi → gstaichi}/_lib/core/py.typed +0 -0
- {taichi/_lib/c_api → gstaichi/_lib}/runtime/slim_libdevice.10.bc +0 -0
- {taichi → gstaichi}/algorithms/__init__.py +0 -0
- {taichi → gstaichi}/assets/.git +0 -0
- {taichi → gstaichi}/assets/Go-Regular.ttf +0 -0
- {taichi → gstaichi}/assets/static/imgs/ti_gallery.png +0 -0
- {taichi → gstaichi}/lang/ast/symbol_resolver.py +0 -0
- {taichi → gstaichi}/sparse/__init__.py +0 -0
- {taichi → gstaichi}/tools/np2ply.py +0 -0
- {taichi → gstaichi}/tools/vtk.py +0 -0
- {gstaichi-0.1.21.dev0.data → gstaichi-0.1.25.dev0.data}/data/SPIRV-Tools/cmake/SPIRV-ToolsConfig.cmake +0 -0
- {gstaichi-0.1.21.dev0.data → gstaichi-0.1.25.dev0.data}/data/SPIRV-Tools/cmake/SPIRV-ToolsTarget-release.cmake +0 -0
- {gstaichi-0.1.21.dev0.data → gstaichi-0.1.25.dev0.data}/data/SPIRV-Tools/cmake/SPIRV-ToolsTarget.cmake +0 -0
- {gstaichi-0.1.21.dev0.data → gstaichi-0.1.25.dev0.data}/data/SPIRV-Tools-diff/cmake/SPIRV-Tools-diffConfig.cmake +0 -0
- {gstaichi-0.1.21.dev0.data → gstaichi-0.1.25.dev0.data}/data/SPIRV-Tools-diff/cmake/SPIRV-Tools-diffTargets-release.cmake +0 -0
- {gstaichi-0.1.21.dev0.data → gstaichi-0.1.25.dev0.data}/data/SPIRV-Tools-diff/cmake/SPIRV-Tools-diffTargets.cmake +0 -0
- {gstaichi-0.1.21.dev0.data → gstaichi-0.1.25.dev0.data}/data/SPIRV-Tools-link/cmake/SPIRV-Tools-linkConfig.cmake +0 -0
- {gstaichi-0.1.21.dev0.data → gstaichi-0.1.25.dev0.data}/data/SPIRV-Tools-link/cmake/SPIRV-Tools-linkTargets-release.cmake +0 -0
- {gstaichi-0.1.21.dev0.data → gstaichi-0.1.25.dev0.data}/data/SPIRV-Tools-link/cmake/SPIRV-Tools-linkTargets.cmake +0 -0
- {gstaichi-0.1.21.dev0.data → gstaichi-0.1.25.dev0.data}/data/SPIRV-Tools-lint/cmake/SPIRV-Tools-lintConfig.cmake +0 -0
- {gstaichi-0.1.21.dev0.data → gstaichi-0.1.25.dev0.data}/data/SPIRV-Tools-lint/cmake/SPIRV-Tools-lintTargets-release.cmake +0 -0
- {gstaichi-0.1.21.dev0.data → gstaichi-0.1.25.dev0.data}/data/SPIRV-Tools-lint/cmake/SPIRV-Tools-lintTargets.cmake +0 -0
- {gstaichi-0.1.21.dev0.data → gstaichi-0.1.25.dev0.data}/data/SPIRV-Tools-opt/cmake/SPIRV-Tools-optConfig.cmake +0 -0
- {gstaichi-0.1.21.dev0.data → gstaichi-0.1.25.dev0.data}/data/SPIRV-Tools-opt/cmake/SPIRV-Tools-optTargets-release.cmake +0 -0
- {gstaichi-0.1.21.dev0.data → gstaichi-0.1.25.dev0.data}/data/SPIRV-Tools-opt/cmake/SPIRV-Tools-optTargets.cmake +0 -0
- {gstaichi-0.1.21.dev0.data → gstaichi-0.1.25.dev0.data}/data/SPIRV-Tools-reduce/cmake/SPIRV-Tools-reduceConfig.cmake +0 -0
- {gstaichi-0.1.21.dev0.data → gstaichi-0.1.25.dev0.data}/data/SPIRV-Tools-reduce/cmake/SPIRV-Tools-reduceTarget-release.cmake +0 -0
- {gstaichi-0.1.21.dev0.data → gstaichi-0.1.25.dev0.data}/data/SPIRV-Tools-reduce/cmake/SPIRV-Tools-reduceTarget.cmake +0 -0
- {gstaichi-0.1.21.dev0.data → gstaichi-0.1.25.dev0.data}/data/include/spirv-tools/instrument.hpp +0 -0
- {gstaichi-0.1.21.dev0.data → gstaichi-0.1.25.dev0.data}/data/include/spirv-tools/libspirv.h +0 -0
- {gstaichi-0.1.21.dev0.data → gstaichi-0.1.25.dev0.data}/data/include/spirv-tools/libspirv.hpp +0 -0
- {gstaichi-0.1.21.dev0.data → gstaichi-0.1.25.dev0.data}/data/include/spirv-tools/linker.hpp +0 -0
- {gstaichi-0.1.21.dev0.data → gstaichi-0.1.25.dev0.data}/data/include/spirv-tools/optimizer.hpp +0 -0
- {gstaichi-0.1.21.dev0.dist-info → gstaichi-0.1.25.dev0.dist-info}/WHEEL +0 -0
- {gstaichi-0.1.21.dev0.dist-info → gstaichi-0.1.25.dev0.dist-info}/licenses/LICENSE +0 -0
@@ -1,10 +1,10 @@
|
|
1
1
|
"""
|
2
|
-
|
2
|
+
gstaichi_python
|
3
3
|
"""
|
4
4
|
from __future__ import annotations
|
5
5
|
import numpy
|
6
6
|
import typing
|
7
|
-
__all__ = ['ADJOINT', 'ADJOINT_CHECKBIT', 'AOS', 'ASTBuilder', '
|
7
|
+
__all__ = ['ADJOINT', 'ADJOINT_CHECKBIT', 'AOS', 'ASTBuilder', 'Arch', 'ArgPackCxx', 'AutodiffMode', 'Axis', 'Benchmark', 'BinaryOpType', 'BitStructType', 'BitStructTypeBuilder', 'BoundaryMode', 'CC', 'CE', 'CF', 'CGd', 'CGf', 'CLAMP', 'CUCG', 'CV', 'Cell', 'CompileConfig', 'CompiledKernelData', 'Config', 'ConvType', 'CuSparseMatrix', 'CuSparseSolver', 'DUAL', 'DataTypeCxx', 'DataType_f16', 'DataType_f32', 'DataType_f64', 'DataType_gen', 'DataType_i16', 'DataType_i32', 'DataType_i64', 'DataType_i8', 'DataType_u1', 'DataType_u16', 'DataType_u32', 'DataType_u64', 'DataType_u8', 'DataType_unknown', 'DebugInfo', 'DeviceAllocation', 'DeviceCapabilityConfig', 'EC', 'EE', 'EF', 'EV', 'Edge', 'EigenSparseSolverfloat32LDLTAMD', 'EigenSparseSolverfloat32LDLTCOLAMD', 'EigenSparseSolverfloat32LLTAMD', 'EigenSparseSolverfloat32LLTCOLAMD', 'EigenSparseSolverfloat32LUAMD', 'EigenSparseSolverfloat32LUCOLAMD', 'EigenSparseSolverfloat64LDLTAMD', 'EigenSparseSolverfloat64LDLTCOLAMD', 'EigenSparseSolverfloat64LLTAMD', 'EigenSparseSolverfloat64LLTCOLAMD', 'EigenSparseSolverfloat64LUAMD', 'EigenSparseSolverfloat64LUCOLAMD', 'ExprCxx', 'ExprGroup', 'Extension', 'FC', 'FE', 'FF', 'FORWARD', 'FV', 'Face', 'Format', 'Function', 'FunctionKey', 'GsTaichiAssertionError', 'GsTaichiIndexError', 'GsTaichiRuntimeError', 'GsTaichiSyntaxError', 'GsTaichiTypeError', 'HackedSignalRegister', 'InternalOp', 'KernelCxx', 'KernelLaunchContext', 'KernelProfileTracedRecord', 'KernelProfilerQueryResult', 'Layout', 'Mesh', 'MeshElementType', 'MeshPtr', 'MeshRelationType', 'MeshTopology', 'NONE', 'NULL', 'NdarrayCxx', 'Operation', 'PRIMAL', 'Program', 'REVERSE', 'SNodeAccessFlag', 'SNodeCxx', 'SNodeGradType', 'SNodeRegistry', 'SNodeTreeCxx', 'SNodeType', 'SOA', 'SparseMatrix', 'SparseMatrixBuilder', 'SparseSolver', 'Stmt', 'Task', 'Tetrahedron', 'TextureCxx', 'TextureOpType', 'Triangle', 'Type', 'TypeFactory', 'UNSAFE', 'UnaryOpType', 'VALIDATION', 'VC', 'VE', 'VF', 'VV', 'Vector2d', 'Vector2f', 'Vector2i', 'Vector3d', 'Vector3f', 'Vector3i', 'Vector4d', 'Vector4f', 'Vector4i', 'Vertex', 'abs', 'acos', 'add', 'adstack', 'amdgpu', 'arch_from_name', 'arch_name', 'arch_uses_llvm', 'arm64', 'asin', 'assertion', 'atan2', 'bit_and', 'bit_not', 'bit_or', 'bit_sar', 'bit_shl', 'bit_shr', 'bit_struct', 'bit_xor', 'bitmasked', 'bits_cast', 'block_local', 'bls', 'cast_bits', 'cast_value', 'ceil', 'clean_offline_cache_files', 'clear_profile_info', 'clz', 'cmp_eq', 'cmp_ge', 'cmp_gt', 'cmp_le', 'cmp_lt', 'cmp_ne', 'cos', 'create_benchmark', 'create_initialized_benchmark', 'create_initialized_task', 'create_mesh', 'create_task', 'critical', 'cuda', 'cuda_version', 'dColMajor_EigenSparseMatrix', 'dRowMajor_EigenSparseMatrix', 'data64', 'data_type_name', 'data_type_size', 'debug', 'default_compile_config', 'dense', 'div', 'dynamic', 'element_order', 'element_type_name', 'error', 'exp', 'expr_abs', 'expr_acos', 'expr_add', 'expr_asin', 'expr_assume_in_range', 'expr_atan2', 'expr_atomic_add', 'expr_atomic_bit_and', 'expr_atomic_bit_or', 'expr_atomic_bit_xor', 'expr_atomic_max', 'expr_atomic_min', 'expr_atomic_mul', 'expr_atomic_sub', 'expr_bit_and', 'expr_bit_not', 'expr_bit_or', 'expr_bit_sar', 'expr_bit_shl', 'expr_bit_shr', 'expr_bit_xor', 'expr_ceil', 'expr_clz', 'expr_cmp_eq', 'expr_cmp_ge', 'expr_cmp_gt', 'expr_cmp_le', 'expr_cmp_lt', 'expr_cmp_ne', 'expr_cos', 'expr_div', 'expr_exp', 'expr_field', 'expr_floor', 'expr_floordiv', 'expr_frexp', 'expr_ifte', 'expr_inv', 'expr_log', 'expr_logic_not', 'expr_logical_and', 'expr_logical_or', 'expr_loop_unique', 'expr_matrix_field', 'expr_max', 'expr_min', 'expr_mod', 'expr_mul', 'expr_neg', 'expr_popcnt', 'expr_pow', 'expr_rcp', 'expr_round', 'expr_rsqrt', 'expr_select', 'expr_sin', 'expr_sqrt', 'expr_sub', 'expr_tan', 'expr_tanh', 'expr_truediv', 'extfunc', 'fColMajor_EigenSparseMatrix', 'fRowMajor_EigenSparseMatrix', 'finalize_snode_tree', 'floor', 'floordiv', 'flush_log', 'frexp', 'from_end_element_order', 'g2r', 'get_commit_hash', 'get_default_float_size', 'get_external_tensor_dim', 'get_external_tensor_element_dim', 'get_external_tensor_element_shape', 'get_external_tensor_element_type', 'get_external_tensor_needs_grad', 'get_external_tensor_real_func_args', 'get_external_tensor_shape_along_axis', 'get_llvm_target_support', 'get_max_num_indices', 'get_num_elements', 'get_python_package_dir', 'get_relation_access', 'get_relation_size', 'get_repo_dir', 'get_type_factory_instance', 'get_version_major', 'get_version_minor', 'get_version_patch', 'get_version_string', 'hash', 'host_arch', 'info', 'insert_internal_func_call', 'inv', 'inverse_relation', 'is_extension_supported', 'is_integral', 'is_quant', 'is_real', 'is_signed', 'is_tensor', 'is_unsigned', 'js', 'kFetchTexel', 'kLoad', 'kSampleLod', 'kStore', 'kUndefined', 'l2g', 'l2r', 'libdevice_path', 'log', 'logging_effective', 'logic_not', 'make_arg_load_expr', 'make_binary_op_expr', 'make_const_expr_bool', 'make_const_expr_fp', 'make_const_expr_int', 'make_cucg_solver', 'make_cusparse_solver', 'make_double_cg_solver', 'make_external_tensor_expr', 'make_external_tensor_grad_expr', 'make_float_cg_solver', 'make_frontend_assign_stmt', 'make_get_element_expr', 'make_global_load_stmt', 'make_global_store_stmt', 'make_rand_expr', 'make_reference', 'make_rw_texture_ptr_expr', 'make_sparse_solver', 'make_texture_ptr_expr', 'make_unary_op_expr', 'max', 'mesh', 'mesh_local', 'metal', 'min', 'mod', 'mul', 'neg', 'opencl', 'place', 'pointer', 'pop_python_print_buffer', 'popcnt', 'pow', 'print_all_units', 'print_profile_info', 'promoted_type', 'quant', 'quant_array', 'quant_basic', 'query_int64', 'rcp', 'read_only', 'relation_by_orders', 'reset_default_compile_config', 'root', 'round', 'rsqrt', 'set_core_state_python_imported', 'set_core_trigger_gdb_when_crash', 'set_index_mapping', 'set_lib_dir', 'set_logging_level', 'set_logging_level_default', 'set_num_elements', 'set_num_patches', 'set_owned_offset', 'set_patch_max_element_num', 'set_python_package_dir', 'set_relation_dynamic', 'set_relation_fixed', 'set_tmp_dir', 'set_total_offset', 'sgn', 'sin', 'sparse', 'sqrt', 'start_memory_monitoring', 'sub', 'subscript_with_multiple_indices', 'tan', 'tanh', 'test_cpp_exception', 'test_logging', 'test_printf', 'test_raise_error', 'test_threading', 'test_throw', 'to_end_element_order', 'toggle_python_print_buffer', 'trace', 'trigger_crash', 'trigger_sig_fpe', 'truediv', 'undefined', 'value_cast', 'vulkan', 'wait_for_debugger', 'warn', 'with_amdgpu', 'with_cuda', 'with_metal', 'with_vulkan', 'x64']
|
8
8
|
class ASTBuilder:
|
9
9
|
def begin_frontend_if(self, arg0: ..., arg1: DebugInfo) -> None:
|
10
10
|
...
|
@@ -46,7 +46,7 @@ class ASTBuilder:
|
|
46
46
|
...
|
47
47
|
def expr_alloca(self, arg0: DebugInfo) -> ...:
|
48
48
|
...
|
49
|
-
def expr_alloca_shared_array(self, arg0:
|
49
|
+
def expr_alloca_shared_array(self, arg0: tuple[int, ...], arg1: DataTypeCxx, arg2: DebugInfo) -> ...:
|
50
50
|
...
|
51
51
|
def expr_assign(self, arg0: ..., arg1: ..., arg2: DebugInfo) -> None:
|
52
52
|
...
|
@@ -84,7 +84,7 @@ class ASTBuilder:
|
|
84
84
|
...
|
85
85
|
def make_id_expr(self, arg0: str) -> ...:
|
86
86
|
...
|
87
|
-
def make_matrix_expr(self, arg0:
|
87
|
+
def make_matrix_expr(self, arg0: tuple[int, ...], arg1: DataTypeCxx, arg2: list[...], arg3: DebugInfo) -> ...:
|
88
88
|
...
|
89
89
|
def make_texture_op_expr(self, arg0: ..., arg1: ..., arg2: ..., arg3: DebugInfo) -> ...:
|
90
90
|
...
|
@@ -104,17 +104,6 @@ class ASTBuilder:
|
|
104
104
|
...
|
105
105
|
def strictly_serialize(self) -> None:
|
106
106
|
...
|
107
|
-
class AotModuleBuilder:
|
108
|
-
def add(self, arg0: str, arg1: ...) -> None:
|
109
|
-
...
|
110
|
-
def add_field(self, arg0: str, arg1: ..., arg2: bool, arg3: DataType, arg4: list[int], arg5: int, arg6: int) -> None:
|
111
|
-
...
|
112
|
-
def add_graph(self, arg0: str, arg1: ...) -> None:
|
113
|
-
...
|
114
|
-
def add_kernel_template(self, arg0: str, arg1: str, arg2: ...) -> None:
|
115
|
-
...
|
116
|
-
def dump(self, arg0: str, arg1: str) -> None:
|
117
|
-
...
|
118
107
|
class Arch:
|
119
108
|
"""
|
120
109
|
Members:
|
@@ -129,32 +118,20 @@ class Arch:
|
|
129
118
|
|
130
119
|
metal
|
131
120
|
|
132
|
-
opengl
|
133
|
-
|
134
|
-
dx11
|
135
|
-
|
136
|
-
dx12
|
137
|
-
|
138
121
|
opencl
|
139
122
|
|
140
123
|
amdgpu
|
141
124
|
|
142
125
|
vulkan
|
143
|
-
|
144
|
-
gles
|
145
126
|
"""
|
146
|
-
__members__: typing.ClassVar[dict[str, Arch]] # value = {'x64': <Arch.x64: 0>, 'arm64': <Arch.arm64: 1>, 'js': <Arch.js: 2>, 'cuda': <Arch.cuda: 3>, 'metal': <Arch.metal: 4>, '
|
147
|
-
amdgpu: typing.ClassVar[Arch] # value = <Arch.amdgpu:
|
127
|
+
__members__: typing.ClassVar[dict[str, Arch]] # value = {'x64': <Arch.x64: 0>, 'arm64': <Arch.arm64: 1>, 'js': <Arch.js: 2>, 'cuda': <Arch.cuda: 3>, 'metal': <Arch.metal: 4>, 'opencl': <Arch.opencl: 5>, 'amdgpu': <Arch.amdgpu: 6>, 'vulkan': <Arch.vulkan: 7>}
|
128
|
+
amdgpu: typing.ClassVar[Arch] # value = <Arch.amdgpu: 6>
|
148
129
|
arm64: typing.ClassVar[Arch] # value = <Arch.arm64: 1>
|
149
130
|
cuda: typing.ClassVar[Arch] # value = <Arch.cuda: 3>
|
150
|
-
dx11: typing.ClassVar[Arch] # value = <Arch.dx11: 6>
|
151
|
-
dx12: typing.ClassVar[Arch] # value = <Arch.dx12: 7>
|
152
|
-
gles: typing.ClassVar[Arch] # value = <Arch.gles: 11>
|
153
131
|
js: typing.ClassVar[Arch] # value = <Arch.js: 2>
|
154
132
|
metal: typing.ClassVar[Arch] # value = <Arch.metal: 4>
|
155
|
-
opencl: typing.ClassVar[Arch] # value = <Arch.opencl:
|
156
|
-
|
157
|
-
vulkan: typing.ClassVar[Arch] # value = <Arch.vulkan: 10>
|
133
|
+
opencl: typing.ClassVar[Arch] # value = <Arch.opencl: 5>
|
134
|
+
vulkan: typing.ClassVar[Arch] # value = <Arch.vulkan: 7>
|
158
135
|
x64: typing.ClassVar[Arch] # value = <Arch.x64: 0>
|
159
136
|
def __eq__(self, other: typing.Any) -> bool:
|
160
137
|
...
|
@@ -190,80 +167,8 @@ class Arch:
|
|
190
167
|
@property
|
191
168
|
def value(self) -> int:
|
192
169
|
...
|
193
|
-
class
|
194
|
-
|
195
|
-
def __init__(self, tag: ArgKind, name: str, dtype: DataType, field_dim: int, element_shape: list[int]) -> None:
|
196
|
-
...
|
197
|
-
@typing.overload
|
198
|
-
def __init__(self, tag: ArgKind, name: str, channel_format: DataType, num_channels: int, shape: list[int]) -> None:
|
199
|
-
...
|
200
|
-
def channel_format(self) -> DataType:
|
201
|
-
...
|
202
|
-
def dtype(self) -> DataType:
|
203
|
-
...
|
204
|
-
@property
|
205
|
-
def element_shape(self) -> list[int]:
|
206
|
-
...
|
207
|
-
@property
|
208
|
-
def field_dim(self) -> int:
|
209
|
-
...
|
210
|
-
@property
|
211
|
-
def name(self) -> str:
|
212
|
-
...
|
213
|
-
@property
|
214
|
-
def num_channels(self) -> int:
|
215
|
-
...
|
216
|
-
@property
|
217
|
-
def texture_shape(self) -> list[int]:
|
218
|
-
...
|
219
|
-
class ArgKind:
|
220
|
-
"""
|
221
|
-
Members:
|
222
|
-
|
223
|
-
SCALAR
|
224
|
-
|
225
|
-
NDARRAY
|
226
|
-
|
227
|
-
MATRIX
|
228
|
-
|
229
|
-
TEXTURE
|
230
|
-
|
231
|
-
RWTEXTURE
|
232
|
-
"""
|
233
|
-
MATRIX: typing.ClassVar[ArgKind] # value = <ArgKind.MATRIX: 1>
|
234
|
-
NDARRAY: typing.ClassVar[ArgKind] # value = <ArgKind.NDARRAY: 2>
|
235
|
-
RWTEXTURE: typing.ClassVar[ArgKind] # value = <ArgKind.RWTEXTURE: 4>
|
236
|
-
SCALAR: typing.ClassVar[ArgKind] # value = <ArgKind.SCALAR: 0>
|
237
|
-
TEXTURE: typing.ClassVar[ArgKind] # value = <ArgKind.TEXTURE: 3>
|
238
|
-
__members__: typing.ClassVar[dict[str, ArgKind]] # value = {'SCALAR': <ArgKind.SCALAR: 0>, 'NDARRAY': <ArgKind.NDARRAY: 2>, 'MATRIX': <ArgKind.MATRIX: 1>, 'TEXTURE': <ArgKind.TEXTURE: 3>, 'RWTEXTURE': <ArgKind.RWTEXTURE: 4>}
|
239
|
-
def __eq__(self, other: typing.Any) -> bool:
|
240
|
-
...
|
241
|
-
def __getstate__(self) -> int:
|
242
|
-
...
|
243
|
-
def __hash__(self) -> int:
|
244
|
-
...
|
245
|
-
def __index__(self) -> int:
|
246
|
-
...
|
247
|
-
def __init__(self, value: int) -> None:
|
248
|
-
...
|
249
|
-
def __int__(self) -> int:
|
250
|
-
...
|
251
|
-
def __ne__(self, other: typing.Any) -> bool:
|
252
|
-
...
|
253
|
-
def __repr__(self) -> str:
|
254
|
-
...
|
255
|
-
def __setstate__(self, state: int) -> None:
|
256
|
-
...
|
257
|
-
def __str__(self) -> str:
|
258
|
-
...
|
259
|
-
@property
|
260
|
-
def name(self) -> str:
|
261
|
-
...
|
262
|
-
@property
|
263
|
-
def value(self) -> int:
|
264
|
-
...
|
265
|
-
class ArgPack:
|
266
|
-
def data_type(self) -> DataType:
|
170
|
+
class ArgPackCxx:
|
171
|
+
def data_type(self) -> DataTypeCxx:
|
267
172
|
...
|
268
173
|
def device_allocation(self) -> DeviceAllocation:
|
269
174
|
...
|
@@ -271,16 +176,16 @@ class ArgPack:
|
|
271
176
|
...
|
272
177
|
def nelement(self) -> int:
|
273
178
|
...
|
274
|
-
def set_arg_float(self, arg0:
|
179
|
+
def set_arg_float(self, arg0: tuple[int, ...], arg1: float) -> None:
|
275
180
|
...
|
276
|
-
def set_arg_int(self, arg0:
|
181
|
+
def set_arg_int(self, arg0: tuple[int, ...], arg1: int) -> None:
|
277
182
|
...
|
278
|
-
def set_arg_nested_argpack(self, arg0: int, arg1:
|
183
|
+
def set_arg_nested_argpack(self, arg0: int, arg1: ArgPackCxx) -> None:
|
279
184
|
...
|
280
|
-
def set_arg_uint(self, arg0:
|
185
|
+
def set_arg_uint(self, arg0: tuple[int, ...], arg1: int) -> None:
|
281
186
|
...
|
282
187
|
@property
|
283
|
-
def dtype(self) ->
|
188
|
+
def dtype(self) -> DataTypeCxx:
|
284
189
|
...
|
285
190
|
class AutodiffMode:
|
286
191
|
"""
|
@@ -521,11 +426,11 @@ class CGd:
|
|
521
426
|
...
|
522
427
|
def set_b(self, arg0: numpy.ndarray[numpy.float64[m, 1]]) -> None:
|
523
428
|
...
|
524
|
-
def set_b_ndarray(self, arg0: Program, arg1:
|
429
|
+
def set_b_ndarray(self, arg0: Program, arg1: NdarrayCxx) -> None:
|
525
430
|
...
|
526
431
|
def set_x(self, arg0: numpy.ndarray[numpy.float64[m, 1]]) -> None:
|
527
432
|
...
|
528
|
-
def set_x_ndarray(self, arg0: Program, arg1:
|
433
|
+
def set_x_ndarray(self, arg0: Program, arg1: NdarrayCxx) -> None:
|
529
434
|
...
|
530
435
|
def solve(self) -> None:
|
531
436
|
...
|
@@ -538,21 +443,20 @@ class CGf:
|
|
538
443
|
...
|
539
444
|
def set_b(self, arg0: numpy.ndarray[numpy.float32[m, 1]]) -> None:
|
540
445
|
...
|
541
|
-
def set_b_ndarray(self, arg0: Program, arg1:
|
446
|
+
def set_b_ndarray(self, arg0: Program, arg1: NdarrayCxx) -> None:
|
542
447
|
...
|
543
448
|
def set_x(self, arg0: numpy.ndarray[numpy.float32[m, 1]]) -> None:
|
544
449
|
...
|
545
|
-
def set_x_ndarray(self, arg0: Program, arg1:
|
450
|
+
def set_x_ndarray(self, arg0: Program, arg1: NdarrayCxx) -> None:
|
546
451
|
...
|
547
452
|
def solve(self) -> None:
|
548
453
|
...
|
549
454
|
class CUCG:
|
550
|
-
def solve(self, arg0: Program, arg1:
|
455
|
+
def solve(self, arg0: Program, arg1: NdarrayCxx, arg2: NdarrayCxx) -> None:
|
551
456
|
...
|
552
457
|
class CompileConfig:
|
553
458
|
ad_stack_size: int
|
554
459
|
advanced_optimization: bool
|
555
|
-
allow_nv_shader_extension: bool
|
556
460
|
arch: Arch
|
557
461
|
auto_mesh_local_default_occupacy: int
|
558
462
|
cache_loop_invariant_global_vars: bool
|
@@ -563,10 +467,10 @@ class CompileConfig:
|
|
563
467
|
cuda_stack_limit: int
|
564
468
|
debug: bool
|
565
469
|
default_cpu_block_dim: int
|
566
|
-
default_fp:
|
470
|
+
default_fp: DataTypeCxx
|
567
471
|
default_gpu_block_dim: int
|
568
|
-
default_ip:
|
569
|
-
default_up:
|
472
|
+
default_ip: DataTypeCxx
|
473
|
+
default_up: DataTypeCxx
|
570
474
|
demote_dense_struct_fors: bool
|
571
475
|
demote_no_access_mesh_fors: bool
|
572
476
|
detect_read_only: bool
|
@@ -620,9 +524,6 @@ class CompileConfig:
|
|
620
524
|
vk_api_version: str
|
621
525
|
def __init__(self) -> None:
|
622
526
|
...
|
623
|
-
class CompiledGraph:
|
624
|
-
def jit_run(self, arg0: CompileConfig, arg1: dict) -> None:
|
625
|
-
...
|
626
527
|
class CompiledKernelData:
|
627
528
|
pass
|
628
529
|
class Config:
|
@@ -679,7 +580,7 @@ class CuSparseMatrix(SparseMatrix):
|
|
679
580
|
def __add__(self, arg0: CuSparseMatrix) -> SparseMatrix:
|
680
581
|
...
|
681
582
|
@typing.overload
|
682
|
-
def __init__(self, arg0: int, arg1: int, arg2:
|
583
|
+
def __init__(self, arg0: int, arg1: int, arg2: DataTypeCxx) -> None:
|
683
584
|
...
|
684
585
|
@typing.overload
|
685
586
|
def __init__(self, arg0: CuSparseMatrix) -> None:
|
@@ -694,7 +595,7 @@ class CuSparseMatrix(SparseMatrix):
|
|
694
595
|
...
|
695
596
|
def matmul(self, arg0: CuSparseMatrix) -> SparseMatrix:
|
696
597
|
...
|
697
|
-
def spmv(self, arg0: Program, arg1:
|
598
|
+
def spmv(self, arg0: Program, arg1: NdarrayCxx, arg2: NdarrayCxx) -> None:
|
698
599
|
...
|
699
600
|
def to_string(self) -> str:
|
700
601
|
...
|
@@ -709,12 +610,12 @@ class CuSparseSolver(SparseSolver):
|
|
709
610
|
...
|
710
611
|
def info(self) -> bool:
|
711
612
|
...
|
712
|
-
def solve_rf(self, arg0: Program, arg1: SparseMatrix, arg2:
|
613
|
+
def solve_rf(self, arg0: Program, arg1: SparseMatrix, arg2: NdarrayCxx, arg3: NdarrayCxx) -> None:
|
713
614
|
...
|
714
|
-
class
|
615
|
+
class DataTypeCxx:
|
715
616
|
def __call__(self, *args, **kwargs) -> None:
|
716
617
|
...
|
717
|
-
def __eq__(self, arg0:
|
618
|
+
def __eq__(self, arg0: DataTypeCxx) -> bool:
|
718
619
|
...
|
719
620
|
def __getstate__(self) -> tuple:
|
720
621
|
...
|
@@ -726,13 +627,13 @@ class DataType:
|
|
726
627
|
...
|
727
628
|
def __str__(self) -> str:
|
728
629
|
...
|
729
|
-
def element_type(self) ->
|
630
|
+
def element_type(self) -> DataTypeCxx:
|
730
631
|
...
|
731
632
|
def get_ptr(self) -> ...:
|
732
633
|
...
|
733
|
-
def ptr_removed(self) ->
|
634
|
+
def ptr_removed(self) -> DataTypeCxx:
|
734
635
|
...
|
735
|
-
def shape(self) ->
|
636
|
+
def shape(self) -> tuple[int, ...]:
|
736
637
|
...
|
737
638
|
def to_string(self) -> str:
|
738
639
|
...
|
@@ -770,7 +671,7 @@ class EigenSparseSolverfloat32LDLTAMD(SparseSolver):
|
|
770
671
|
...
|
771
672
|
def solve(self, arg0: numpy.ndarray[numpy.float32[m, 1]]) -> numpy.ndarray[numpy.float32[m, 1]]:
|
772
673
|
...
|
773
|
-
def solve_rf(self, arg0: Program, arg1: SparseMatrix, arg2:
|
674
|
+
def solve_rf(self, arg0: Program, arg1: SparseMatrix, arg2: NdarrayCxx, arg3: NdarrayCxx) -> None:
|
774
675
|
...
|
775
676
|
class EigenSparseSolverfloat32LDLTCOLAMD(SparseSolver):
|
776
677
|
def analyze_pattern(self, arg0: SparseMatrix) -> None:
|
@@ -783,7 +684,7 @@ class EigenSparseSolverfloat32LDLTCOLAMD(SparseSolver):
|
|
783
684
|
...
|
784
685
|
def solve(self, arg0: numpy.ndarray[numpy.float32[m, 1]]) -> numpy.ndarray[numpy.float32[m, 1]]:
|
785
686
|
...
|
786
|
-
def solve_rf(self, arg0: Program, arg1: SparseMatrix, arg2:
|
687
|
+
def solve_rf(self, arg0: Program, arg1: SparseMatrix, arg2: NdarrayCxx, arg3: NdarrayCxx) -> None:
|
787
688
|
...
|
788
689
|
class EigenSparseSolverfloat32LLTAMD(SparseSolver):
|
789
690
|
def analyze_pattern(self, arg0: SparseMatrix) -> None:
|
@@ -796,7 +697,7 @@ class EigenSparseSolverfloat32LLTAMD(SparseSolver):
|
|
796
697
|
...
|
797
698
|
def solve(self, arg0: numpy.ndarray[numpy.float32[m, 1]]) -> numpy.ndarray[numpy.float32[m, 1]]:
|
798
699
|
...
|
799
|
-
def solve_rf(self, arg0: Program, arg1: SparseMatrix, arg2:
|
700
|
+
def solve_rf(self, arg0: Program, arg1: SparseMatrix, arg2: NdarrayCxx, arg3: NdarrayCxx) -> None:
|
800
701
|
...
|
801
702
|
class EigenSparseSolverfloat32LLTCOLAMD(SparseSolver):
|
802
703
|
def analyze_pattern(self, arg0: SparseMatrix) -> None:
|
@@ -809,7 +710,7 @@ class EigenSparseSolverfloat32LLTCOLAMD(SparseSolver):
|
|
809
710
|
...
|
810
711
|
def solve(self, arg0: numpy.ndarray[numpy.float32[m, 1]]) -> numpy.ndarray[numpy.float32[m, 1]]:
|
811
712
|
...
|
812
|
-
def solve_rf(self, arg0: Program, arg1: SparseMatrix, arg2:
|
713
|
+
def solve_rf(self, arg0: Program, arg1: SparseMatrix, arg2: NdarrayCxx, arg3: NdarrayCxx) -> None:
|
813
714
|
...
|
814
715
|
class EigenSparseSolverfloat32LUAMD(SparseSolver):
|
815
716
|
def analyze_pattern(self, arg0: SparseMatrix) -> None:
|
@@ -822,7 +723,7 @@ class EigenSparseSolverfloat32LUAMD(SparseSolver):
|
|
822
723
|
...
|
823
724
|
def solve(self, arg0: numpy.ndarray[numpy.float32[m, 1]]) -> numpy.ndarray[numpy.float32[m, 1]]:
|
824
725
|
...
|
825
|
-
def solve_rf(self, arg0: Program, arg1: SparseMatrix, arg2:
|
726
|
+
def solve_rf(self, arg0: Program, arg1: SparseMatrix, arg2: NdarrayCxx, arg3: NdarrayCxx) -> None:
|
826
727
|
...
|
827
728
|
class EigenSparseSolverfloat32LUCOLAMD(SparseSolver):
|
828
729
|
def analyze_pattern(self, arg0: SparseMatrix) -> None:
|
@@ -835,7 +736,7 @@ class EigenSparseSolverfloat32LUCOLAMD(SparseSolver):
|
|
835
736
|
...
|
836
737
|
def solve(self, arg0: numpy.ndarray[numpy.float32[m, 1]]) -> numpy.ndarray[numpy.float32[m, 1]]:
|
837
738
|
...
|
838
|
-
def solve_rf(self, arg0: Program, arg1: SparseMatrix, arg2:
|
739
|
+
def solve_rf(self, arg0: Program, arg1: SparseMatrix, arg2: NdarrayCxx, arg3: NdarrayCxx) -> None:
|
839
740
|
...
|
840
741
|
class EigenSparseSolverfloat64LDLTAMD(SparseSolver):
|
841
742
|
def analyze_pattern(self, arg0: SparseMatrix) -> None:
|
@@ -848,7 +749,7 @@ class EigenSparseSolverfloat64LDLTAMD(SparseSolver):
|
|
848
749
|
...
|
849
750
|
def solve(self, arg0: numpy.ndarray[numpy.float64[m, 1]]) -> numpy.ndarray[numpy.float64[m, 1]]:
|
850
751
|
...
|
851
|
-
def solve_rf(self, arg0: Program, arg1: SparseMatrix, arg2:
|
752
|
+
def solve_rf(self, arg0: Program, arg1: SparseMatrix, arg2: NdarrayCxx, arg3: NdarrayCxx) -> None:
|
852
753
|
...
|
853
754
|
class EigenSparseSolverfloat64LDLTCOLAMD(SparseSolver):
|
854
755
|
def analyze_pattern(self, arg0: SparseMatrix) -> None:
|
@@ -861,7 +762,7 @@ class EigenSparseSolverfloat64LDLTCOLAMD(SparseSolver):
|
|
861
762
|
...
|
862
763
|
def solve(self, arg0: numpy.ndarray[numpy.float64[m, 1]]) -> numpy.ndarray[numpy.float64[m, 1]]:
|
863
764
|
...
|
864
|
-
def solve_rf(self, arg0: Program, arg1: SparseMatrix, arg2:
|
765
|
+
def solve_rf(self, arg0: Program, arg1: SparseMatrix, arg2: NdarrayCxx, arg3: NdarrayCxx) -> None:
|
865
766
|
...
|
866
767
|
class EigenSparseSolverfloat64LLTAMD(SparseSolver):
|
867
768
|
def analyze_pattern(self, arg0: SparseMatrix) -> None:
|
@@ -874,7 +775,7 @@ class EigenSparseSolverfloat64LLTAMD(SparseSolver):
|
|
874
775
|
...
|
875
776
|
def solve(self, arg0: numpy.ndarray[numpy.float64[m, 1]]) -> numpy.ndarray[numpy.float64[m, 1]]:
|
876
777
|
...
|
877
|
-
def solve_rf(self, arg0: Program, arg1: SparseMatrix, arg2:
|
778
|
+
def solve_rf(self, arg0: Program, arg1: SparseMatrix, arg2: NdarrayCxx, arg3: NdarrayCxx) -> None:
|
878
779
|
...
|
879
780
|
class EigenSparseSolverfloat64LLTCOLAMD(SparseSolver):
|
880
781
|
def analyze_pattern(self, arg0: SparseMatrix) -> None:
|
@@ -887,7 +788,7 @@ class EigenSparseSolverfloat64LLTCOLAMD(SparseSolver):
|
|
887
788
|
...
|
888
789
|
def solve(self, arg0: numpy.ndarray[numpy.float64[m, 1]]) -> numpy.ndarray[numpy.float64[m, 1]]:
|
889
790
|
...
|
890
|
-
def solve_rf(self, arg0: Program, arg1: SparseMatrix, arg2:
|
791
|
+
def solve_rf(self, arg0: Program, arg1: SparseMatrix, arg2: NdarrayCxx, arg3: NdarrayCxx) -> None:
|
891
792
|
...
|
892
793
|
class EigenSparseSolverfloat64LUAMD(SparseSolver):
|
893
794
|
def analyze_pattern(self, arg0: SparseMatrix) -> None:
|
@@ -900,7 +801,7 @@ class EigenSparseSolverfloat64LUAMD(SparseSolver):
|
|
900
801
|
...
|
901
802
|
def solve(self, arg0: numpy.ndarray[numpy.float64[m, 1]]) -> numpy.ndarray[numpy.float64[m, 1]]:
|
902
803
|
...
|
903
|
-
def solve_rf(self, arg0: Program, arg1: SparseMatrix, arg2:
|
804
|
+
def solve_rf(self, arg0: Program, arg1: SparseMatrix, arg2: NdarrayCxx, arg3: NdarrayCxx) -> None:
|
904
805
|
...
|
905
806
|
class EigenSparseSolverfloat64LUCOLAMD(SparseSolver):
|
906
807
|
def analyze_pattern(self, arg0: SparseMatrix) -> None:
|
@@ -913,9 +814,9 @@ class EigenSparseSolverfloat64LUCOLAMD(SparseSolver):
|
|
913
814
|
...
|
914
815
|
def solve(self, arg0: numpy.ndarray[numpy.float64[m, 1]]) -> numpy.ndarray[numpy.float64[m, 1]]:
|
915
816
|
...
|
916
|
-
def solve_rf(self, arg0: Program, arg1: SparseMatrix, arg2:
|
817
|
+
def solve_rf(self, arg0: Program, arg1: SparseMatrix, arg2: NdarrayCxx, arg3: NdarrayCxx) -> None:
|
917
818
|
...
|
918
|
-
class
|
819
|
+
class ExprCxx:
|
919
820
|
def get_dbg_info(self) -> DebugInfo:
|
920
821
|
...
|
921
822
|
def get_dt(self) -> ...:
|
@@ -928,11 +829,11 @@ class Expr:
|
|
928
829
|
...
|
929
830
|
def get_raw_address(self) -> int:
|
930
831
|
...
|
931
|
-
def get_ret_type(self) ->
|
832
|
+
def get_ret_type(self) -> DataTypeCxx:
|
932
833
|
...
|
933
|
-
def get_rvalue_type(self) ->
|
834
|
+
def get_rvalue_type(self) -> DataTypeCxx:
|
934
835
|
...
|
935
|
-
def get_shape(self) ->
|
836
|
+
def get_shape(self) -> tuple[int, ...] | None:
|
936
837
|
...
|
937
838
|
def get_underlying_ptr_address(self) -> int:
|
938
839
|
...
|
@@ -948,13 +849,13 @@ class Expr:
|
|
948
849
|
...
|
949
850
|
def is_tensor(self) -> bool:
|
950
851
|
...
|
951
|
-
def set_adjoint(self, arg0:
|
852
|
+
def set_adjoint(self, arg0: ExprCxx) -> None:
|
952
853
|
...
|
953
|
-
def set_adjoint_checkbit(self, arg0:
|
854
|
+
def set_adjoint_checkbit(self, arg0: ExprCxx) -> None:
|
954
855
|
...
|
955
856
|
def set_dbg_info(self, arg0: DebugInfo) -> None:
|
956
857
|
...
|
957
|
-
def set_dual(self, arg0:
|
858
|
+
def set_dual(self, arg0: ExprCxx) -> None:
|
958
859
|
...
|
959
860
|
def set_dynamic_index_stride(self, arg0: int) -> None:
|
960
861
|
...
|
@@ -962,14 +863,14 @@ class Expr:
|
|
962
863
|
...
|
963
864
|
def set_name(self, arg0: str) -> None:
|
964
865
|
...
|
965
|
-
def snode(self) ->
|
866
|
+
def snode(self) -> SNodeCxx:
|
966
867
|
...
|
967
868
|
def type_check(self, arg0: CompileConfig) -> None:
|
968
869
|
...
|
969
870
|
class ExprGroup:
|
970
871
|
def __init__(self) -> None:
|
971
872
|
...
|
972
|
-
def push_back(self, arg0:
|
873
|
+
def push_back(self, arg0: ExprCxx) -> None:
|
973
874
|
...
|
974
875
|
def size(self) -> int:
|
975
876
|
...
|
@@ -1209,19 +1110,19 @@ class Function:
|
|
1209
1110
|
...
|
1210
1111
|
def finalize_rets(self) -> None:
|
1211
1112
|
...
|
1212
|
-
def insert_arr_param(self, arg0:
|
1113
|
+
def insert_arr_param(self, arg0: DataTypeCxx, arg1: int, arg2: tuple[int, ...], arg3: str) -> tuple[int, ...]:
|
1213
1114
|
...
|
1214
|
-
def insert_ndarray_param(self, arg0:
|
1115
|
+
def insert_ndarray_param(self, arg0: DataTypeCxx, arg1: int, arg2: str, arg3: bool) -> tuple[int, ...]:
|
1215
1116
|
...
|
1216
|
-
def insert_pointer_param(self, arg0:
|
1117
|
+
def insert_pointer_param(self, arg0: DataTypeCxx, arg1: str) -> tuple[int, ...]:
|
1217
1118
|
...
|
1218
|
-
def insert_ret(self, arg0:
|
1119
|
+
def insert_ret(self, arg0: DataTypeCxx) -> int:
|
1219
1120
|
...
|
1220
|
-
def insert_rw_texture_param(self, arg0: int, arg1: Format, arg2: str) ->
|
1121
|
+
def insert_rw_texture_param(self, arg0: int, arg1: Format, arg2: str) -> tuple[int, ...]:
|
1221
1122
|
...
|
1222
|
-
def insert_scalar_param(self, arg0:
|
1123
|
+
def insert_scalar_param(self, arg0: DataTypeCxx, arg1: str) -> tuple[int, ...]:
|
1223
1124
|
...
|
1224
|
-
def insert_texture_param(self, arg0: int, arg1: str) ->
|
1125
|
+
def insert_texture_param(self, arg0: int, arg1: str) -> tuple[int, ...]:
|
1225
1126
|
...
|
1226
1127
|
def set_function_body(self, arg0: typing.Callable[[], None]) -> None:
|
1227
1128
|
...
|
@@ -1231,140 +1132,139 @@ class FunctionKey:
|
|
1231
1132
|
@property
|
1232
1133
|
def instance_id(self) -> int:
|
1233
1134
|
...
|
1234
|
-
class
|
1235
|
-
|
1236
|
-
|
1237
|
-
|
1238
|
-
|
1239
|
-
|
1240
|
-
|
1241
|
-
|
1242
|
-
|
1243
|
-
|
1244
|
-
...
|
1135
|
+
class GsTaichiAssertionError(AssertionError):
|
1136
|
+
pass
|
1137
|
+
class GsTaichiIndexError(IndexError):
|
1138
|
+
pass
|
1139
|
+
class GsTaichiRuntimeError(RuntimeError):
|
1140
|
+
pass
|
1141
|
+
class GsTaichiSyntaxError(SyntaxError):
|
1142
|
+
pass
|
1143
|
+
class GsTaichiTypeError(TypeError):
|
1144
|
+
pass
|
1245
1145
|
class HackedSignalRegister:
|
1246
1146
|
def __init__(self) -> None:
|
1247
1147
|
...
|
1248
1148
|
class InternalOp:
|
1249
|
-
block_barrier: typing.ClassVar[Operation] # value = <
|
1250
|
-
block_barrier_and_i32: typing.ClassVar[Operation] # value = <
|
1251
|
-
block_barrier_count_i32: typing.ClassVar[Operation] # value = <
|
1252
|
-
block_barrier_or_i32: typing.ClassVar[Operation] # value = <
|
1253
|
-
composite_extract_0: typing.ClassVar[Operation] # value = <
|
1254
|
-
composite_extract_1: typing.ClassVar[Operation] # value = <
|
1255
|
-
composite_extract_2: typing.ClassVar[Operation] # value = <
|
1256
|
-
composite_extract_3: typing.ClassVar[Operation] # value = <
|
1257
|
-
cuda_active_mask: typing.ClassVar[Operation] # value = <
|
1258
|
-
cuda_all_sync_i32: typing.ClassVar[Operation] # value = <
|
1259
|
-
cuda_any_sync_i32: typing.ClassVar[Operation] # value = <
|
1260
|
-
cuda_ballot_i32: typing.ClassVar[Operation] # value = <
|
1261
|
-
cuda_match_all_sync_i32: typing.ClassVar[Operation] # value = <
|
1262
|
-
cuda_match_any_sync_i32: typing.ClassVar[Operation] # value = <
|
1263
|
-
cuda_shfl_down_sync_f32: typing.ClassVar[Operation] # value = <
|
1264
|
-
cuda_shfl_down_sync_i32: typing.ClassVar[Operation] # value = <
|
1265
|
-
cuda_shfl_sync_f32: typing.ClassVar[Operation] # value = <
|
1266
|
-
cuda_shfl_sync_i32: typing.ClassVar[Operation] # value = <
|
1267
|
-
cuda_shfl_up_sync_f32: typing.ClassVar[Operation] # value = <
|
1268
|
-
cuda_shfl_up_sync_i32: typing.ClassVar[Operation] # value = <
|
1269
|
-
cuda_shfl_xor_sync_i32: typing.ClassVar[Operation] # value = <
|
1270
|
-
cuda_uni_sync_i32: typing.ClassVar[Operation] # value = <
|
1271
|
-
do_nothing: typing.ClassVar[Operation] # value = <
|
1272
|
-
grid_memfence: typing.ClassVar[Operation] # value = <
|
1273
|
-
insert_triplet_f32: typing.ClassVar[Operation] # value = <
|
1274
|
-
insert_triplet_f64: typing.ClassVar[Operation] # value = <
|
1275
|
-
linear_thread_idx: typing.ClassVar[Operation] # value = <
|
1276
|
-
localInvocationId: typing.ClassVar[Operation] # value = <
|
1277
|
-
refresh_counter: typing.ClassVar[Operation] # value = <
|
1278
|
-
subgroupAdd: typing.ClassVar[Operation] # value = <
|
1279
|
-
subgroupAnd: typing.ClassVar[Operation] # value = <
|
1280
|
-
subgroupBarrier: typing.ClassVar[Operation] # value = <
|
1281
|
-
subgroupBroadcast: typing.ClassVar[Operation] # value = <
|
1282
|
-
subgroupElect: typing.ClassVar[Operation] # value = <
|
1283
|
-
subgroupInclusiveAdd: typing.ClassVar[Operation] # value = <
|
1284
|
-
subgroupInclusiveAnd: typing.ClassVar[Operation] # value = <
|
1285
|
-
subgroupInclusiveMax: typing.ClassVar[Operation] # value = <
|
1286
|
-
subgroupInclusiveMin: typing.ClassVar[Operation] # value = <
|
1287
|
-
subgroupInclusiveMul: typing.ClassVar[Operation] # value = <
|
1288
|
-
subgroupInclusiveOr: typing.ClassVar[Operation] # value = <
|
1289
|
-
subgroupInclusiveXor: typing.ClassVar[Operation] # value = <
|
1290
|
-
subgroupInvocationId: typing.ClassVar[Operation] # value = <
|
1291
|
-
subgroupMax: typing.ClassVar[Operation] # value = <
|
1292
|
-
subgroupMemoryBarrier: typing.ClassVar[Operation] # value = <
|
1293
|
-
subgroupMin: typing.ClassVar[Operation] # value = <
|
1294
|
-
subgroupMul: typing.ClassVar[Operation] # value = <
|
1295
|
-
subgroupOr: typing.ClassVar[Operation] # value = <
|
1296
|
-
subgroupSize: typing.ClassVar[Operation] # value = <
|
1297
|
-
subgroupXor: typing.ClassVar[Operation] # value = <
|
1298
|
-
test_active_mask: typing.ClassVar[Operation] # value = <
|
1299
|
-
test_internal_func_args: typing.ClassVar[Operation] # value = <
|
1300
|
-
test_list_manager: typing.ClassVar[Operation] # value = <
|
1301
|
-
test_node_allocator: typing.ClassVar[Operation] # value = <
|
1302
|
-
test_node_allocator_gc_cpu: typing.ClassVar[Operation] # value = <
|
1303
|
-
test_shfl: typing.ClassVar[Operation] # value = <
|
1304
|
-
test_stack: typing.ClassVar[Operation] # value = <
|
1305
|
-
vkGlobalThreadIdx: typing.ClassVar[Operation] # value = <
|
1306
|
-
warp_barrier: typing.ClassVar[Operation] # value = <
|
1307
|
-
workgroupBarrier: typing.ClassVar[Operation] # value = <
|
1308
|
-
workgroupMemoryBarrier: typing.ClassVar[Operation] # value = <
|
1309
|
-
class
|
1149
|
+
block_barrier: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1150
|
+
block_barrier_and_i32: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1151
|
+
block_barrier_count_i32: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1152
|
+
block_barrier_or_i32: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1153
|
+
composite_extract_0: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1154
|
+
composite_extract_1: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1155
|
+
composite_extract_2: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1156
|
+
composite_extract_3: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1157
|
+
cuda_active_mask: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1158
|
+
cuda_all_sync_i32: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1159
|
+
cuda_any_sync_i32: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1160
|
+
cuda_ballot_i32: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1161
|
+
cuda_match_all_sync_i32: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1162
|
+
cuda_match_any_sync_i32: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1163
|
+
cuda_shfl_down_sync_f32: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1164
|
+
cuda_shfl_down_sync_i32: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1165
|
+
cuda_shfl_sync_f32: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1166
|
+
cuda_shfl_sync_i32: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1167
|
+
cuda_shfl_up_sync_f32: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1168
|
+
cuda_shfl_up_sync_i32: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1169
|
+
cuda_shfl_xor_sync_i32: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1170
|
+
cuda_uni_sync_i32: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1171
|
+
do_nothing: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1172
|
+
grid_memfence: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1173
|
+
insert_triplet_f32: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1174
|
+
insert_triplet_f64: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1175
|
+
linear_thread_idx: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1176
|
+
localInvocationId: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1177
|
+
refresh_counter: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1178
|
+
subgroupAdd: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1179
|
+
subgroupAnd: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1180
|
+
subgroupBarrier: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1181
|
+
subgroupBroadcast: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1182
|
+
subgroupElect: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1183
|
+
subgroupInclusiveAdd: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1184
|
+
subgroupInclusiveAnd: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1185
|
+
subgroupInclusiveMax: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1186
|
+
subgroupInclusiveMin: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1187
|
+
subgroupInclusiveMul: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1188
|
+
subgroupInclusiveOr: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1189
|
+
subgroupInclusiveXor: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1190
|
+
subgroupInvocationId: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1191
|
+
subgroupMax: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1192
|
+
subgroupMemoryBarrier: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1193
|
+
subgroupMin: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1194
|
+
subgroupMul: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1195
|
+
subgroupOr: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1196
|
+
subgroupSize: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1197
|
+
subgroupXor: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1198
|
+
test_active_mask: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1199
|
+
test_internal_func_args: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1200
|
+
test_list_manager: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1201
|
+
test_node_allocator: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1202
|
+
test_node_allocator_gc_cpu: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1203
|
+
test_shfl: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1204
|
+
test_stack: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1205
|
+
vkGlobalThreadIdx: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1206
|
+
warp_barrier: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1207
|
+
workgroupBarrier: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1208
|
+
workgroupMemoryBarrier: typing.ClassVar[Operation] # value = <gstaichi._lib.core.gstaichi_python.Operation object>
|
1209
|
+
class KernelCxx:
|
1310
1210
|
def ast_builder(self) -> ASTBuilder:
|
1311
1211
|
...
|
1312
1212
|
def finalize_params(self) -> None:
|
1313
1213
|
...
|
1314
1214
|
def finalize_rets(self) -> None:
|
1315
1215
|
...
|
1316
|
-
def insert_argpack_param_and_push(self, arg0: str) ->
|
1216
|
+
def insert_argpack_param_and_push(self, arg0: str) -> tuple[int, ...]:
|
1317
1217
|
...
|
1318
|
-
def insert_arr_param(self, arg0:
|
1218
|
+
def insert_arr_param(self, arg0: DataTypeCxx, arg1: int, arg2: tuple[int, ...], arg3: str) -> tuple[int, ...]:
|
1319
1219
|
...
|
1320
|
-
def insert_ndarray_param(self, arg0:
|
1220
|
+
def insert_ndarray_param(self, arg0: DataTypeCxx, arg1: int, arg2: str, arg3: bool) -> tuple[int, ...]:
|
1321
1221
|
...
|
1322
|
-
def insert_pointer_param(self, arg0:
|
1222
|
+
def insert_pointer_param(self, arg0: DataTypeCxx, arg1: str) -> tuple[int, ...]:
|
1323
1223
|
...
|
1324
|
-
def insert_ret(self, arg0:
|
1224
|
+
def insert_ret(self, arg0: DataTypeCxx) -> int:
|
1325
1225
|
...
|
1326
|
-
def insert_rw_texture_param(self, arg0: int, arg1: Format, arg2: str) ->
|
1226
|
+
def insert_rw_texture_param(self, arg0: int, arg1: Format, arg2: str) -> tuple[int, ...]:
|
1327
1227
|
...
|
1328
|
-
def insert_scalar_param(self, arg0:
|
1228
|
+
def insert_scalar_param(self, arg0: DataTypeCxx, arg1: str) -> tuple[int, ...]:
|
1329
1229
|
...
|
1330
|
-
def insert_texture_param(self, arg0: int, arg1: str) ->
|
1230
|
+
def insert_texture_param(self, arg0: int, arg1: str) -> tuple[int, ...]:
|
1331
1231
|
...
|
1332
|
-
def make_launch_context(self) ->
|
1232
|
+
def make_launch_context(self) -> KernelLaunchContext:
|
1333
1233
|
...
|
1334
|
-
def no_activate(self, arg0:
|
1234
|
+
def no_activate(self, arg0: SNodeCxx) -> None:
|
1335
1235
|
...
|
1336
1236
|
def pop_argpack_stack(self) -> None:
|
1337
1237
|
...
|
1338
1238
|
class KernelLaunchContext:
|
1339
|
-
def get_struct_ret_float(self, arg0:
|
1239
|
+
def get_struct_ret_float(self, arg0: tuple[int, ...]) -> float:
|
1340
1240
|
...
|
1341
|
-
def get_struct_ret_int(self, arg0:
|
1241
|
+
def get_struct_ret_int(self, arg0: tuple[int, ...]) -> int:
|
1342
1242
|
...
|
1343
|
-
def get_struct_ret_uint(self, arg0:
|
1243
|
+
def get_struct_ret_uint(self, arg0: tuple[int, ...]) -> int:
|
1344
1244
|
...
|
1345
|
-
def set_arg_argpack(self, arg0:
|
1245
|
+
def set_arg_argpack(self, arg0: tuple[int, ...], arg1: ArgPackCxx) -> None:
|
1346
1246
|
...
|
1347
|
-
def set_arg_external_array_with_shape(self, arg0:
|
1247
|
+
def set_arg_external_array_with_shape(self, arg0: tuple[int, ...], arg1: int, arg2: int, arg3: tuple[int, ...], arg4: int) -> None:
|
1348
1248
|
...
|
1349
|
-
def set_arg_float(self, arg0:
|
1249
|
+
def set_arg_float(self, arg0: tuple[int, ...], arg1: float) -> None:
|
1350
1250
|
...
|
1351
|
-
def set_arg_int(self, arg0:
|
1251
|
+
def set_arg_int(self, arg0: tuple[int, ...], arg1: int) -> None:
|
1352
1252
|
...
|
1353
|
-
def set_arg_ndarray(self, arg0:
|
1253
|
+
def set_arg_ndarray(self, arg0: tuple[int, ...], arg1: Ndarray) -> None:
|
1354
1254
|
...
|
1355
|
-
def set_arg_ndarray_with_grad(self, arg0:
|
1255
|
+
def set_arg_ndarray_with_grad(self, arg0: tuple[int, ...], arg1: NdarrayCxx, arg2: NdarrayCxx) -> None:
|
1356
1256
|
...
|
1357
|
-
def set_arg_rw_texture(self, arg0:
|
1257
|
+
def set_arg_rw_texture(self, arg0: tuple[int, ...], arg1: TextureCxx) -> None:
|
1358
1258
|
...
|
1359
|
-
def set_arg_texture(self, arg0:
|
1259
|
+
def set_arg_texture(self, arg0: tuple[int, ...], arg1: TextureCxx) -> None:
|
1360
1260
|
...
|
1361
|
-
def set_arg_uint(self, arg0:
|
1261
|
+
def set_arg_uint(self, arg0: tuple[int, ...], arg1: int) -> None:
|
1362
1262
|
...
|
1363
|
-
def set_struct_arg_float(self, arg0:
|
1263
|
+
def set_struct_arg_float(self, arg0: tuple[int, ...], arg1: float) -> None:
|
1364
1264
|
...
|
1365
|
-
def set_struct_arg_int(self, arg0:
|
1265
|
+
def set_struct_arg_int(self, arg0: tuple[int, ...], arg1: int) -> None:
|
1366
1266
|
...
|
1367
|
-
def set_struct_arg_uint(self, arg0:
|
1267
|
+
def set_struct_arg_uint(self, arg0: tuple[int, ...], arg1: int) -> None:
|
1368
1268
|
...
|
1369
1269
|
class KernelProfileTracedRecord:
|
1370
1270
|
active_blocks_per_multiprocessor: int
|
@@ -1616,39 +1516,37 @@ class MeshTopology:
|
|
1616
1516
|
@property
|
1617
1517
|
def value(self) -> int:
|
1618
1518
|
...
|
1619
|
-
class
|
1519
|
+
class NdarrayCxx:
|
1620
1520
|
def device_allocation(self) -> DeviceAllocation:
|
1621
1521
|
...
|
1622
1522
|
def device_allocation_ptr(self) -> int:
|
1623
1523
|
...
|
1624
|
-
def element_data_type(self) ->
|
1524
|
+
def element_data_type(self) -> DataTypeCxx:
|
1625
1525
|
...
|
1626
|
-
def element_shape(self) ->
|
1526
|
+
def element_shape(self) -> tuple[int, ...]:
|
1627
1527
|
...
|
1628
1528
|
def element_size(self) -> int:
|
1629
1529
|
...
|
1630
1530
|
def nelement(self) -> int:
|
1631
1531
|
...
|
1632
|
-
def read_float(self, arg0:
|
1532
|
+
def read_float(self, arg0: tuple[int, ...]) -> float:
|
1633
1533
|
...
|
1634
|
-
def read_int(self, arg0:
|
1534
|
+
def read_int(self, arg0: tuple[int, ...]) -> int:
|
1635
1535
|
...
|
1636
|
-
def read_uint(self, arg0:
|
1536
|
+
def read_uint(self, arg0: tuple[int, ...]) -> int:
|
1637
1537
|
...
|
1638
|
-
def total_shape(self) ->
|
1538
|
+
def total_shape(self) -> tuple[int, ...]:
|
1639
1539
|
...
|
1640
|
-
def write_float(self, arg0:
|
1540
|
+
def write_float(self, arg0: tuple[int, ...], arg1: float) -> None:
|
1641
1541
|
...
|
1642
|
-
def write_int(self, arg0:
|
1542
|
+
def write_int(self, arg0: tuple[int, ...], arg1: int) -> None:
|
1643
1543
|
...
|
1644
1544
|
@property
|
1645
|
-
def dtype(self) ->
|
1545
|
+
def dtype(self) -> DataTypeCxx:
|
1646
1546
|
...
|
1647
1547
|
@property
|
1648
|
-
def shape(self) ->
|
1548
|
+
def shape(self) -> tuple[int, ...]:
|
1649
1549
|
...
|
1650
|
-
class Node:
|
1651
|
-
pass
|
1652
1550
|
class Operation:
|
1653
1551
|
pass
|
1654
1552
|
class Program:
|
@@ -1660,17 +1558,17 @@ class Program:
|
|
1660
1558
|
...
|
1661
1559
|
def config(self) -> CompileConfig:
|
1662
1560
|
...
|
1663
|
-
def create_argpack(self, dt:
|
1561
|
+
def create_argpack(self, dt: DataTypeCxx) -> ...:
|
1664
1562
|
...
|
1665
1563
|
def create_function(self, arg0: ...) -> Function:
|
1666
1564
|
...
|
1667
|
-
def create_kernel(self, arg0: typing.Callable[[...], None], arg1: str, arg2: AutodiffMode) ->
|
1565
|
+
def create_kernel(self, arg0: typing.Callable[[...], None], arg1: str, arg2: AutodiffMode) -> KernelCxx:
|
1668
1566
|
...
|
1669
|
-
def create_ndarray(self, dt:
|
1567
|
+
def create_ndarray(self, dt: DataTypeCxx, shape: tuple[int, ...], layout: Layout = ..., zero_fill: bool = False, dbg_info: DebugInfo = ...) -> ...:
|
1670
1568
|
...
|
1671
|
-
def create_sparse_matrix(self, arg0: int, arg1: int, arg2:
|
1569
|
+
def create_sparse_matrix(self, arg0: int, arg1: int, arg2: DataTypeCxx, arg3: str) -> ...:
|
1672
1570
|
...
|
1673
|
-
def create_texture(self, fmt: ..., shape:
|
1571
|
+
def create_texture(self, fmt: ..., shape: tuple[int, ...] = ()) -> ...:
|
1674
1572
|
...
|
1675
1573
|
def delete_argpack(self, arg0: ...) -> None:
|
1676
1574
|
...
|
@@ -1706,8 +1604,6 @@ class Program:
|
|
1706
1604
|
...
|
1707
1605
|
def launch_kernel(self, arg0: CompiledKernelData, arg1: ...) -> None:
|
1708
1606
|
...
|
1709
|
-
def make_aot_module_builder(self, arg0: Arch, arg1: list[str]) -> ...:
|
1710
|
-
...
|
1711
1607
|
def make_id_expr(self, arg0: str) -> ...:
|
1712
1608
|
...
|
1713
1609
|
def make_sparse_matrix_from_ndarray(self, arg0: ..., arg1: ...) -> None:
|
@@ -1732,29 +1628,77 @@ class Program:
|
|
1732
1628
|
...
|
1733
1629
|
def update_kernel_profiler(self) -> None:
|
1734
1630
|
...
|
1735
|
-
class
|
1736
|
-
|
1631
|
+
class SNodeAccessFlag:
|
1632
|
+
"""
|
1633
|
+
Members:
|
1634
|
+
|
1635
|
+
block_local
|
1636
|
+
|
1637
|
+
read_only
|
1638
|
+
|
1639
|
+
mesh_local
|
1640
|
+
"""
|
1641
|
+
__members__: typing.ClassVar[dict[str, SNodeAccessFlag]] # value = {'block_local': <SNodeAccessFlag.block_local: 0>, 'read_only': <SNodeAccessFlag.read_only: 1>, 'mesh_local': <SNodeAccessFlag.mesh_local: 2>}
|
1642
|
+
block_local: typing.ClassVar[SNodeAccessFlag] # value = <SNodeAccessFlag.block_local: 0>
|
1643
|
+
mesh_local: typing.ClassVar[SNodeAccessFlag] # value = <SNodeAccessFlag.mesh_local: 2>
|
1644
|
+
read_only: typing.ClassVar[SNodeAccessFlag] # value = <SNodeAccessFlag.read_only: 1>
|
1645
|
+
def __eq__(self, other: typing.Any) -> bool:
|
1646
|
+
...
|
1647
|
+
def __ge__(self, other: typing.Any) -> bool:
|
1648
|
+
...
|
1649
|
+
def __getstate__(self) -> int:
|
1650
|
+
...
|
1651
|
+
def __gt__(self, other: typing.Any) -> bool:
|
1652
|
+
...
|
1653
|
+
def __hash__(self) -> int:
|
1654
|
+
...
|
1655
|
+
def __index__(self) -> int:
|
1656
|
+
...
|
1657
|
+
def __init__(self, value: int) -> None:
|
1658
|
+
...
|
1659
|
+
def __int__(self) -> int:
|
1660
|
+
...
|
1661
|
+
def __le__(self, other: typing.Any) -> bool:
|
1662
|
+
...
|
1663
|
+
def __lt__(self, other: typing.Any) -> bool:
|
1664
|
+
...
|
1665
|
+
def __ne__(self, other: typing.Any) -> bool:
|
1666
|
+
...
|
1667
|
+
def __repr__(self) -> str:
|
1668
|
+
...
|
1669
|
+
def __setstate__(self, state: int) -> None:
|
1670
|
+
...
|
1671
|
+
def __str__(self) -> str:
|
1672
|
+
...
|
1673
|
+
@property
|
1674
|
+
def name(self) -> str:
|
1675
|
+
...
|
1676
|
+
@property
|
1677
|
+
def value(self) -> int:
|
1678
|
+
...
|
1679
|
+
class SNodeCxx:
|
1680
|
+
parent: SNodeCxx
|
1737
1681
|
def __init__(self) -> None:
|
1738
1682
|
...
|
1739
1683
|
def allocate_adjoint_checkbit(self) -> None:
|
1740
1684
|
...
|
1741
|
-
def bit_struct(self, arg0: ..., arg1: DebugInfo) ->
|
1685
|
+
def bit_struct(self, arg0: ..., arg1: DebugInfo) -> SNodeCxx:
|
1742
1686
|
...
|
1743
|
-
def bitmasked(self, arg0: list[Axis], arg1:
|
1687
|
+
def bitmasked(self, arg0: list[Axis], arg1: tuple[int, ...], arg2: DebugInfo) -> SNodeCxx:
|
1744
1688
|
...
|
1745
|
-
def data_type(self) ->
|
1689
|
+
def data_type(self) -> DataTypeCxx:
|
1746
1690
|
...
|
1747
|
-
def dense(self, arg0: list[Axis], arg1:
|
1691
|
+
def dense(self, arg0: list[Axis], arg1: tuple[int, ...], arg2: DebugInfo) -> SNodeCxx:
|
1748
1692
|
...
|
1749
|
-
def dynamic(self, arg0: Axis, arg1: int, arg2: int, arg3: DebugInfo) ->
|
1693
|
+
def dynamic(self, arg0: Axis, arg1: int, arg2: int, arg3: DebugInfo) -> SNodeCxx:
|
1750
1694
|
...
|
1751
|
-
def get_ch(self, arg0: int) ->
|
1695
|
+
def get_ch(self, arg0: int) -> SNodeCxx:
|
1752
1696
|
...
|
1753
1697
|
def get_expr(self) -> ...:
|
1754
1698
|
...
|
1755
1699
|
def get_num_ch(self) -> int:
|
1756
1700
|
...
|
1757
|
-
def get_physical_index_position(self) ->
|
1701
|
+
def get_physical_index_position(self) -> tuple[int, ...]:
|
1758
1702
|
...
|
1759
1703
|
def get_shape_along_axis(self, arg0: int) -> int:
|
1760
1704
|
...
|
@@ -1768,7 +1712,7 @@ class SNode:
|
|
1768
1712
|
...
|
1769
1713
|
def has_dual(self) -> bool:
|
1770
1714
|
...
|
1771
|
-
def hash(self, arg0: list[Axis], arg1:
|
1715
|
+
def hash(self, arg0: list[Axis], arg1: tuple[int, ...], arg2: DebugInfo) -> SNodeCxx:
|
1772
1716
|
...
|
1773
1717
|
def is_place(self) -> bool:
|
1774
1718
|
...
|
@@ -1782,23 +1726,23 @@ class SNode:
|
|
1782
1726
|
...
|
1783
1727
|
def num_active_indices(self) -> int:
|
1784
1728
|
...
|
1785
|
-
def place(self, arg0: ..., arg1:
|
1729
|
+
def place(self, arg0: ..., arg1: tuple[int, ...], arg2: int) -> None:
|
1786
1730
|
...
|
1787
|
-
def pointer(self, arg0: list[Axis], arg1:
|
1731
|
+
def pointer(self, arg0: list[Axis], arg1: tuple[int, ...], arg2: DebugInfo) -> SNodeCxx:
|
1788
1732
|
...
|
1789
|
-
def quant_array(self, arg0: list[Axis], arg1:
|
1733
|
+
def quant_array(self, arg0: list[Axis], arg1: tuple[int, ...], arg2: int, arg3: DebugInfo) -> SNodeCxx:
|
1790
1734
|
...
|
1791
|
-
def read_float(self, arg0:
|
1735
|
+
def read_float(self, arg0: tuple[int, ...]) -> float:
|
1792
1736
|
...
|
1793
|
-
def read_int(self, arg0:
|
1737
|
+
def read_int(self, arg0: tuple[int, ...]) -> int:
|
1794
1738
|
...
|
1795
|
-
def read_uint(self, arg0:
|
1739
|
+
def read_uint(self, arg0: tuple[int, ...]) -> int:
|
1796
1740
|
...
|
1797
|
-
def write_float(self, arg0:
|
1741
|
+
def write_float(self, arg0: tuple[int, ...], arg1: float) -> None:
|
1798
1742
|
...
|
1799
|
-
def write_int(self, arg0:
|
1743
|
+
def write_int(self, arg0: tuple[int, ...], arg1: int) -> None:
|
1800
1744
|
...
|
1801
|
-
def write_uint(self, arg0:
|
1745
|
+
def write_uint(self, arg0: tuple[int, ...], arg1: int) -> None:
|
1802
1746
|
...
|
1803
1747
|
@property
|
1804
1748
|
def cell_size_bytes(self) -> int:
|
@@ -1807,7 +1751,7 @@ class SNode:
|
|
1807
1751
|
def id(self) -> int:
|
1808
1752
|
...
|
1809
1753
|
@property
|
1810
|
-
def offset(self) ->
|
1754
|
+
def offset(self) -> tuple[int, ...]:
|
1811
1755
|
...
|
1812
1756
|
@property
|
1813
1757
|
def offset_bytes_in_parent_cell(self) -> int:
|
@@ -1815,54 +1759,6 @@ class SNode:
|
|
1815
1759
|
@property
|
1816
1760
|
def type(self) -> SNodeType:
|
1817
1761
|
...
|
1818
|
-
class SNodeAccessFlag:
|
1819
|
-
"""
|
1820
|
-
Members:
|
1821
|
-
|
1822
|
-
block_local
|
1823
|
-
|
1824
|
-
read_only
|
1825
|
-
|
1826
|
-
mesh_local
|
1827
|
-
"""
|
1828
|
-
__members__: typing.ClassVar[dict[str, SNodeAccessFlag]] # value = {'block_local': <SNodeAccessFlag.block_local: 0>, 'read_only': <SNodeAccessFlag.read_only: 1>, 'mesh_local': <SNodeAccessFlag.mesh_local: 2>}
|
1829
|
-
block_local: typing.ClassVar[SNodeAccessFlag] # value = <SNodeAccessFlag.block_local: 0>
|
1830
|
-
mesh_local: typing.ClassVar[SNodeAccessFlag] # value = <SNodeAccessFlag.mesh_local: 2>
|
1831
|
-
read_only: typing.ClassVar[SNodeAccessFlag] # value = <SNodeAccessFlag.read_only: 1>
|
1832
|
-
def __eq__(self, other: typing.Any) -> bool:
|
1833
|
-
...
|
1834
|
-
def __ge__(self, other: typing.Any) -> bool:
|
1835
|
-
...
|
1836
|
-
def __getstate__(self) -> int:
|
1837
|
-
...
|
1838
|
-
def __gt__(self, other: typing.Any) -> bool:
|
1839
|
-
...
|
1840
|
-
def __hash__(self) -> int:
|
1841
|
-
...
|
1842
|
-
def __index__(self) -> int:
|
1843
|
-
...
|
1844
|
-
def __init__(self, value: int) -> None:
|
1845
|
-
...
|
1846
|
-
def __int__(self) -> int:
|
1847
|
-
...
|
1848
|
-
def __le__(self, other: typing.Any) -> bool:
|
1849
|
-
...
|
1850
|
-
def __lt__(self, other: typing.Any) -> bool:
|
1851
|
-
...
|
1852
|
-
def __ne__(self, other: typing.Any) -> bool:
|
1853
|
-
...
|
1854
|
-
def __repr__(self) -> str:
|
1855
|
-
...
|
1856
|
-
def __setstate__(self, state: int) -> None:
|
1857
|
-
...
|
1858
|
-
def __str__(self) -> str:
|
1859
|
-
...
|
1860
|
-
@property
|
1861
|
-
def name(self) -> str:
|
1862
|
-
...
|
1863
|
-
@property
|
1864
|
-
def value(self) -> int:
|
1865
|
-
...
|
1866
1762
|
class SNodeGradType:
|
1867
1763
|
"""
|
1868
1764
|
Members:
|
@@ -1917,9 +1813,9 @@ class SNodeGradType:
|
|
1917
1813
|
class SNodeRegistry:
|
1918
1814
|
def __init__(self) -> None:
|
1919
1815
|
...
|
1920
|
-
def create_root(self, arg0: Program) ->
|
1816
|
+
def create_root(self, arg0: Program) -> SNodeCxx:
|
1921
1817
|
...
|
1922
|
-
class
|
1818
|
+
class SNodeTreeCxx:
|
1923
1819
|
def destroy_snode_tree(self, arg0: Program) -> None:
|
1924
1820
|
...
|
1925
1821
|
def id(self) -> int:
|
@@ -1993,24 +1889,17 @@ class SNodeType:
|
|
1993
1889
|
@property
|
1994
1890
|
def value(self) -> int:
|
1995
1891
|
...
|
1996
|
-
class Sequential(Node):
|
1997
|
-
def __init__(self, arg0: ...) -> None:
|
1998
|
-
...
|
1999
|
-
def append(self, arg0: Node) -> None:
|
2000
|
-
...
|
2001
|
-
def dispatch(self, arg0: ..., arg1: list[Arg]) -> None:
|
2002
|
-
...
|
2003
1892
|
class SparseMatrix:
|
2004
1893
|
@typing.overload
|
2005
1894
|
def __init__(self) -> None:
|
2006
1895
|
...
|
2007
1896
|
@typing.overload
|
2008
|
-
def __init__(self, rows: int, cols: int, dt:
|
1897
|
+
def __init__(self, rows: int, cols: int, dt: DataTypeCxx = ...) -> None:
|
2009
1898
|
...
|
2010
1899
|
@typing.overload
|
2011
1900
|
def __init__(self, arg0: SparseMatrix) -> None:
|
2012
1901
|
...
|
2013
|
-
def get_data_type(self) ->
|
1902
|
+
def get_data_type(self) -> DataTypeCxx:
|
2014
1903
|
...
|
2015
1904
|
def get_element(self, arg0: int, arg1: int) -> float:
|
2016
1905
|
...
|
@@ -2025,7 +1914,7 @@ class SparseMatrix:
|
|
2025
1914
|
def to_string(self) -> str:
|
2026
1915
|
...
|
2027
1916
|
class SparseMatrixBuilder:
|
2028
|
-
def __init__(self, rows: int, cols: int, max_num_triplets: int, dt:
|
1917
|
+
def __init__(self, rows: int, cols: int, max_num_triplets: int, dt: DataTypeCxx = ..., storage_format: str = 'col_major') -> None:
|
2029
1918
|
...
|
2030
1919
|
def build(self) -> ...:
|
2031
1920
|
...
|
@@ -2054,27 +1943,17 @@ class SparseSolver:
|
|
2054
1943
|
...
|
2055
1944
|
class Stmt:
|
2056
1945
|
pass
|
2057
|
-
class TaichiAssertionError(AssertionError):
|
2058
|
-
pass
|
2059
|
-
class TaichiIndexError(IndexError):
|
2060
|
-
pass
|
2061
|
-
class TaichiRuntimeError(RuntimeError):
|
2062
|
-
pass
|
2063
|
-
class TaichiSyntaxError(SyntaxError):
|
2064
|
-
pass
|
2065
|
-
class TaichiTypeError(TypeError):
|
2066
|
-
pass
|
2067
1946
|
class Task:
|
2068
1947
|
def initialize(self, arg0: Config) -> None:
|
2069
1948
|
...
|
2070
1949
|
def run(self, arg0: list[str]) -> str:
|
2071
1950
|
...
|
2072
|
-
class
|
1951
|
+
class TextureCxx:
|
2073
1952
|
def device_allocation_ptr(self) -> int:
|
2074
1953
|
...
|
2075
|
-
def from_ndarray(self, arg0:
|
1954
|
+
def from_ndarray(self, arg0: NdarrayCxx) -> None:
|
2076
1955
|
...
|
2077
|
-
def from_snode(self, arg0:
|
1956
|
+
def from_snode(self, arg0: SNodeCxx) -> None:
|
2078
1957
|
...
|
2079
1958
|
class TextureOpType:
|
2080
1959
|
"""
|
@@ -2134,9 +2013,9 @@ class Type:
|
|
2134
2013
|
def to_string(self) -> str:
|
2135
2014
|
...
|
2136
2015
|
class TypeFactory:
|
2137
|
-
def get_argpack_type(self, arg0: list[tuple[
|
2016
|
+
def get_argpack_type(self, arg0: list[tuple[DataTypeCxx, str]]) -> DataTypeCxx:
|
2138
2017
|
...
|
2139
|
-
def get_ndarray_struct_type(self, dt:
|
2018
|
+
def get_ndarray_struct_type(self, dt: DataTypeCxx, ndim: int, needs_grad: bool) -> Type:
|
2140
2019
|
...
|
2141
2020
|
def get_quant_fixed_type(self, digits_type: Type, compute_type: Type, scale: float) -> Type:
|
2142
2021
|
...
|
@@ -2146,11 +2025,11 @@ class TypeFactory:
|
|
2146
2025
|
...
|
2147
2026
|
def get_rwtexture_struct_type(self) -> Type:
|
2148
2027
|
...
|
2149
|
-
def get_struct_type(self, arg0: list[tuple[
|
2028
|
+
def get_struct_type(self, arg0: list[tuple[DataTypeCxx, str]]) -> DataTypeCxx:
|
2150
2029
|
...
|
2151
|
-
def get_struct_type_for_argpack_ptr(self, dt:
|
2030
|
+
def get_struct_type_for_argpack_ptr(self, dt: DataTypeCxx, layout: str = 'none') -> Type:
|
2152
2031
|
...
|
2153
|
-
def get_tensor_type(self, shape: tuple[int, ...], element_type: DataType) ->
|
2032
|
+
def get_tensor_type(self, shape: tuple[int, ...], element_type: DataType) -> DataTypeCxx:
|
2154
2033
|
...
|
2155
2034
|
class UnaryOpType:
|
2156
2035
|
"""
|
@@ -2403,7 +2282,7 @@ class dColMajor_EigenSparseMatrix(SparseMatrix):
|
|
2403
2282
|
def __imul__(self, arg0: float) -> dColMajor_EigenSparseMatrix:
|
2404
2283
|
...
|
2405
2284
|
@typing.overload
|
2406
|
-
def __init__(self, arg0: int, arg1: int, arg2:
|
2285
|
+
def __init__(self, arg0: int, arg1: int, arg2: DataTypeCxx) -> None:
|
2407
2286
|
...
|
2408
2287
|
@typing.overload
|
2409
2288
|
def __init__(self, arg0: dColMajor_EigenSparseMatrix) -> None:
|
@@ -2431,7 +2310,7 @@ class dColMajor_EigenSparseMatrix(SparseMatrix):
|
|
2431
2310
|
...
|
2432
2311
|
def set_element(self, arg0: int, arg1: int, arg2: float) -> None:
|
2433
2312
|
...
|
2434
|
-
def spmv(self, arg0: Program, arg1:
|
2313
|
+
def spmv(self, arg0: Program, arg1: NdarrayCxx, arg2: NdarrayCxx) -> None:
|
2435
2314
|
...
|
2436
2315
|
def transpose(self) -> dColMajor_EigenSparseMatrix:
|
2437
2316
|
...
|
@@ -2443,7 +2322,7 @@ class dRowMajor_EigenSparseMatrix(SparseMatrix):
|
|
2443
2322
|
def __imul__(self, arg0: float) -> dRowMajor_EigenSparseMatrix:
|
2444
2323
|
...
|
2445
2324
|
@typing.overload
|
2446
|
-
def __init__(self, arg0: int, arg1: int, arg2:
|
2325
|
+
def __init__(self, arg0: int, arg1: int, arg2: DataTypeCxx) -> None:
|
2447
2326
|
...
|
2448
2327
|
@typing.overload
|
2449
2328
|
def __init__(self, arg0: dRowMajor_EigenSparseMatrix) -> None:
|
@@ -2471,7 +2350,7 @@ class dRowMajor_EigenSparseMatrix(SparseMatrix):
|
|
2471
2350
|
...
|
2472
2351
|
def set_element(self, arg0: int, arg1: int, arg2: float) -> None:
|
2473
2352
|
...
|
2474
|
-
def spmv(self, arg0: Program, arg1:
|
2353
|
+
def spmv(self, arg0: Program, arg1: NdarrayCxx, arg2: NdarrayCxx) -> None:
|
2475
2354
|
...
|
2476
2355
|
def transpose(self) -> dRowMajor_EigenSparseMatrix:
|
2477
2356
|
...
|
@@ -2483,7 +2362,7 @@ class fColMajor_EigenSparseMatrix(SparseMatrix):
|
|
2483
2362
|
def __imul__(self, arg0: float) -> fColMajor_EigenSparseMatrix:
|
2484
2363
|
...
|
2485
2364
|
@typing.overload
|
2486
|
-
def __init__(self, arg0: int, arg1: int, arg2:
|
2365
|
+
def __init__(self, arg0: int, arg1: int, arg2: DataTypeCxx) -> None:
|
2487
2366
|
...
|
2488
2367
|
@typing.overload
|
2489
2368
|
def __init__(self, arg0: fColMajor_EigenSparseMatrix) -> None:
|
@@ -2511,7 +2390,7 @@ class fColMajor_EigenSparseMatrix(SparseMatrix):
|
|
2511
2390
|
...
|
2512
2391
|
def set_element(self, arg0: int, arg1: int, arg2: float) -> None:
|
2513
2392
|
...
|
2514
|
-
def spmv(self, arg0: Program, arg1:
|
2393
|
+
def spmv(self, arg0: Program, arg1: NdarrayCxx, arg2: NdarrayCxx) -> None:
|
2515
2394
|
...
|
2516
2395
|
def transpose(self) -> fColMajor_EigenSparseMatrix:
|
2517
2396
|
...
|
@@ -2523,7 +2402,7 @@ class fRowMajor_EigenSparseMatrix(SparseMatrix):
|
|
2523
2402
|
def __imul__(self, arg0: float) -> fRowMajor_EigenSparseMatrix:
|
2524
2403
|
...
|
2525
2404
|
@typing.overload
|
2526
|
-
def __init__(self, arg0: int, arg1: int, arg2:
|
2405
|
+
def __init__(self, arg0: int, arg1: int, arg2: DataTypeCxx) -> None:
|
2527
2406
|
...
|
2528
2407
|
@typing.overload
|
2529
2408
|
def __init__(self, arg0: fRowMajor_EigenSparseMatrix) -> None:
|
@@ -2551,7 +2430,7 @@ class fRowMajor_EigenSparseMatrix(SparseMatrix):
|
|
2551
2430
|
...
|
2552
2431
|
def set_element(self, arg0: int, arg1: int, arg2: float) -> None:
|
2553
2432
|
...
|
2554
|
-
def spmv(self, arg0: Program, arg1:
|
2433
|
+
def spmv(self, arg0: Program, arg1: NdarrayCxx, arg2: NdarrayCxx) -> None:
|
2555
2434
|
...
|
2556
2435
|
def transpose(self) -> fRowMajor_EigenSparseMatrix:
|
2557
2436
|
...
|
@@ -2561,7 +2440,7 @@ def arch_name(arg0: Arch) -> str:
|
|
2561
2440
|
...
|
2562
2441
|
def arch_uses_llvm(arg0: Arch) -> bool:
|
2563
2442
|
...
|
2564
|
-
def bits_cast(arg0:
|
2443
|
+
def bits_cast(arg0: ExprCxx, arg1: DataTypeCxx) -> ExprCxx:
|
2565
2444
|
...
|
2566
2445
|
def clean_offline_cache_files(arg0: str) -> int:
|
2567
2446
|
...
|
@@ -2581,9 +2460,9 @@ def critical(arg0: str) -> None:
|
|
2581
2460
|
...
|
2582
2461
|
def cuda_version() -> str:
|
2583
2462
|
...
|
2584
|
-
def data_type_name(arg0:
|
2463
|
+
def data_type_name(arg0: DataTypeCxx) -> str:
|
2585
2464
|
...
|
2586
|
-
def data_type_size(arg0:
|
2465
|
+
def data_type_size(arg0: DataTypeCxx) -> int:
|
2587
2466
|
...
|
2588
2467
|
def debug(arg0: str) -> None:
|
2589
2468
|
...
|
@@ -2595,129 +2474,129 @@ def element_type_name(arg0: MeshElementType) -> str:
|
|
2595
2474
|
...
|
2596
2475
|
def error(arg0: str) -> None:
|
2597
2476
|
...
|
2598
|
-
def expr_abs(arg0:
|
2477
|
+
def expr_abs(arg0: ExprCxx) -> ExprCxx:
|
2599
2478
|
...
|
2600
|
-
def expr_acos(arg0:
|
2479
|
+
def expr_acos(arg0: ExprCxx) -> ExprCxx:
|
2601
2480
|
...
|
2602
|
-
def expr_add(arg0:
|
2481
|
+
def expr_add(arg0: ExprCxx, arg1: ExprCxx) -> ExprCxx:
|
2603
2482
|
...
|
2604
|
-
def expr_asin(arg0:
|
2483
|
+
def expr_asin(arg0: ExprCxx) -> ExprCxx:
|
2605
2484
|
...
|
2606
|
-
def expr_assume_in_range(arg0:
|
2485
|
+
def expr_assume_in_range(arg0: ExprCxx, arg1: ExprCxx, arg2: int, arg3: int, arg4: DebugInfo) -> ExprCxx:
|
2607
2486
|
...
|
2608
|
-
def expr_atan2(arg0:
|
2487
|
+
def expr_atan2(arg0: ExprCxx, arg1: ExprCxx) -> ExprCxx:
|
2609
2488
|
...
|
2610
|
-
def expr_atomic_add(arg0:
|
2489
|
+
def expr_atomic_add(arg0: ExprCxx, arg1: ExprCxx) -> ExprCxx:
|
2611
2490
|
...
|
2612
|
-
def expr_atomic_bit_and(arg0:
|
2491
|
+
def expr_atomic_bit_and(arg0: ExprCxx, arg1: ExprCxx) -> ExprCxx:
|
2613
2492
|
...
|
2614
|
-
def expr_atomic_bit_or(arg0:
|
2493
|
+
def expr_atomic_bit_or(arg0: ExprCxx, arg1: ExprCxx) -> ExprCxx:
|
2615
2494
|
...
|
2616
|
-
def expr_atomic_bit_xor(arg0:
|
2495
|
+
def expr_atomic_bit_xor(arg0: ExprCxx, arg1: ExprCxx) -> ExprCxx:
|
2617
2496
|
...
|
2618
|
-
def expr_atomic_max(arg0:
|
2497
|
+
def expr_atomic_max(arg0: ExprCxx, arg1: ExprCxx) -> ExprCxx:
|
2619
2498
|
...
|
2620
|
-
def expr_atomic_min(arg0:
|
2499
|
+
def expr_atomic_min(arg0: ExprCxx, arg1: ExprCxx) -> ExprCxx:
|
2621
2500
|
...
|
2622
|
-
def expr_atomic_mul(arg0:
|
2501
|
+
def expr_atomic_mul(arg0: ExprCxx, arg1: ExprCxx) -> ExprCxx:
|
2623
2502
|
...
|
2624
|
-
def expr_atomic_sub(arg0:
|
2503
|
+
def expr_atomic_sub(arg0: ExprCxx, arg1: ExprCxx) -> ExprCxx:
|
2625
2504
|
...
|
2626
|
-
def expr_bit_and(arg0:
|
2505
|
+
def expr_bit_and(arg0: ExprCxx, arg1: ExprCxx) -> ExprCxx:
|
2627
2506
|
...
|
2628
|
-
def expr_bit_not(arg0:
|
2507
|
+
def expr_bit_not(arg0: ExprCxx) -> ExprCxx:
|
2629
2508
|
...
|
2630
|
-
def expr_bit_or(arg0:
|
2509
|
+
def expr_bit_or(arg0: ExprCxx, arg1: ExprCxx) -> ExprCxx:
|
2631
2510
|
...
|
2632
|
-
def expr_bit_sar(arg0:
|
2511
|
+
def expr_bit_sar(arg0: ExprCxx, arg1: ExprCxx) -> ExprCxx:
|
2633
2512
|
...
|
2634
|
-
def expr_bit_shl(arg0:
|
2513
|
+
def expr_bit_shl(arg0: ExprCxx, arg1: ExprCxx) -> ExprCxx:
|
2635
2514
|
...
|
2636
|
-
def expr_bit_shr(arg0:
|
2515
|
+
def expr_bit_shr(arg0: ExprCxx, arg1: ExprCxx) -> ExprCxx:
|
2637
2516
|
...
|
2638
|
-
def expr_bit_xor(arg0:
|
2517
|
+
def expr_bit_xor(arg0: ExprCxx, arg1: ExprCxx) -> ExprCxx:
|
2639
2518
|
...
|
2640
|
-
def expr_ceil(arg0:
|
2519
|
+
def expr_ceil(arg0: ExprCxx) -> ExprCxx:
|
2641
2520
|
...
|
2642
|
-
def expr_clz(arg0:
|
2521
|
+
def expr_clz(arg0: ExprCxx) -> ExprCxx:
|
2643
2522
|
...
|
2644
|
-
def expr_cmp_eq(arg0:
|
2523
|
+
def expr_cmp_eq(arg0: ExprCxx, arg1: ExprCxx) -> ExprCxx:
|
2645
2524
|
...
|
2646
|
-
def expr_cmp_ge(arg0:
|
2525
|
+
def expr_cmp_ge(arg0: ExprCxx, arg1: ExprCxx) -> ExprCxx:
|
2647
2526
|
...
|
2648
|
-
def expr_cmp_gt(arg0:
|
2527
|
+
def expr_cmp_gt(arg0: ExprCxx, arg1: ExprCxx) -> ExprCxx:
|
2649
2528
|
...
|
2650
|
-
def expr_cmp_le(arg0:
|
2529
|
+
def expr_cmp_le(arg0: ExprCxx, arg1: ExprCxx) -> ExprCxx:
|
2651
2530
|
...
|
2652
|
-
def expr_cmp_lt(arg0:
|
2531
|
+
def expr_cmp_lt(arg0: ExprCxx, arg1: ExprCxx) -> ExprCxx:
|
2653
2532
|
...
|
2654
|
-
def expr_cmp_ne(arg0:
|
2533
|
+
def expr_cmp_ne(arg0: ExprCxx, arg1: ExprCxx) -> ExprCxx:
|
2655
2534
|
...
|
2656
|
-
def expr_cos(arg0:
|
2535
|
+
def expr_cos(arg0: ExprCxx) -> ExprCxx:
|
2657
2536
|
...
|
2658
|
-
def expr_div(arg0:
|
2537
|
+
def expr_div(arg0: ExprCxx, arg1: ExprCxx) -> ExprCxx:
|
2659
2538
|
...
|
2660
|
-
def expr_exp(arg0:
|
2539
|
+
def expr_exp(arg0: ExprCxx) -> ExprCxx:
|
2661
2540
|
...
|
2662
|
-
def expr_field(arg0:
|
2541
|
+
def expr_field(arg0: ExprCxx, arg1: DataTypeCxx) -> ExprCxx:
|
2663
2542
|
...
|
2664
|
-
def expr_floor(arg0:
|
2543
|
+
def expr_floor(arg0: ExprCxx) -> ExprCxx:
|
2665
2544
|
...
|
2666
|
-
def expr_floordiv(arg0:
|
2545
|
+
def expr_floordiv(arg0: ExprCxx, arg1: ExprCxx) -> ExprCxx:
|
2667
2546
|
...
|
2668
|
-
def expr_frexp(arg0:
|
2547
|
+
def expr_frexp(arg0: ExprCxx) -> ExprCxx:
|
2669
2548
|
...
|
2670
|
-
def expr_ifte(arg0:
|
2549
|
+
def expr_ifte(arg0: ExprCxx, arg1: ExprCxx, arg2: ExprCxx) -> ExprCxx:
|
2671
2550
|
...
|
2672
|
-
def expr_inv(arg0:
|
2551
|
+
def expr_inv(arg0: ExprCxx) -> ExprCxx:
|
2673
2552
|
...
|
2674
|
-
def expr_log(arg0:
|
2553
|
+
def expr_log(arg0: ExprCxx) -> ExprCxx:
|
2675
2554
|
...
|
2676
|
-
def expr_logic_not(arg0:
|
2555
|
+
def expr_logic_not(arg0: ExprCxx) -> ExprCxx:
|
2677
2556
|
...
|
2678
|
-
def expr_logical_and(arg0:
|
2557
|
+
def expr_logical_and(arg0: ExprCxx, arg1: ExprCxx) -> ExprCxx:
|
2679
2558
|
...
|
2680
|
-
def expr_logical_or(arg0:
|
2559
|
+
def expr_logical_or(arg0: ExprCxx, arg1: ExprCxx) -> ExprCxx:
|
2681
2560
|
...
|
2682
|
-
def expr_loop_unique(arg0:
|
2561
|
+
def expr_loop_unique(arg0: ExprCxx, arg1: list[SNodeCxx], arg2: DebugInfo) -> ExprCxx:
|
2683
2562
|
...
|
2684
|
-
def expr_matrix_field(arg0: list[
|
2563
|
+
def expr_matrix_field(arg0: list[ExprCxx], arg1: tuple[int, ...]) -> ExprCxx:
|
2685
2564
|
...
|
2686
|
-
def expr_max(arg0:
|
2565
|
+
def expr_max(arg0: ExprCxx, arg1: ExprCxx) -> ExprCxx:
|
2687
2566
|
...
|
2688
|
-
def expr_min(arg0:
|
2567
|
+
def expr_min(arg0: ExprCxx, arg1: ExprCxx) -> ExprCxx:
|
2689
2568
|
...
|
2690
|
-
def expr_mod(arg0:
|
2569
|
+
def expr_mod(arg0: ExprCxx, arg1: ExprCxx) -> ExprCxx:
|
2691
2570
|
...
|
2692
|
-
def expr_mul(arg0:
|
2571
|
+
def expr_mul(arg0: ExprCxx, arg1: ExprCxx) -> ExprCxx:
|
2693
2572
|
...
|
2694
|
-
def expr_neg(arg0:
|
2573
|
+
def expr_neg(arg0: ExprCxx) -> ExprCxx:
|
2695
2574
|
...
|
2696
|
-
def expr_popcnt(arg0:
|
2575
|
+
def expr_popcnt(arg0: ExprCxx) -> ExprCxx:
|
2697
2576
|
...
|
2698
|
-
def expr_pow(arg0:
|
2577
|
+
def expr_pow(arg0: ExprCxx, arg1: ExprCxx) -> ExprCxx:
|
2699
2578
|
...
|
2700
|
-
def expr_rcp(arg0:
|
2579
|
+
def expr_rcp(arg0: ExprCxx) -> ExprCxx:
|
2701
2580
|
...
|
2702
|
-
def expr_round(arg0:
|
2581
|
+
def expr_round(arg0: ExprCxx) -> ExprCxx:
|
2703
2582
|
...
|
2704
|
-
def expr_rsqrt(arg0:
|
2583
|
+
def expr_rsqrt(arg0: ExprCxx) -> ExprCxx:
|
2705
2584
|
...
|
2706
|
-
def expr_select(arg0:
|
2585
|
+
def expr_select(arg0: ExprCxx, arg1: ExprCxx, arg2: ExprCxx) -> ExprCxx:
|
2707
2586
|
...
|
2708
|
-
def expr_sin(arg0:
|
2587
|
+
def expr_sin(arg0: ExprCxx) -> ExprCxx:
|
2709
2588
|
...
|
2710
|
-
def expr_sqrt(arg0:
|
2589
|
+
def expr_sqrt(arg0: ExprCxx) -> ExprCxx:
|
2711
2590
|
...
|
2712
|
-
def expr_sub(arg0:
|
2591
|
+
def expr_sub(arg0: ExprCxx, arg1: ExprCxx) -> ExprCxx:
|
2713
2592
|
...
|
2714
|
-
def expr_tan(arg0:
|
2593
|
+
def expr_tan(arg0: ExprCxx) -> ExprCxx:
|
2715
2594
|
...
|
2716
|
-
def expr_tanh(arg0:
|
2595
|
+
def expr_tanh(arg0: ExprCxx) -> ExprCxx:
|
2717
2596
|
...
|
2718
|
-
def expr_truediv(arg0:
|
2597
|
+
def expr_truediv(arg0: ExprCxx, arg1: ExprCxx) -> ExprCxx:
|
2719
2598
|
...
|
2720
|
-
def finalize_snode_tree(arg0: SNodeRegistry, arg1:
|
2599
|
+
def finalize_snode_tree(arg0: SNodeRegistry, arg1: SNodeCxx, arg2: Program, arg3: bool) -> SNodeTreeCxx:
|
2721
2600
|
...
|
2722
2601
|
def flush_log() -> None:
|
2723
2602
|
...
|
@@ -2727,33 +2606,31 @@ def get_commit_hash() -> str:
|
|
2727
2606
|
...
|
2728
2607
|
def get_default_float_size() -> int:
|
2729
2608
|
...
|
2730
|
-
def get_external_tensor_dim(arg0:
|
2609
|
+
def get_external_tensor_dim(arg0: ExprCxx) -> int:
|
2731
2610
|
...
|
2732
|
-
def get_external_tensor_element_dim(arg0:
|
2611
|
+
def get_external_tensor_element_dim(arg0: ExprCxx) -> int:
|
2733
2612
|
...
|
2734
|
-
def get_external_tensor_element_shape(arg0:
|
2613
|
+
def get_external_tensor_element_shape(arg0: ExprCxx) -> tuple[int, ...]:
|
2735
2614
|
...
|
2736
|
-
def get_external_tensor_element_type(arg0:
|
2615
|
+
def get_external_tensor_element_type(arg0: ExprCxx) -> DataTypeCxx:
|
2737
2616
|
...
|
2738
|
-
def get_external_tensor_needs_grad(arg0:
|
2617
|
+
def get_external_tensor_needs_grad(arg0: ExprCxx) -> bool:
|
2739
2618
|
...
|
2740
|
-
def get_external_tensor_real_func_args(arg0:
|
2619
|
+
def get_external_tensor_real_func_args(arg0: ExprCxx, arg1: DebugInfo) -> list[ExprCxx]:
|
2741
2620
|
...
|
2742
|
-
def get_external_tensor_shape_along_axis(arg0:
|
2621
|
+
def get_external_tensor_shape_along_axis(arg0: ExprCxx, arg1: int, arg2: DebugInfo) -> ExprCxx:
|
2743
2622
|
...
|
2744
2623
|
def get_llvm_target_support() -> str:
|
2745
2624
|
...
|
2746
|
-
def get_max_num_args() -> int:
|
2747
|
-
...
|
2748
2625
|
def get_max_num_indices() -> int:
|
2749
2626
|
...
|
2750
2627
|
def get_num_elements(arg0: MeshPtr, arg1: MeshElementType) -> int:
|
2751
2628
|
...
|
2752
2629
|
def get_python_package_dir() -> str:
|
2753
2630
|
...
|
2754
|
-
def get_relation_access(arg0: ..., arg1:
|
2631
|
+
def get_relation_access(arg0: ..., arg1: ExprCxx, arg2: ..., arg3: ExprCxx, arg4: DebugInfo) -> ExprCxx:
|
2755
2632
|
...
|
2756
|
-
def get_relation_size(arg0: ..., arg1:
|
2633
|
+
def get_relation_size(arg0: ..., arg1: ExprCxx, arg2: ..., arg3: DebugInfo) -> ExprCxx:
|
2757
2634
|
...
|
2758
2635
|
def get_repo_dir() -> str:
|
2759
2636
|
...
|
@@ -2771,69 +2648,69 @@ def host_arch() -> Arch:
|
|
2771
2648
|
...
|
2772
2649
|
def info(arg0: str) -> None:
|
2773
2650
|
...
|
2774
|
-
def insert_internal_func_call(arg0: ..., arg1: ExprGroup) ->
|
2651
|
+
def insert_internal_func_call(arg0: ..., arg1: ExprGroup) -> ExprCxx:
|
2775
2652
|
...
|
2776
2653
|
def inverse_relation(arg0: MeshRelationType) -> MeshRelationType:
|
2777
2654
|
...
|
2778
2655
|
def is_extension_supported(arg0: Arch, arg1: Extension) -> bool:
|
2779
2656
|
...
|
2780
|
-
def is_integral(arg0:
|
2657
|
+
def is_integral(arg0: DataTypeCxx) -> bool:
|
2781
2658
|
...
|
2782
|
-
def is_quant(arg0:
|
2659
|
+
def is_quant(arg0: DataTypeCxx) -> bool:
|
2783
2660
|
...
|
2784
|
-
def is_real(arg0:
|
2661
|
+
def is_real(arg0: DataTypeCxx) -> bool:
|
2785
2662
|
...
|
2786
|
-
def is_signed(arg0:
|
2663
|
+
def is_signed(arg0: DataTypeCxx) -> bool:
|
2787
2664
|
...
|
2788
|
-
def is_tensor(arg0:
|
2665
|
+
def is_tensor(arg0: DataTypeCxx) -> bool:
|
2789
2666
|
...
|
2790
|
-
def is_unsigned(arg0:
|
2667
|
+
def is_unsigned(arg0: DataTypeCxx) -> bool:
|
2791
2668
|
...
|
2792
2669
|
def libdevice_path() -> str:
|
2793
2670
|
...
|
2794
2671
|
def logging_effective(arg0: str) -> bool:
|
2795
2672
|
...
|
2796
|
-
def make_arg_load_expr(arg_id:
|
2673
|
+
def make_arg_load_expr(arg_id: tuple[int, ...], dt: DataTypeCxx, is_ptr: bool = False, create_load: bool = True, arg_depth: int = 0, dbg_info: DebugInfo = ...) -> ExprCxx:
|
2797
2674
|
...
|
2798
|
-
def make_binary_op_expr(arg0: BinaryOpType, arg1:
|
2675
|
+
def make_binary_op_expr(arg0: BinaryOpType, arg1: ExprCxx, arg2: ExprCxx) -> ExprCxx:
|
2799
2676
|
...
|
2800
|
-
def make_const_expr_bool(arg0: DataType, arg1: bool | np.bool_) ->
|
2677
|
+
def make_const_expr_bool(arg0: DataType, arg1: bool | np.bool_) -> ExprCxx:
|
2801
2678
|
...
|
2802
|
-
def make_const_expr_fp(arg0: DataType, arg1: float | np.floating) ->
|
2679
|
+
def make_const_expr_fp(arg0: DataType, arg1: float | np.floating) -> ExprCxx:
|
2803
2680
|
...
|
2804
|
-
def make_const_expr_int(arg0: DataType, arg1: int | np.int32 | np.int64) ->
|
2681
|
+
def make_const_expr_int(arg0: DataType, arg1: int | np.int32 | np.int64) -> ExprCxx:
|
2805
2682
|
...
|
2806
2683
|
def make_cucg_solver(arg0: SparseMatrix, arg1: int, arg2: float, arg3: bool) -> CUCG:
|
2807
2684
|
...
|
2808
|
-
def make_cusparse_solver(arg0:
|
2685
|
+
def make_cusparse_solver(arg0: DataTypeCxx, arg1: str, arg2: str) -> SparseSolver:
|
2809
2686
|
...
|
2810
2687
|
def make_double_cg_solver(arg0: SparseMatrix, arg1: int, arg2: float, arg3: bool) -> CGd:
|
2811
2688
|
...
|
2812
|
-
def make_external_tensor_expr(arg0:
|
2689
|
+
def make_external_tensor_expr(arg0: DataTypeCxx, arg1: int, arg2: tuple[int, ...], arg3: bool, arg4: int, arg5: BoundaryMode) -> ExprCxx:
|
2813
2690
|
...
|
2814
|
-
def make_external_tensor_grad_expr(arg0:
|
2691
|
+
def make_external_tensor_grad_expr(arg0: ExprCxx) -> ExprCxx:
|
2815
2692
|
...
|
2816
2693
|
def make_float_cg_solver(arg0: SparseMatrix, arg1: int, arg2: float, arg3: bool) -> CGf:
|
2817
2694
|
...
|
2818
|
-
def make_frontend_assign_stmt(arg0:
|
2695
|
+
def make_frontend_assign_stmt(arg0: ExprCxx, arg1: ExprCxx, arg2: DebugInfo) -> Stmt:
|
2819
2696
|
...
|
2820
|
-
def make_get_element_expr(arg0: Expr, arg1: tuple[int, ...], arg2: DebugInfo) ->
|
2697
|
+
def make_get_element_expr(arg0: Expr, arg1: tuple[int, ...], arg2: DebugInfo) -> ExprCxx:
|
2821
2698
|
...
|
2822
2699
|
def make_global_load_stmt(arg0: Stmt) -> Stmt:
|
2823
2700
|
...
|
2824
2701
|
def make_global_store_stmt(arg0: Stmt, arg1: Stmt) -> Stmt:
|
2825
2702
|
...
|
2826
|
-
def make_rand_expr(arg0:
|
2703
|
+
def make_rand_expr(arg0: DataTypeCxx, arg1: DebugInfo) -> ExprCxx:
|
2827
2704
|
...
|
2828
|
-
def make_reference(arg0:
|
2705
|
+
def make_reference(arg0: ExprCxx, arg1: DebugInfo) -> ExprCxx:
|
2829
2706
|
...
|
2830
|
-
def make_rw_texture_ptr_expr(arg0:
|
2707
|
+
def make_rw_texture_ptr_expr(arg0: tuple[int, ...], arg1: int, arg2: int, arg3: Format, arg4: int, arg5: DebugInfo) -> ExprCxx:
|
2831
2708
|
...
|
2832
|
-
def make_sparse_solver(arg0:
|
2709
|
+
def make_sparse_solver(arg0: DataTypeCxx, arg1: str, arg2: str) -> SparseSolver:
|
2833
2710
|
...
|
2834
|
-
def make_texture_ptr_expr(arg0:
|
2711
|
+
def make_texture_ptr_expr(arg0: tuple[int, ...], arg1: int, arg2: int, arg3: DebugInfo) -> ExprCxx:
|
2835
2712
|
...
|
2836
|
-
def make_unary_op_expr(arg0: UnaryOpType, arg1:
|
2713
|
+
def make_unary_op_expr(arg0: UnaryOpType, arg1: ExprCxx) -> ExprCxx:
|
2837
2714
|
...
|
2838
2715
|
def pop_python_print_buffer() -> str:
|
2839
2716
|
...
|
@@ -2841,7 +2718,7 @@ def print_all_units() -> None:
|
|
2841
2718
|
...
|
2842
2719
|
def print_profile_info() -> None:
|
2843
2720
|
...
|
2844
|
-
def promoted_type(arg0:
|
2721
|
+
def promoted_type(arg0: DataTypeCxx, arg1: DataTypeCxx) -> DataTypeCxx:
|
2845
2722
|
...
|
2846
2723
|
def query_int64(arg0: str) -> int:
|
2847
2724
|
...
|
@@ -2853,7 +2730,7 @@ def set_core_state_python_imported(arg0: bool) -> None:
|
|
2853
2730
|
...
|
2854
2731
|
def set_core_trigger_gdb_when_crash(arg0: bool) -> None:
|
2855
2732
|
...
|
2856
|
-
def set_index_mapping(arg0: MeshPtr, arg1: MeshElementType, arg2: ConvType, arg3:
|
2733
|
+
def set_index_mapping(arg0: MeshPtr, arg1: MeshElementType, arg2: ConvType, arg3: SNodeCxx) -> None:
|
2857
2734
|
...
|
2858
2735
|
def set_lib_dir(arg0: str) -> None:
|
2859
2736
|
...
|
@@ -2865,25 +2742,23 @@ def set_num_elements(arg0: MeshPtr, arg1: MeshElementType, arg2: int) -> None:
|
|
2865
2742
|
...
|
2866
2743
|
def set_num_patches(arg0: MeshPtr, arg1: int) -> None:
|
2867
2744
|
...
|
2868
|
-
def set_owned_offset(arg0: MeshPtr, arg1: MeshElementType, arg2:
|
2745
|
+
def set_owned_offset(arg0: MeshPtr, arg1: MeshElementType, arg2: SNodeCxx) -> None:
|
2869
2746
|
...
|
2870
2747
|
def set_patch_max_element_num(arg0: MeshPtr, arg1: MeshElementType, arg2: int) -> None:
|
2871
2748
|
...
|
2872
2749
|
def set_python_package_dir(arg0: str) -> None:
|
2873
2750
|
...
|
2874
|
-
def set_relation_dynamic(arg0: MeshPtr, arg1: MeshRelationType, arg2:
|
2751
|
+
def set_relation_dynamic(arg0: MeshPtr, arg1: MeshRelationType, arg2: SNodeCxx, arg3: SNodeCxx, arg4: SNodeCxx) -> None:
|
2875
2752
|
...
|
2876
|
-
def set_relation_fixed(arg0: MeshPtr, arg1: MeshRelationType, arg2:
|
2753
|
+
def set_relation_fixed(arg0: MeshPtr, arg1: MeshRelationType, arg2: SNodeCxx) -> None:
|
2877
2754
|
...
|
2878
2755
|
def set_tmp_dir(arg0: str) -> None:
|
2879
2756
|
...
|
2880
|
-
def set_total_offset(arg0: MeshPtr, arg1: MeshElementType, arg2:
|
2881
|
-
...
|
2882
|
-
def set_vulkan_visible_device(arg0: str) -> None:
|
2757
|
+
def set_total_offset(arg0: MeshPtr, arg1: MeshElementType, arg2: SNodeCxx) -> None:
|
2883
2758
|
...
|
2884
2759
|
def start_memory_monitoring(arg0: str, arg1: int, arg2: float) -> None:
|
2885
2760
|
...
|
2886
|
-
def subscript_with_multiple_indices(arg0:
|
2761
|
+
def subscript_with_multiple_indices(arg0: ExprCxx, arg1: list[ExprGroup], arg2: tuple[int, ...], arg3: DebugInfo) -> ExprCxx:
|
2887
2762
|
...
|
2888
2763
|
def test_cpp_exception() -> None:
|
2889
2764
|
...
|
@@ -2911,7 +2786,7 @@ def trigger_crash() -> None:
|
|
2911
2786
|
...
|
2912
2787
|
def trigger_sig_fpe() -> int:
|
2913
2788
|
...
|
2914
|
-
def value_cast(arg0:
|
2789
|
+
def value_cast(arg0: ExprCxx, arg1: DataTypeCxx) -> ExprCxx:
|
2915
2790
|
...
|
2916
2791
|
def wait_for_debugger() -> None:
|
2917
2792
|
...
|
@@ -2921,14 +2796,8 @@ def with_amdgpu() -> bool:
|
|
2921
2796
|
...
|
2922
2797
|
def with_cuda() -> bool:
|
2923
2798
|
...
|
2924
|
-
def with_dx11() -> bool:
|
2925
|
-
...
|
2926
|
-
def with_dx12() -> bool:
|
2927
|
-
...
|
2928
2799
|
def with_metal() -> bool:
|
2929
2800
|
...
|
2930
|
-
def with_opengl(arg0: bool) -> bool:
|
2931
|
-
...
|
2932
2801
|
def with_vulkan() -> bool:
|
2933
2802
|
...
|
2934
2803
|
ADJOINT: SNodeGradType # value = <SNodeGradType.ADJOINT: 1>
|
@@ -2941,20 +2810,20 @@ CLAMP: BoundaryMode # value = <BoundaryMode.CLAMP: 1>
|
|
2941
2810
|
CV: MeshRelationType # value = <MeshRelationType.CV: 12>
|
2942
2811
|
Cell: MeshElementType # value = <MeshElementType.Cell: 3>
|
2943
2812
|
DUAL: SNodeGradType # value = <SNodeGradType.DUAL: 2>
|
2944
|
-
DataType_f16:
|
2945
|
-
DataType_f32:
|
2946
|
-
DataType_f64:
|
2947
|
-
DataType_gen:
|
2948
|
-
DataType_i16:
|
2949
|
-
DataType_i32:
|
2950
|
-
DataType_i64:
|
2951
|
-
DataType_i8:
|
2952
|
-
DataType_u1:
|
2953
|
-
DataType_u16:
|
2954
|
-
DataType_u32:
|
2955
|
-
DataType_u64:
|
2956
|
-
DataType_u8:
|
2957
|
-
DataType_unknown:
|
2813
|
+
DataType_f16: DataTypeCxx # value = <gstaichi._lib.core.gstaichi_python.DataTypeCxx object>
|
2814
|
+
DataType_f32: DataTypeCxx # value = <gstaichi._lib.core.gstaichi_python.DataTypeCxx object>
|
2815
|
+
DataType_f64: DataTypeCxx # value = <gstaichi._lib.core.gstaichi_python.DataTypeCxx object>
|
2816
|
+
DataType_gen: DataTypeCxx # value = <gstaichi._lib.core.gstaichi_python.DataTypeCxx object>
|
2817
|
+
DataType_i16: DataTypeCxx # value = <gstaichi._lib.core.gstaichi_python.DataTypeCxx object>
|
2818
|
+
DataType_i32: DataTypeCxx # value = <gstaichi._lib.core.gstaichi_python.DataTypeCxx object>
|
2819
|
+
DataType_i64: DataTypeCxx # value = <gstaichi._lib.core.gstaichi_python.DataTypeCxx object>
|
2820
|
+
DataType_i8: DataTypeCxx # value = <gstaichi._lib.core.gstaichi_python.DataTypeCxx object>
|
2821
|
+
DataType_u1: DataTypeCxx # value = <gstaichi._lib.core.gstaichi_python.DataTypeCxx object>
|
2822
|
+
DataType_u16: DataTypeCxx # value = <gstaichi._lib.core.gstaichi_python.DataTypeCxx object>
|
2823
|
+
DataType_u32: DataTypeCxx # value = <gstaichi._lib.core.gstaichi_python.DataTypeCxx object>
|
2824
|
+
DataType_u64: DataTypeCxx # value = <gstaichi._lib.core.gstaichi_python.DataTypeCxx object>
|
2825
|
+
DataType_u8: DataTypeCxx # value = <gstaichi._lib.core.gstaichi_python.DataTypeCxx object>
|
2826
|
+
DataType_unknown: DataTypeCxx # value = <gstaichi._lib.core.gstaichi_python.DataTypeCxx object>
|
2958
2827
|
EC: MeshRelationType # value = <MeshRelationType.EC: 7>
|
2959
2828
|
EE: MeshRelationType # value = <MeshRelationType.EE: 5>
|
2960
2829
|
EF: MeshRelationType # value = <MeshRelationType.EF: 6>
|
@@ -2966,16 +2835,11 @@ FF: MeshRelationType # value = <MeshRelationType.FF: 10>
|
|
2966
2835
|
FORWARD: AutodiffMode # value = <AutodiffMode.FORWARD: 0>
|
2967
2836
|
FV: MeshRelationType # value = <MeshRelationType.FV: 8>
|
2968
2837
|
Face: MeshElementType # value = <MeshElementType.Face: 2>
|
2969
|
-
MATRIX: ArgKind # value = <ArgKind.MATRIX: 1>
|
2970
|
-
NDARRAY: ArgKind # value = <ArgKind.NDARRAY: 2>
|
2971
2838
|
NONE: AutodiffMode # value = <AutodiffMode.NONE: 2>
|
2972
2839
|
NULL: Layout # value = <Layout.NULL: 2>
|
2973
2840
|
PRIMAL: SNodeGradType # value = <SNodeGradType.PRIMAL: 0>
|
2974
2841
|
REVERSE: AutodiffMode # value = <AutodiffMode.REVERSE: 1>
|
2975
|
-
RWTEXTURE: ArgKind # value = <ArgKind.RWTEXTURE: 4>
|
2976
|
-
SCALAR: ArgKind # value = <ArgKind.SCALAR: 0>
|
2977
2842
|
SOA: Layout # value = <Layout.SOA: 1>
|
2978
|
-
TEXTURE: ArgKind # value = <ArgKind.TEXTURE: 3>
|
2979
2843
|
Tetrahedron: MeshTopology # value = <MeshTopology.Tetrahedron: 4>
|
2980
2844
|
Triangle: MeshTopology # value = <MeshTopology.Triangle: 3>
|
2981
2845
|
UNSAFE: BoundaryMode # value = <BoundaryMode.UNSAFE: 0>
|
@@ -2989,7 +2853,7 @@ abs: UnaryOpType # value = <UnaryOpType.abs: 8>
|
|
2989
2853
|
acos: UnaryOpType # value = <UnaryOpType.acos: 13>
|
2990
2854
|
add: BinaryOpType # value = <BinaryOpType.add: 1>
|
2991
2855
|
adstack: Extension # value = <Extension.adstack: 5>
|
2992
|
-
amdgpu: Arch # value = <Arch.amdgpu:
|
2856
|
+
amdgpu: Arch # value = <Arch.amdgpu: 6>
|
2993
2857
|
arm64: Arch # value = <Arch.arm64: 1>
|
2994
2858
|
asin: UnaryOpType # value = <UnaryOpType.asin: 11>
|
2995
2859
|
assertion: Extension # value = <Extension.assertion: 7>
|
@@ -3020,8 +2884,6 @@ cuda: Arch # value = <Arch.cuda: 3>
|
|
3020
2884
|
data64: Extension # value = <Extension.data64: 4>
|
3021
2885
|
dense: SNodeType # value = <SNodeType.dense: 1>
|
3022
2886
|
div: BinaryOpType # value = <BinaryOpType.div: 5>
|
3023
|
-
dx11: Arch # value = <Arch.dx11: 6>
|
3024
|
-
dx12: Arch # value = <Arch.dx12: 7>
|
3025
2887
|
dynamic: SNodeType # value = <SNodeType.dynamic: 2>
|
3026
2888
|
exp: UnaryOpType # value = <UnaryOpType.exp: 18>
|
3027
2889
|
extfunc: Extension # value = <Extension.extfunc: 8>
|
@@ -3029,7 +2891,6 @@ floor: UnaryOpType # value = <UnaryOpType.floor: 3>
|
|
3029
2891
|
floordiv: BinaryOpType # value = <BinaryOpType.floordiv: 4>
|
3030
2892
|
frexp: UnaryOpType # value = <UnaryOpType.frexp: 4>
|
3031
2893
|
g2r: ConvType # value = <ConvType.g2r: 2>
|
3032
|
-
gles: Arch # value = <Arch.gles: 11>
|
3033
2894
|
hash: SNodeType # value = <SNodeType.hash: 5>
|
3034
2895
|
inv: UnaryOpType # value = <UnaryOpType.inv: 16>
|
3035
2896
|
js: Arch # value = <Arch.js: 2>
|
@@ -3050,8 +2911,7 @@ min: BinaryOpType # value = <BinaryOpType.min: 8>
|
|
3050
2911
|
mod: BinaryOpType # value = <BinaryOpType.mod: 6>
|
3051
2912
|
mul: BinaryOpType # value = <BinaryOpType.mul: 0>
|
3052
2913
|
neg: UnaryOpType # value = <UnaryOpType.neg: 0>
|
3053
|
-
opencl: Arch # value = <Arch.opencl:
|
3054
|
-
opengl: Arch # value = <Arch.opengl: 5>
|
2914
|
+
opencl: Arch # value = <Arch.opencl: 5>
|
3055
2915
|
place: SNodeType # value = <SNodeType.place: 6>
|
3056
2916
|
pointer: SNodeType # value = <SNodeType.pointer: 3>
|
3057
2917
|
popcnt: UnaryOpType # value = <UnaryOpType.popcnt: 20>
|
@@ -3073,5 +2933,5 @@ tan: UnaryOpType # value = <UnaryOpType.tan: 14>
|
|
3073
2933
|
tanh: UnaryOpType # value = <UnaryOpType.tanh: 15>
|
3074
2934
|
truediv: BinaryOpType # value = <BinaryOpType.truediv: 3>
|
3075
2935
|
undefined: UnaryOpType # value = <UnaryOpType.undefined: 25>
|
3076
|
-
vulkan: Arch # value = <Arch.vulkan:
|
2936
|
+
vulkan: Arch # value = <Arch.vulkan: 7>
|
3077
2937
|
x64: Arch # value = <Arch.x64: 0>
|