warp-lang 1.8.1__py3-none-manylinux_2_34_aarch64.whl → 1.9.1__py3-none-manylinux_2_34_aarch64.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.

Potentially problematic release.


This version of warp-lang might be problematic. Click here for more details.

Files changed (141) hide show
  1. warp/__init__.py +282 -103
  2. warp/__init__.pyi +1904 -114
  3. warp/bin/warp-clang.so +0 -0
  4. warp/bin/warp.so +0 -0
  5. warp/build.py +93 -30
  6. warp/build_dll.py +331 -101
  7. warp/builtins.py +1244 -160
  8. warp/codegen.py +317 -206
  9. warp/config.py +1 -1
  10. warp/context.py +1465 -789
  11. warp/examples/core/example_marching_cubes.py +1 -0
  12. warp/examples/core/example_render_opengl.py +100 -3
  13. warp/examples/fem/example_apic_fluid.py +98 -52
  14. warp/examples/fem/example_convection_diffusion_dg.py +25 -4
  15. warp/examples/fem/example_diffusion_mgpu.py +8 -3
  16. warp/examples/fem/utils.py +68 -22
  17. warp/examples/interop/example_jax_kernel.py +2 -1
  18. warp/fabric.py +1 -1
  19. warp/fem/cache.py +27 -19
  20. warp/fem/domain.py +2 -2
  21. warp/fem/field/nodal_field.py +2 -2
  22. warp/fem/field/virtual.py +264 -166
  23. warp/fem/geometry/geometry.py +5 -5
  24. warp/fem/integrate.py +129 -51
  25. warp/fem/space/restriction.py +4 -0
  26. warp/fem/space/shape/tet_shape_function.py +3 -10
  27. warp/jax_experimental/custom_call.py +25 -2
  28. warp/jax_experimental/ffi.py +22 -1
  29. warp/jax_experimental/xla_ffi.py +16 -7
  30. warp/marching_cubes.py +708 -0
  31. warp/native/array.h +99 -4
  32. warp/native/builtin.h +86 -9
  33. warp/native/bvh.cpp +64 -28
  34. warp/native/bvh.cu +58 -58
  35. warp/native/bvh.h +2 -2
  36. warp/native/clang/clang.cpp +7 -7
  37. warp/native/coloring.cpp +8 -2
  38. warp/native/crt.cpp +2 -2
  39. warp/native/crt.h +3 -5
  40. warp/native/cuda_util.cpp +41 -10
  41. warp/native/cuda_util.h +10 -4
  42. warp/native/exports.h +1842 -1908
  43. warp/native/fabric.h +2 -1
  44. warp/native/hashgrid.cpp +37 -37
  45. warp/native/hashgrid.cu +2 -2
  46. warp/native/initializer_array.h +1 -1
  47. warp/native/intersect.h +2 -2
  48. warp/native/mat.h +1910 -116
  49. warp/native/mathdx.cpp +43 -43
  50. warp/native/mesh.cpp +24 -24
  51. warp/native/mesh.cu +26 -26
  52. warp/native/mesh.h +4 -2
  53. warp/native/nanovdb/GridHandle.h +179 -12
  54. warp/native/nanovdb/HostBuffer.h +8 -7
  55. warp/native/nanovdb/NanoVDB.h +517 -895
  56. warp/native/nanovdb/NodeManager.h +323 -0
  57. warp/native/nanovdb/PNanoVDB.h +2 -2
  58. warp/native/quat.h +331 -14
  59. warp/native/range.h +7 -1
  60. warp/native/reduce.cpp +10 -10
  61. warp/native/reduce.cu +13 -14
  62. warp/native/runlength_encode.cpp +2 -2
  63. warp/native/runlength_encode.cu +5 -5
  64. warp/native/scan.cpp +3 -3
  65. warp/native/scan.cu +4 -4
  66. warp/native/sort.cpp +10 -10
  67. warp/native/sort.cu +40 -31
  68. warp/native/sort.h +2 -0
  69. warp/native/sparse.cpp +8 -8
  70. warp/native/sparse.cu +13 -13
  71. warp/native/spatial.h +366 -17
  72. warp/native/temp_buffer.h +2 -2
  73. warp/native/tile.h +471 -82
  74. warp/native/vec.h +328 -14
  75. warp/native/volume.cpp +54 -54
  76. warp/native/volume.cu +1 -1
  77. warp/native/volume.h +2 -1
  78. warp/native/volume_builder.cu +30 -37
  79. warp/native/warp.cpp +150 -149
  80. warp/native/warp.cu +377 -216
  81. warp/native/warp.h +227 -226
  82. warp/optim/linear.py +736 -271
  83. warp/render/imgui_manager.py +289 -0
  84. warp/render/render_opengl.py +99 -18
  85. warp/render/render_usd.py +1 -0
  86. warp/sim/graph_coloring.py +2 -2
  87. warp/sparse.py +558 -175
  88. warp/tests/aux_test_module_aot.py +7 -0
  89. warp/tests/cuda/test_async.py +3 -3
  90. warp/tests/cuda/test_conditional_captures.py +101 -0
  91. warp/tests/geometry/test_hash_grid.py +38 -0
  92. warp/tests/geometry/test_marching_cubes.py +233 -12
  93. warp/tests/interop/test_jax.py +608 -28
  94. warp/tests/sim/test_coloring.py +6 -6
  95. warp/tests/test_array.py +58 -5
  96. warp/tests/test_codegen.py +4 -3
  97. warp/tests/test_context.py +8 -15
  98. warp/tests/test_enum.py +136 -0
  99. warp/tests/test_examples.py +2 -2
  100. warp/tests/test_fem.py +49 -6
  101. warp/tests/test_fixedarray.py +229 -0
  102. warp/tests/test_func.py +18 -15
  103. warp/tests/test_future_annotations.py +7 -5
  104. warp/tests/test_linear_solvers.py +30 -0
  105. warp/tests/test_map.py +15 -1
  106. warp/tests/test_mat.py +1518 -378
  107. warp/tests/test_mat_assign_copy.py +178 -0
  108. warp/tests/test_mat_constructors.py +574 -0
  109. warp/tests/test_module_aot.py +287 -0
  110. warp/tests/test_print.py +69 -0
  111. warp/tests/test_quat.py +140 -34
  112. warp/tests/test_quat_assign_copy.py +145 -0
  113. warp/tests/test_reload.py +2 -1
  114. warp/tests/test_sparse.py +71 -0
  115. warp/tests/test_spatial.py +140 -34
  116. warp/tests/test_spatial_assign_copy.py +160 -0
  117. warp/tests/test_struct.py +43 -3
  118. warp/tests/test_tuple.py +96 -0
  119. warp/tests/test_types.py +61 -20
  120. warp/tests/test_vec.py +179 -34
  121. warp/tests/test_vec_assign_copy.py +143 -0
  122. warp/tests/tile/test_tile.py +245 -18
  123. warp/tests/tile/test_tile_cholesky.py +605 -0
  124. warp/tests/tile/test_tile_load.py +169 -0
  125. warp/tests/tile/test_tile_mathdx.py +2 -558
  126. warp/tests/tile/test_tile_matmul.py +1 -1
  127. warp/tests/tile/test_tile_mlp.py +1 -1
  128. warp/tests/tile/test_tile_shared_memory.py +5 -5
  129. warp/tests/unittest_suites.py +6 -0
  130. warp/tests/walkthrough_debug.py +1 -1
  131. warp/thirdparty/unittest_parallel.py +108 -9
  132. warp/types.py +571 -267
  133. warp/utils.py +68 -86
  134. {warp_lang-1.8.1.dist-info → warp_lang-1.9.1.dist-info}/METADATA +29 -69
  135. {warp_lang-1.8.1.dist-info → warp_lang-1.9.1.dist-info}/RECORD +138 -128
  136. warp/native/marching.cpp +0 -19
  137. warp/native/marching.cu +0 -514
  138. warp/native/marching.h +0 -19
  139. {warp_lang-1.8.1.dist-info → warp_lang-1.9.1.dist-info}/WHEEL +0 -0
  140. {warp_lang-1.8.1.dist-info → warp_lang-1.9.1.dist-info}/licenses/LICENSE.md +0 -0
  141. {warp_lang-1.8.1.dist-info → warp_lang-1.9.1.dist-info}/top_level.txt +0 -0
warp/__init__.py CHANGED
@@ -15,127 +15,306 @@
15
15
 
16
16
  # isort: skip_file
17
17
 
18
- # for autocomplete on builtins
19
- # from warp.stubs import *
20
-
21
- from warp.types import array, array1d, array2d, array3d, array4d, constant, from_ptr
22
- from warp.types import indexedarray, indexedarray1d, indexedarray2d, indexedarray3d, indexedarray4d
23
- from warp.fabric import fabricarray, fabricarrayarray, indexedfabricarray, indexedfabricarrayarray
24
- from warp.types import tile
25
-
26
- from warp.types import bool, int8, uint8, int16, uint16, int32, uint32, int64, uint64, float16, float32, float64
27
- from warp.types import vec2, vec2b, vec2ub, vec2s, vec2us, vec2i, vec2ui, vec2l, vec2ul, vec2h, vec2f, vec2d
28
- from warp.types import vec3, vec3b, vec3ub, vec3s, vec3us, vec3i, vec3ui, vec3l, vec3ul, vec3h, vec3f, vec3d
29
- from warp.types import vec4, vec4b, vec4ub, vec4s, vec4us, vec4i, vec4ui, vec4l, vec4ul, vec4h, vec4f, vec4d
30
- from warp.types import mat22, mat22h, mat22f, mat22d
31
- from warp.types import mat33, mat33h, mat33f, mat33d
32
- from warp.types import mat44, mat44h, mat44f, mat44d
33
- from warp.types import quat, quath, quatf, quatd
34
- from warp.types import transform, transformh, transformf, transformd
35
- from warp.types import spatial_vector, spatial_vectorh, spatial_vectorf, spatial_vectord
36
- from warp.types import spatial_matrix, spatial_matrixh, spatial_matrixf, spatial_matrixd
18
+ from warp.types import array as array
19
+ from warp.types import array1d as array1d
20
+ from warp.types import array2d as array2d
21
+ from warp.types import array3d as array3d
22
+ from warp.types import array4d as array4d
23
+ from warp.types import constant as constant
24
+ from warp.types import from_ptr as from_ptr
25
+ from warp.types import fixedarray as fixedarray
26
+ from warp.types import indexedarray as indexedarray
27
+ from warp.types import indexedarray1d as indexedarray1d
28
+ from warp.types import indexedarray2d as indexedarray2d
29
+ from warp.types import indexedarray3d as indexedarray3d
30
+ from warp.types import indexedarray4d as indexedarray4d
31
+ from warp.fabric import fabricarray as fabricarray
32
+ from warp.fabric import fabricarrayarray as fabricarrayarray
33
+ from warp.fabric import indexedfabricarray as indexedfabricarray
34
+ from warp.fabric import indexedfabricarrayarray as indexedfabricarrayarray
35
+ from warp.types import tile as tile
36
+
37
+ from warp.types import bool as bool
38
+ from warp.types import int8 as int8
39
+ from warp.types import uint8 as uint8
40
+ from warp.types import int16 as int16
41
+ from warp.types import uint16 as uint16
42
+ from warp.types import int32 as int32
43
+ from warp.types import uint32 as uint32
44
+ from warp.types import int64 as int64
45
+ from warp.types import uint64 as uint64
46
+ from warp.types import float16 as float16
47
+ from warp.types import float32 as float32
48
+ from warp.types import float64 as float64
49
+
50
+ from warp.types import vec2 as vec2
51
+ from warp.types import vec2b as vec2b
52
+ from warp.types import vec2ub as vec2ub
53
+ from warp.types import vec2s as vec2s
54
+ from warp.types import vec2us as vec2us
55
+ from warp.types import vec2i as vec2i
56
+ from warp.types import vec2ui as vec2ui
57
+ from warp.types import vec2l as vec2l
58
+ from warp.types import vec2ul as vec2ul
59
+ from warp.types import vec2h as vec2h
60
+ from warp.types import vec2f as vec2f
61
+ from warp.types import vec2d as vec2d
62
+
63
+ from warp.types import vec3 as vec3
64
+ from warp.types import vec3b as vec3b
65
+ from warp.types import vec3ub as vec3ub
66
+ from warp.types import vec3s as vec3s
67
+ from warp.types import vec3us as vec3us
68
+ from warp.types import vec3i as vec3i
69
+ from warp.types import vec3ui as vec3ui
70
+ from warp.types import vec3l as vec3l
71
+ from warp.types import vec3ul as vec3ul
72
+ from warp.types import vec3h as vec3h
73
+ from warp.types import vec3f as vec3f
74
+ from warp.types import vec3d as vec3d
75
+
76
+ from warp.types import vec4 as vec4
77
+ from warp.types import vec4b as vec4b
78
+ from warp.types import vec4ub as vec4ub
79
+ from warp.types import vec4s as vec4s
80
+ from warp.types import vec4us as vec4us
81
+ from warp.types import vec4i as vec4i
82
+ from warp.types import vec4ui as vec4ui
83
+ from warp.types import vec4l as vec4l
84
+ from warp.types import vec4ul as vec4ul
85
+ from warp.types import vec4h as vec4h
86
+ from warp.types import vec4f as vec4f
87
+ from warp.types import vec4d as vec4d
88
+
89
+ from warp.types import mat22 as mat22
90
+ from warp.types import mat22h as mat22h
91
+ from warp.types import mat22f as mat22f
92
+ from warp.types import mat22d as mat22d
93
+
94
+ from warp.types import mat33 as mat33
95
+ from warp.types import mat33h as mat33h
96
+ from warp.types import mat33f as mat33f
97
+ from warp.types import mat33d as mat33d
98
+
99
+ from warp.types import mat44 as mat44
100
+ from warp.types import mat44h as mat44h
101
+ from warp.types import mat44f as mat44f
102
+ from warp.types import mat44d as mat44d
103
+
104
+ from warp.types import quat as quat
105
+ from warp.types import quath as quath
106
+ from warp.types import quatf as quatf
107
+ from warp.types import quatd as quatd
108
+
109
+ from warp.types import transform as transform
110
+ from warp.types import transformh as transformh
111
+ from warp.types import transformf as transformf
112
+ from warp.types import transformd as transformd
113
+
114
+ from warp.types import spatial_vector as spatial_vector
115
+ from warp.types import spatial_vectorh as spatial_vectorh
116
+ from warp.types import spatial_vectorf as spatial_vectorf
117
+ from warp.types import spatial_vectord as spatial_vectord
118
+
119
+ from warp.types import spatial_matrix as spatial_matrix
120
+ from warp.types import spatial_matrixh as spatial_matrixh
121
+ from warp.types import spatial_matrixf as spatial_matrixf
122
+ from warp.types import spatial_matrixd as spatial_matrixd
37
123
 
38
124
  # annotation types
39
- from warp.types import Int, Float, Scalar
125
+ from warp.types import Int as Int
126
+ from warp.types import Float as Float
127
+ from warp.types import Scalar as Scalar
40
128
 
41
129
  # geometry types
42
- from warp.types import Bvh, Mesh, HashGrid, Volume, MarchingCubes
43
- from warp.types import BvhQuery, HashGridQuery, MeshQueryAABB, MeshQueryPoint, MeshQueryRay
130
+ from warp.types import Bvh as Bvh
131
+ from warp.types import Mesh as Mesh
132
+ from warp.types import HashGrid as HashGrid
133
+ from warp.types import Volume as Volume
134
+ from warp.types import BvhQuery as BvhQuery
135
+ from warp.types import HashGridQuery as HashGridQuery
136
+ from warp.types import MeshQueryAABB as MeshQueryAABB
137
+ from warp.types import MeshQueryPoint as MeshQueryPoint
138
+ from warp.types import MeshQueryRay as MeshQueryRay
44
139
 
45
140
  # device-wide gemms
46
- from warp.types import matmul, adj_matmul, batched_matmul, adj_batched_matmul
141
+ from warp.types import matmul as matmul
142
+ from warp.types import adj_matmul as adj_matmul
143
+ from warp.types import batched_matmul as batched_matmul
144
+ from warp.types import adj_batched_matmul as adj_batched_matmul
47
145
 
48
146
  # discouraged, users should use wp.types.vector, wp.types.matrix
49
147
  from warp.types import vector as vec
50
148
  from warp.types import matrix as mat
51
149
 
150
+ # matrix construction
151
+ from warp.types import matrix_from_cols as matrix_from_cols
152
+ from warp.types import matrix_from_rows as matrix_from_rows
153
+
52
154
  # numpy interop
53
- from warp.types import dtype_from_numpy, dtype_to_numpy
54
-
55
- from warp.types import from_ipc_handle
56
-
57
- from warp.context import init, func, func_grad, func_replay, func_native, kernel, struct, overload
58
- from warp.context import is_cpu_available, is_cuda_available, is_device_available
59
- from warp.context import get_devices, get_preferred_device
60
- from warp.context import get_cuda_devices, get_cuda_device_count, get_cuda_device, map_cuda_device, unmap_cuda_device
61
- from warp.context import get_device, set_device, synchronize_device
62
- from warp.context import (
63
- zeros,
64
- zeros_like,
65
- ones,
66
- ones_like,
67
- full,
68
- full_like,
69
- clone,
70
- empty,
71
- empty_like,
72
- copy,
73
- from_numpy,
74
- launch,
75
- launch_tiled,
76
- synchronize,
77
- force_load,
78
- load_module,
79
- event_from_ipc_handle,
80
- )
81
- from warp.context import set_module_options, get_module_options, get_module
82
- from warp.context import capture_begin, capture_end, capture_launch, capture_if, capture_while, capture_debug_dot_print
83
- from warp.context import Kernel, Function, Launch
84
- from warp.context import Stream, get_stream, set_stream, wait_stream, synchronize_stream
85
- from warp.context import Event, record_event, wait_event, synchronize_event, get_event_elapsed_time
86
- from warp.context import RegisteredGLBuffer
87
- from warp.context import is_mempool_supported, is_mempool_enabled, set_mempool_enabled
88
- from warp.context import (
89
- set_mempool_release_threshold,
90
- get_mempool_release_threshold,
91
- get_mempool_used_mem_current,
92
- get_mempool_used_mem_high,
93
- )
94
- from warp.context import is_mempool_access_supported, is_mempool_access_enabled, set_mempool_access_enabled
95
- from warp.context import is_peer_access_supported, is_peer_access_enabled, set_peer_access_enabled
96
-
97
- from warp.tape import Tape
98
- from warp.utils import ScopedTimer, ScopedDevice, ScopedStream
99
- from warp.utils import ScopedMempool, ScopedMempoolAccess, ScopedPeerAccess
100
- from warp.utils import ScopedCapture
101
- from warp.utils import transform_expand, quat_between_vectors
102
- from warp.utils import TimingResult, timing_begin, timing_end, timing_print
103
- from warp.utils import (
104
- TIMING_KERNEL,
105
- TIMING_KERNEL_BUILTIN,
106
- TIMING_MEMCPY,
107
- TIMING_MEMSET,
108
- TIMING_GRAPH,
109
- TIMING_ALL,
110
- )
111
- from warp.utils import map
112
-
113
- from warp.torch import from_torch, to_torch
114
- from warp.torch import dtype_from_torch, dtype_to_torch
115
- from warp.torch import device_from_torch, device_to_torch
116
- from warp.torch import stream_from_torch, stream_to_torch
117
-
118
- from warp.jax import from_jax, to_jax
119
- from warp.jax import dtype_from_jax, dtype_to_jax
120
- from warp.jax import device_from_jax, device_to_jax
121
-
122
- from warp.dlpack import from_dlpack, to_dlpack
123
-
124
- from warp.paddle import from_paddle, to_paddle
125
- from warp.paddle import dtype_from_paddle, dtype_to_paddle
126
- from warp.paddle import device_from_paddle, device_to_paddle
127
- from warp.paddle import stream_from_paddle
128
-
129
- from warp.build import clear_kernel_cache
130
- from warp.build import clear_lto_cache
155
+ from warp.types import dtype_from_numpy as dtype_from_numpy
156
+ from warp.types import dtype_to_numpy as dtype_to_numpy
157
+
158
+ # ipc interop
159
+ from warp.types import from_ipc_handle as from_ipc_handle
160
+
161
+ from warp.context import init as init
162
+ from warp.context import func as func
163
+ from warp.context import func_grad as func_grad
164
+ from warp.context import func_replay as func_replay
165
+ from warp.context import func_native as func_native
166
+ from warp.context import kernel as kernel
167
+ from warp.context import struct as struct
168
+ from warp.context import overload as overload
169
+
170
+ from warp.context import is_cpu_available as is_cpu_available
171
+ from warp.context import is_cuda_available as is_cuda_available
172
+ from warp.context import is_device_available as is_device_available
173
+ from warp.context import get_devices as get_devices
174
+ from warp.context import get_preferred_device as get_preferred_device
175
+ from warp.context import get_cuda_devices as get_cuda_devices
176
+ from warp.context import get_cuda_device_count as get_cuda_device_count
177
+ from warp.context import get_cuda_device as get_cuda_device
178
+ from warp.context import map_cuda_device as map_cuda_device
179
+ from warp.context import unmap_cuda_device as unmap_cuda_device
180
+ from warp.context import get_device as get_device
181
+ from warp.context import set_device as set_device
182
+ from warp.context import synchronize_device as synchronize_device
183
+
184
+ # tensor creation
185
+ from warp.context import zeros as zeros
186
+ from warp.context import zeros_like as zeros_like
187
+ from warp.context import ones as ones
188
+ from warp.context import ones_like as ones_like
189
+ from warp.context import full as full
190
+ from warp.context import full_like as full_like
191
+ from warp.context import clone as clone
192
+ from warp.context import empty as empty
193
+ from warp.context import empty_like as empty_like
194
+ from warp.context import copy as copy
195
+ from warp.context import from_numpy as from_numpy
196
+
197
+ from warp.context import launch as launch
198
+ from warp.context import launch_tiled as launch_tiled
199
+ from warp.context import synchronize as synchronize
200
+ from warp.context import compile_aot_module as compile_aot_module
201
+ from warp.context import force_load as force_load
202
+ from warp.context import load_module as load_module
203
+ from warp.context import load_aot_module as load_aot_module
204
+ from warp.context import event_from_ipc_handle as event_from_ipc_handle
205
+
206
+ from warp.context import set_module_options as set_module_options
207
+ from warp.context import get_module_options as get_module_options
208
+ from warp.context import get_module as get_module
209
+
210
+ from warp.context import capture_begin as capture_begin
211
+ from warp.context import capture_end as capture_end
212
+ from warp.context import capture_launch as capture_launch
213
+ from warp.context import capture_if as capture_if
214
+ from warp.context import capture_while as capture_while
215
+ from warp.context import capture_debug_dot_print as capture_debug_dot_print
216
+
217
+ from warp.context import Kernel as Kernel
218
+ from warp.context import Function as Function
219
+ from warp.context import Launch as Launch
220
+
221
+ from warp.context import Stream as Stream
222
+ from warp.context import get_stream as get_stream
223
+ from warp.context import set_stream as set_stream
224
+ from warp.context import wait_stream as wait_stream
225
+ from warp.context import synchronize_stream as synchronize_stream
226
+
227
+ from warp.context import Event as Event
228
+ from warp.context import record_event as record_event
229
+ from warp.context import wait_event as wait_event
230
+ from warp.context import synchronize_event as synchronize_event
231
+ from warp.context import get_event_elapsed_time as get_event_elapsed_time
232
+
233
+ from warp.context import RegisteredGLBuffer as RegisteredGLBuffer
234
+
235
+ from warp.context import is_mempool_supported as is_mempool_supported
236
+ from warp.context import is_mempool_enabled as is_mempool_enabled
237
+ from warp.context import set_mempool_enabled as set_mempool_enabled
238
+
239
+ from warp.context import set_mempool_release_threshold as set_mempool_release_threshold
240
+ from warp.context import get_mempool_release_threshold as get_mempool_release_threshold
241
+ from warp.context import get_mempool_used_mem_current as get_mempool_used_mem_current
242
+ from warp.context import get_mempool_used_mem_high as get_mempool_used_mem_high
243
+
244
+ from warp.context import is_mempool_access_supported as is_mempool_access_supported
245
+ from warp.context import is_mempool_access_enabled as is_mempool_access_enabled
246
+ from warp.context import set_mempool_access_enabled as set_mempool_access_enabled
247
+
248
+ from warp.context import is_peer_access_supported as is_peer_access_supported
249
+ from warp.context import is_peer_access_enabled as is_peer_access_enabled
250
+ from warp.context import set_peer_access_enabled as set_peer_access_enabled
251
+
252
+ from warp.tape import Tape as Tape
253
+
254
+ from warp.utils import ScopedTimer as ScopedTimer
255
+ from warp.utils import ScopedDevice as ScopedDevice
256
+ from warp.utils import ScopedStream as ScopedStream
257
+ from warp.utils import ScopedMempool as ScopedMempool
258
+ from warp.utils import ScopedMempoolAccess as ScopedMempoolAccess
259
+ from warp.utils import ScopedPeerAccess as ScopedPeerAccess
260
+ from warp.utils import ScopedCapture as ScopedCapture
261
+
262
+ from warp.utils import transform_expand as transform_expand
263
+ from warp.utils import quat_between_vectors as quat_between_vectors
264
+
265
+ from warp.utils import TimingResult as TimingResult
266
+ from warp.utils import timing_begin as timing_begin
267
+ from warp.utils import timing_end as timing_end
268
+ from warp.utils import timing_print as timing_print
269
+
270
+ from warp.utils import TIMING_KERNEL as TIMING_KERNEL
271
+ from warp.utils import TIMING_KERNEL_BUILTIN as TIMING_KERNEL_BUILTIN
272
+ from warp.utils import TIMING_MEMCPY as TIMING_MEMCPY
273
+ from warp.utils import TIMING_MEMSET as TIMING_MEMSET
274
+ from warp.utils import TIMING_GRAPH as TIMING_GRAPH
275
+ from warp.utils import TIMING_ALL as TIMING_ALL
276
+
277
+ from warp.utils import map as map
278
+
279
+ from warp.marching_cubes import MarchingCubes as MarchingCubes
280
+
281
+ from warp.torch import from_torch as from_torch
282
+ from warp.torch import to_torch as to_torch
283
+ from warp.torch import dtype_from_torch as dtype_from_torch
284
+ from warp.torch import dtype_to_torch as dtype_to_torch
285
+ from warp.torch import device_from_torch as device_from_torch
286
+ from warp.torch import device_to_torch as device_to_torch
287
+ from warp.torch import stream_from_torch as stream_from_torch
288
+ from warp.torch import stream_to_torch as stream_to_torch
289
+
290
+ from warp.jax import from_jax as from_jax
291
+ from warp.jax import to_jax as to_jax
292
+ from warp.jax import dtype_from_jax as dtype_from_jax
293
+ from warp.jax import dtype_to_jax as dtype_to_jax
294
+ from warp.jax import device_from_jax as device_from_jax
295
+ from warp.jax import device_to_jax as device_to_jax
296
+
297
+ from warp.dlpack import from_dlpack as from_dlpack
298
+ from warp.dlpack import to_dlpack as to_dlpack
299
+
300
+ from warp.paddle import from_paddle as from_paddle
301
+ from warp.paddle import to_paddle as to_paddle
302
+ from warp.paddle import dtype_from_paddle as dtype_from_paddle
303
+ from warp.paddle import dtype_to_paddle as dtype_to_paddle
304
+ from warp.paddle import device_from_paddle as device_from_paddle
305
+ from warp.paddle import device_to_paddle as device_to_paddle
306
+ from warp.paddle import stream_from_paddle as stream_from_paddle
307
+
308
+ from warp.build import clear_kernel_cache as clear_kernel_cache
309
+ from warp.build import clear_lto_cache as clear_lto_cache
131
310
 
132
311
  from warp.constants import *
133
312
 
134
313
  from . import builtins
135
- from warp.builtins import static
314
+ from warp.builtins import static as static
136
315
 
137
316
  from warp.math import *
138
317
 
139
- import warp.config as config
318
+ from . import config as config
140
319
 
141
320
  __version__ = config.version