warp-lang 1.6.2__py3-none-macosx_10_13_universal2.whl → 1.7.1__py3-none-macosx_10_13_universal2.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.
- warp/__init__.py +7 -1
- warp/autograd.py +12 -2
- warp/bin/libwarp-clang.dylib +0 -0
- warp/bin/libwarp.dylib +0 -0
- warp/build.py +410 -0
- warp/build_dll.py +6 -14
- warp/builtins.py +463 -372
- warp/codegen.py +196 -124
- warp/config.py +42 -6
- warp/context.py +496 -271
- warp/dlpack.py +8 -6
- warp/examples/assets/nonuniform.usd +0 -0
- warp/examples/assets/nvidia_logo.png +0 -0
- warp/examples/benchmarks/benchmark_cloth.py +1 -1
- warp/examples/benchmarks/benchmark_tile_load_store.py +103 -0
- warp/examples/core/example_sample_mesh.py +300 -0
- warp/examples/distributed/example_jacobi_mpi.py +507 -0
- warp/examples/fem/example_apic_fluid.py +1 -1
- warp/examples/fem/example_burgers.py +2 -2
- warp/examples/fem/example_deformed_geometry.py +1 -1
- warp/examples/fem/example_distortion_energy.py +1 -1
- warp/examples/fem/example_magnetostatics.py +6 -6
- warp/examples/fem/utils.py +9 -3
- warp/examples/interop/example_jax_callable.py +116 -0
- warp/examples/interop/example_jax_ffi_callback.py +132 -0
- warp/examples/interop/example_jax_kernel.py +205 -0
- warp/examples/optim/example_fluid_checkpoint.py +497 -0
- warp/examples/tile/example_tile_matmul.py +2 -4
- warp/fem/__init__.py +11 -1
- warp/fem/adaptivity.py +4 -4
- warp/fem/field/field.py +11 -1
- warp/fem/field/nodal_field.py +56 -88
- warp/fem/field/virtual.py +62 -23
- warp/fem/geometry/adaptive_nanogrid.py +16 -13
- warp/fem/geometry/closest_point.py +1 -1
- warp/fem/geometry/deformed_geometry.py +5 -2
- warp/fem/geometry/geometry.py +5 -0
- warp/fem/geometry/grid_2d.py +12 -12
- warp/fem/geometry/grid_3d.py +12 -15
- warp/fem/geometry/hexmesh.py +5 -7
- warp/fem/geometry/nanogrid.py +9 -11
- warp/fem/geometry/quadmesh.py +13 -13
- warp/fem/geometry/tetmesh.py +3 -4
- warp/fem/geometry/trimesh.py +7 -20
- warp/fem/integrate.py +262 -93
- warp/fem/linalg.py +5 -5
- warp/fem/quadrature/pic_quadrature.py +37 -22
- warp/fem/quadrature/quadrature.py +194 -25
- warp/fem/space/__init__.py +1 -1
- warp/fem/space/basis_function_space.py +4 -2
- warp/fem/space/basis_space.py +25 -18
- warp/fem/space/hexmesh_function_space.py +2 -2
- warp/fem/space/partition.py +6 -2
- warp/fem/space/quadmesh_function_space.py +8 -8
- warp/fem/space/shape/cube_shape_function.py +23 -23
- warp/fem/space/shape/square_shape_function.py +12 -12
- warp/fem/space/shape/triangle_shape_function.py +1 -1
- warp/fem/space/tetmesh_function_space.py +3 -3
- warp/fem/space/trimesh_function_space.py +2 -2
- warp/fem/utils.py +12 -6
- warp/jax.py +14 -1
- warp/jax_experimental/__init__.py +16 -0
- warp/{jax_experimental.py → jax_experimental/custom_call.py} +28 -29
- warp/jax_experimental/ffi.py +702 -0
- warp/jax_experimental/xla_ffi.py +602 -0
- warp/math.py +89 -0
- warp/native/array.h +13 -0
- warp/native/builtin.h +29 -3
- warp/native/bvh.cpp +3 -1
- warp/native/bvh.cu +42 -14
- warp/native/bvh.h +2 -1
- warp/native/clang/clang.cpp +30 -3
- warp/native/cuda_util.cpp +14 -0
- warp/native/cuda_util.h +2 -0
- warp/native/exports.h +68 -63
- warp/native/intersect.h +26 -26
- warp/native/intersect_adj.h +33 -33
- warp/native/marching.cu +1 -1
- warp/native/mat.h +513 -9
- warp/native/mesh.h +10 -10
- warp/native/quat.h +99 -11
- warp/native/rand.h +6 -0
- warp/native/sort.cpp +122 -59
- warp/native/sort.cu +152 -15
- warp/native/sort.h +8 -1
- warp/native/sparse.cpp +43 -22
- warp/native/sparse.cu +52 -17
- warp/native/svd.h +116 -0
- warp/native/tile.h +312 -116
- warp/native/tile_reduce.h +46 -3
- warp/native/vec.h +68 -7
- warp/native/volume.cpp +85 -113
- warp/native/volume_builder.cu +25 -10
- warp/native/volume_builder.h +6 -0
- warp/native/warp.cpp +5 -6
- warp/native/warp.cu +100 -11
- warp/native/warp.h +19 -10
- warp/optim/linear.py +10 -10
- warp/render/render_opengl.py +19 -17
- warp/render/render_usd.py +93 -3
- warp/sim/articulation.py +4 -4
- warp/sim/collide.py +32 -19
- warp/sim/import_mjcf.py +449 -155
- warp/sim/import_urdf.py +32 -12
- warp/sim/inertia.py +189 -156
- warp/sim/integrator_euler.py +8 -5
- warp/sim/integrator_featherstone.py +3 -10
- warp/sim/integrator_vbd.py +207 -2
- warp/sim/integrator_xpbd.py +8 -5
- warp/sim/model.py +71 -25
- warp/sim/render.py +4 -0
- warp/sim/utils.py +2 -2
- warp/sparse.py +642 -555
- warp/stubs.py +217 -20
- warp/tests/__main__.py +0 -15
- warp/tests/assets/torus.usda +1 -1
- warp/tests/cuda/__init__.py +0 -0
- warp/tests/{test_mempool.py → cuda/test_mempool.py} +39 -0
- warp/tests/{test_streams.py → cuda/test_streams.py} +71 -0
- warp/tests/geometry/__init__.py +0 -0
- warp/tests/{test_mesh_query_point.py → geometry/test_mesh_query_point.py} +66 -63
- warp/tests/{test_mesh_query_ray.py → geometry/test_mesh_query_ray.py} +1 -1
- warp/tests/{test_volume.py → geometry/test_volume.py} +41 -6
- warp/tests/interop/__init__.py +0 -0
- warp/tests/{test_dlpack.py → interop/test_dlpack.py} +28 -5
- warp/tests/sim/__init__.py +0 -0
- warp/tests/{disabled_kinematics.py → sim/disabled_kinematics.py} +9 -10
- warp/tests/{test_collision.py → sim/test_collision.py} +236 -205
- warp/tests/sim/test_inertia.py +161 -0
- warp/tests/{test_model.py → sim/test_model.py} +40 -0
- warp/tests/{flaky_test_sim_grad.py → sim/test_sim_grad.py} +4 -0
- warp/tests/{test_sim_kinematics.py → sim/test_sim_kinematics.py} +2 -1
- warp/tests/sim/test_vbd.py +597 -0
- warp/tests/sim/test_xpbd.py +399 -0
- warp/tests/test_bool.py +1 -1
- warp/tests/test_codegen.py +24 -3
- warp/tests/test_examples.py +40 -38
- warp/tests/test_fem.py +98 -14
- warp/tests/test_linear_solvers.py +0 -11
- warp/tests/test_mat.py +577 -156
- warp/tests/test_mat_scalar_ops.py +4 -4
- warp/tests/test_overwrite.py +0 -60
- warp/tests/test_quat.py +356 -151
- warp/tests/test_rand.py +44 -37
- warp/tests/test_sparse.py +47 -6
- warp/tests/test_spatial.py +75 -0
- warp/tests/test_static.py +1 -1
- warp/tests/test_utils.py +84 -4
- warp/tests/test_vec.py +336 -178
- warp/tests/tile/__init__.py +0 -0
- warp/tests/{test_tile.py → tile/test_tile.py} +136 -51
- warp/tests/{test_tile_load.py → tile/test_tile_load.py} +98 -1
- warp/tests/{test_tile_mathdx.py → tile/test_tile_mathdx.py} +9 -6
- warp/tests/{test_tile_mlp.py → tile/test_tile_mlp.py} +25 -14
- warp/tests/{test_tile_reduce.py → tile/test_tile_reduce.py} +60 -1
- warp/tests/{test_tile_view.py → tile/test_tile_view.py} +1 -1
- warp/tests/unittest_serial.py +1 -0
- warp/tests/unittest_suites.py +45 -62
- warp/tests/unittest_utils.py +2 -1
- warp/thirdparty/unittest_parallel.py +3 -1
- warp/types.py +175 -666
- warp/utils.py +137 -72
- {warp_lang-1.6.2.dist-info → warp_lang-1.7.1.dist-info}/METADATA +46 -12
- {warp_lang-1.6.2.dist-info → warp_lang-1.7.1.dist-info}/RECORD +184 -171
- {warp_lang-1.6.2.dist-info → warp_lang-1.7.1.dist-info}/WHEEL +1 -1
- {warp_lang-1.6.2.dist-info → warp_lang-1.7.1.dist-info/licenses}/LICENSE.md +0 -26
- warp/examples/optim/example_walker.py +0 -317
- warp/native/cutlass_gemm.cpp +0 -43
- warp/native/cutlass_gemm.cu +0 -382
- warp/tests/test_matmul.py +0 -511
- warp/tests/test_matmul_lite.py +0 -411
- warp/tests/test_vbd.py +0 -386
- warp/tests/unused_test_misc.py +0 -77
- /warp/tests/{test_async.py → cuda/test_async.py} +0 -0
- /warp/tests/{test_ipc.py → cuda/test_ipc.py} +0 -0
- /warp/tests/{test_multigpu.py → cuda/test_multigpu.py} +0 -0
- /warp/tests/{test_peer.py → cuda/test_peer.py} +0 -0
- /warp/tests/{test_pinned.py → cuda/test_pinned.py} +0 -0
- /warp/tests/{test_bvh.py → geometry/test_bvh.py} +0 -0
- /warp/tests/{test_hash_grid.py → geometry/test_hash_grid.py} +0 -0
- /warp/tests/{test_marching_cubes.py → geometry/test_marching_cubes.py} +0 -0
- /warp/tests/{test_mesh.py → geometry/test_mesh.py} +0 -0
- /warp/tests/{test_mesh_query_aabb.py → geometry/test_mesh_query_aabb.py} +0 -0
- /warp/tests/{test_volume_write.py → geometry/test_volume_write.py} +0 -0
- /warp/tests/{test_jax.py → interop/test_jax.py} +0 -0
- /warp/tests/{test_paddle.py → interop/test_paddle.py} +0 -0
- /warp/tests/{test_torch.py → interop/test_torch.py} +0 -0
- /warp/tests/{test_coloring.py → sim/test_coloring.py} +0 -0
- /warp/tests/{test_sim_grad_bounce_linear.py → sim/test_sim_grad_bounce_linear.py} +0 -0
- /warp/tests/{test_tile_shared_memory.py → tile/test_tile_shared_memory.py} +0 -0
- {warp_lang-1.6.2.dist-info → warp_lang-1.7.1.dist-info}/top_level.txt +0 -0
warp/tests/unittest_suites.py
CHANGED
|
@@ -95,20 +95,40 @@ def default_suite(test_loader: unittest.TestLoader = unittest.defaultTestLoader)
|
|
|
95
95
|
|
|
96
96
|
Intended to be modified to create additional test suites
|
|
97
97
|
"""
|
|
98
|
+
from warp.tests.cuda.test_async import TestAsync
|
|
99
|
+
from warp.tests.cuda.test_mempool import TestMempool
|
|
100
|
+
from warp.tests.cuda.test_multigpu import TestMultiGPU
|
|
101
|
+
from warp.tests.cuda.test_peer import TestPeer
|
|
102
|
+
from warp.tests.cuda.test_pinned import TestPinned
|
|
103
|
+
from warp.tests.cuda.test_streams import TestStreams
|
|
104
|
+
from warp.tests.geometry.test_bvh import TestBvh
|
|
105
|
+
from warp.tests.geometry.test_hash_grid import TestHashGrid
|
|
106
|
+
from warp.tests.geometry.test_marching_cubes import TestMarchingCubes
|
|
107
|
+
from warp.tests.geometry.test_mesh import TestMesh
|
|
108
|
+
from warp.tests.geometry.test_mesh_query_aabb import TestMeshQueryAABBMethods
|
|
109
|
+
from warp.tests.geometry.test_mesh_query_point import TestMeshQueryPoint
|
|
110
|
+
from warp.tests.geometry.test_mesh_query_ray import TestMeshQueryRay
|
|
111
|
+
from warp.tests.geometry.test_volume import TestVolume
|
|
112
|
+
from warp.tests.geometry.test_volume_write import TestVolumeWrite
|
|
113
|
+
from warp.tests.interop.test_dlpack import TestDLPack
|
|
114
|
+
from warp.tests.interop.test_jax import TestJax
|
|
115
|
+
from warp.tests.interop.test_torch import TestTorch
|
|
116
|
+
from warp.tests.sim.test_collision import TestCollision
|
|
117
|
+
from warp.tests.sim.test_coloring import TestColoring
|
|
118
|
+
from warp.tests.sim.test_model import TestModel
|
|
119
|
+
from warp.tests.sim.test_sim_grad import TestSimGradients
|
|
120
|
+
from warp.tests.sim.test_sim_kinematics import TestSimKinematics
|
|
121
|
+
from warp.tests.sim.test_vbd import TestVbd
|
|
98
122
|
from warp.tests.test_adam import TestAdam
|
|
99
123
|
from warp.tests.test_arithmetic import TestArithmetic
|
|
100
124
|
from warp.tests.test_array import TestArray
|
|
101
125
|
from warp.tests.test_array_reduce import TestArrayReduce
|
|
102
|
-
from warp.tests.test_async import TestAsync
|
|
103
126
|
from warp.tests.test_atomic import TestAtomic
|
|
104
127
|
from warp.tests.test_bool import TestBool
|
|
105
128
|
from warp.tests.test_builtins_resolution import TestBuiltinsResolution
|
|
106
|
-
from warp.tests.test_bvh import TestBvh
|
|
107
129
|
from warp.tests.test_closest_point_edge_edge import TestClosestPointEdgeEdgeMethods
|
|
108
130
|
from warp.tests.test_codegen import TestCodeGen
|
|
109
131
|
from warp.tests.test_codegen_instancing import TestCodeGenInstancing
|
|
110
|
-
from warp.tests.test_collision import TestCollision
|
|
111
|
-
from warp.tests.test_coloring import TestColoring
|
|
112
132
|
from warp.tests.test_compile_consts import TestConstants
|
|
113
133
|
from warp.tests.test_conditional import TestConditional
|
|
114
134
|
from warp.tests.test_context import TestContext
|
|
@@ -116,7 +136,6 @@ def default_suite(test_loader: unittest.TestLoader = unittest.defaultTestLoader)
|
|
|
116
136
|
from warp.tests.test_ctypes import TestCTypes
|
|
117
137
|
from warp.tests.test_dense import TestDense
|
|
118
138
|
from warp.tests.test_devices import TestDevices
|
|
119
|
-
from warp.tests.test_dlpack import TestDLPack
|
|
120
139
|
from warp.tests.test_examples import (
|
|
121
140
|
TestCoreExamples,
|
|
122
141
|
TestFemDiffusionExamples,
|
|
@@ -134,40 +153,26 @@ def default_suite(test_loader: unittest.TestLoader = unittest.defaultTestLoader)
|
|
|
134
153
|
from warp.tests.test_grad import TestGrad
|
|
135
154
|
from warp.tests.test_grad_customs import TestGradCustoms
|
|
136
155
|
from warp.tests.test_grad_debug import TestGradDebug
|
|
137
|
-
from warp.tests.test_hash_grid import TestHashGrid
|
|
138
156
|
from warp.tests.test_import import TestImport
|
|
139
157
|
from warp.tests.test_indexedarray import TestIndexedArray
|
|
140
158
|
from warp.tests.test_intersect import TestIntersect
|
|
141
159
|
from warp.tests.test_iter import TestIter
|
|
142
|
-
from warp.tests.test_jax import TestJax
|
|
143
160
|
from warp.tests.test_large import TestLarge
|
|
144
161
|
from warp.tests.test_launch import TestLaunch
|
|
145
162
|
from warp.tests.test_lerp import TestLerp
|
|
146
163
|
from warp.tests.test_linear_solvers import TestLinearSolvers
|
|
147
164
|
from warp.tests.test_lvalue import TestLValue
|
|
148
|
-
from warp.tests.test_marching_cubes import TestMarchingCubes
|
|
149
165
|
from warp.tests.test_mat import TestMat
|
|
150
166
|
from warp.tests.test_mat_lite import TestMatLite
|
|
151
167
|
from warp.tests.test_mat_scalar_ops import TestMatScalarOps
|
|
152
168
|
from warp.tests.test_math import TestMath
|
|
153
|
-
from warp.tests.test_matmul import TestMatmul
|
|
154
|
-
from warp.tests.test_matmul_lite import TestMatmulLite
|
|
155
|
-
from warp.tests.test_mempool import TestMempool
|
|
156
|
-
from warp.tests.test_mesh import TestMesh
|
|
157
|
-
from warp.tests.test_mesh_query_aabb import TestMeshQueryAABBMethods
|
|
158
|
-
from warp.tests.test_mesh_query_point import TestMeshQueryPoint
|
|
159
|
-
from warp.tests.test_mesh_query_ray import TestMeshQueryRay
|
|
160
169
|
from warp.tests.test_mlp import TestMLP
|
|
161
|
-
from warp.tests.test_model import TestModel
|
|
162
170
|
from warp.tests.test_module_hashing import TestModuleHashing
|
|
163
171
|
from warp.tests.test_modules_lite import TestModuleLite
|
|
164
|
-
from warp.tests.test_multigpu import TestMultiGPU
|
|
165
172
|
from warp.tests.test_noise import TestNoise
|
|
166
173
|
from warp.tests.test_operators import TestOperators
|
|
167
174
|
from warp.tests.test_options import TestOptions
|
|
168
175
|
from warp.tests.test_overwrite import TestOverwrite
|
|
169
|
-
from warp.tests.test_peer import TestPeer
|
|
170
|
-
from warp.tests.test_pinned import TestPinned
|
|
171
176
|
from warp.tests.test_print import TestPrint
|
|
172
177
|
from warp.tests.test_quat import TestQuat
|
|
173
178
|
from warp.tests.test_rand import TestRand
|
|
@@ -175,34 +180,26 @@ def default_suite(test_loader: unittest.TestLoader = unittest.defaultTestLoader)
|
|
|
175
180
|
from warp.tests.test_rounding import TestRounding
|
|
176
181
|
from warp.tests.test_runlength_encode import TestRunlengthEncode
|
|
177
182
|
from warp.tests.test_scalar_ops import TestScalarOps
|
|
178
|
-
|
|
179
|
-
# from warp.tests.test_sim_grad import TestSimGradients Disabled, flaky
|
|
180
|
-
from warp.tests.test_sim_kinematics import TestSimKinematics
|
|
181
183
|
from warp.tests.test_smoothstep import TestSmoothstep
|
|
182
184
|
from warp.tests.test_snippet import TestSnippets
|
|
183
185
|
from warp.tests.test_sparse import TestSparse
|
|
184
186
|
from warp.tests.test_spatial import TestSpatial
|
|
185
187
|
from warp.tests.test_special_values import TestSpecialValues
|
|
186
188
|
from warp.tests.test_static import TestStatic
|
|
187
|
-
from warp.tests.test_streams import TestStreams
|
|
188
189
|
from warp.tests.test_struct import TestStruct
|
|
189
190
|
from warp.tests.test_tape import TestTape
|
|
190
|
-
from warp.tests.test_tile import TestTile
|
|
191
|
-
from warp.tests.test_tile_mathdx import TestTileMathDx
|
|
192
|
-
from warp.tests.test_tile_reduce import TestTileReduce
|
|
193
|
-
from warp.tests.test_tile_shared_memory import TestTileSharedMemory
|
|
194
|
-
from warp.tests.test_torch import TestTorch
|
|
195
191
|
from warp.tests.test_transient_module import TestTransientModule
|
|
196
192
|
from warp.tests.test_triangle_closest_point import TestTriangleClosestPoint
|
|
197
193
|
from warp.tests.test_types import TestTypes
|
|
198
194
|
from warp.tests.test_utils import TestUtils
|
|
199
|
-
from warp.tests.test_vbd import TestVBD
|
|
200
195
|
from warp.tests.test_vec import TestVec
|
|
201
196
|
from warp.tests.test_vec_lite import TestVecLite
|
|
202
197
|
from warp.tests.test_vec_scalar_ops import TestVecScalarOps
|
|
203
198
|
from warp.tests.test_verify_fp import TestVerifyFP
|
|
204
|
-
from warp.tests.
|
|
205
|
-
from warp.tests.
|
|
199
|
+
from warp.tests.tile.test_tile import TestTile
|
|
200
|
+
from warp.tests.tile.test_tile_mathdx import TestTileMathDx
|
|
201
|
+
from warp.tests.tile.test_tile_reduce import TestTileReduce
|
|
202
|
+
from warp.tests.tile.test_tile_shared_memory import TestTileSharedMemory
|
|
206
203
|
|
|
207
204
|
test_classes = [
|
|
208
205
|
TestAdam,
|
|
@@ -260,8 +257,6 @@ def default_suite(test_loader: unittest.TestLoader = unittest.defaultTestLoader)
|
|
|
260
257
|
TestMatLite,
|
|
261
258
|
TestMatScalarOps,
|
|
262
259
|
TestMath,
|
|
263
|
-
TestMatmul,
|
|
264
|
-
TestMatmulLite,
|
|
265
260
|
TestMempool,
|
|
266
261
|
TestMesh,
|
|
267
262
|
TestMeshQueryAABBMethods,
|
|
@@ -285,7 +280,7 @@ def default_suite(test_loader: unittest.TestLoader = unittest.defaultTestLoader)
|
|
|
285
280
|
TestRounding,
|
|
286
281
|
TestRunlengthEncode,
|
|
287
282
|
TestScalarOps,
|
|
288
|
-
|
|
283
|
+
TestSimGradients,
|
|
289
284
|
TestSimKinematics,
|
|
290
285
|
TestSmoothstep,
|
|
291
286
|
TestSnippets,
|
|
@@ -305,7 +300,7 @@ def default_suite(test_loader: unittest.TestLoader = unittest.defaultTestLoader)
|
|
|
305
300
|
TestTriangleClosestPoint,
|
|
306
301
|
TestTypes,
|
|
307
302
|
TestUtils,
|
|
308
|
-
|
|
303
|
+
TestVbd,
|
|
309
304
|
TestVec,
|
|
310
305
|
TestVecLite,
|
|
311
306
|
TestVecScalarOps,
|
|
@@ -322,65 +317,58 @@ def kit_suite(test_loader: unittest.TestLoader = unittest.defaultTestLoader):
|
|
|
322
317
|
|
|
323
318
|
Requires manual updates with test_ext.py for now.
|
|
324
319
|
"""
|
|
325
|
-
from warp.tests.
|
|
320
|
+
from warp.tests.cuda.test_mempool import TestMempool
|
|
321
|
+
from warp.tests.cuda.test_peer import TestPeer
|
|
322
|
+
from warp.tests.cuda.test_pinned import TestPinned
|
|
323
|
+
from warp.tests.cuda.test_streams import TestStreams
|
|
324
|
+
from warp.tests.geometry.test_bvh import TestBvh
|
|
325
|
+
from warp.tests.geometry.test_hash_grid import TestHashGrid
|
|
326
|
+
from warp.tests.geometry.test_marching_cubes import TestMarchingCubes
|
|
327
|
+
from warp.tests.geometry.test_mesh import TestMesh
|
|
328
|
+
from warp.tests.geometry.test_mesh_query_aabb import TestMeshQueryAABBMethods
|
|
329
|
+
from warp.tests.geometry.test_mesh_query_point import TestMeshQueryPoint
|
|
330
|
+
from warp.tests.geometry.test_mesh_query_ray import TestMeshQueryRay
|
|
331
|
+
from warp.tests.geometry.test_volume import TestVolume
|
|
332
|
+
from warp.tests.geometry.test_volume_write import TestVolumeWrite
|
|
333
|
+
from warp.tests.interop.test_dlpack import TestDLPack
|
|
326
334
|
from warp.tests.test_array_reduce import TestArrayReduce
|
|
327
335
|
from warp.tests.test_bool import TestBool
|
|
328
336
|
from warp.tests.test_builtins_resolution import TestBuiltinsResolution
|
|
329
|
-
from warp.tests.test_bvh import TestBvh
|
|
330
337
|
from warp.tests.test_codegen import TestCodeGen
|
|
331
338
|
from warp.tests.test_compile_consts import TestConstants
|
|
332
339
|
from warp.tests.test_conditional import TestConditional
|
|
333
340
|
from warp.tests.test_copy import TestCopy
|
|
334
341
|
from warp.tests.test_ctypes import TestCTypes
|
|
335
342
|
from warp.tests.test_devices import TestDevices
|
|
336
|
-
from warp.tests.test_dlpack import TestDLPack
|
|
337
|
-
from warp.tests.test_fabricarray import TestFabricArray
|
|
338
343
|
from warp.tests.test_fp16 import TestFp16
|
|
339
344
|
from warp.tests.test_func import TestFunc
|
|
340
345
|
from warp.tests.test_generics import TestGenerics
|
|
341
346
|
from warp.tests.test_grad_customs import TestGradCustoms
|
|
342
347
|
from warp.tests.test_grad_debug import TestGradDebug
|
|
343
|
-
from warp.tests.test_hash_grid import TestHashGrid
|
|
344
348
|
from warp.tests.test_indexedarray import TestIndexedArray
|
|
345
349
|
from warp.tests.test_launch import TestLaunch
|
|
346
350
|
from warp.tests.test_lvalue import TestLValue
|
|
347
|
-
from warp.tests.test_marching_cubes import TestMarchingCubes
|
|
348
351
|
from warp.tests.test_mat_lite import TestMatLite
|
|
349
352
|
from warp.tests.test_math import TestMath
|
|
350
|
-
from warp.tests.test_matmul_lite import TestMatmulLite
|
|
351
|
-
from warp.tests.test_mempool import TestMempool
|
|
352
|
-
from warp.tests.test_mesh import TestMesh
|
|
353
|
-
from warp.tests.test_mesh_query_aabb import TestMeshQueryAABBMethods
|
|
354
|
-
from warp.tests.test_mesh_query_point import TestMeshQueryPoint
|
|
355
|
-
from warp.tests.test_mesh_query_ray import TestMeshQueryRay
|
|
356
353
|
from warp.tests.test_mlp import TestMLP
|
|
357
354
|
from warp.tests.test_module_hashing import TestModuleHashing
|
|
358
355
|
from warp.tests.test_modules_lite import TestModuleLite
|
|
359
356
|
from warp.tests.test_noise import TestNoise
|
|
360
357
|
from warp.tests.test_operators import TestOperators
|
|
361
|
-
from warp.tests.test_peer import TestPeer
|
|
362
|
-
from warp.tests.test_pinned import TestPinned
|
|
363
|
-
from warp.tests.test_quat import TestQuat
|
|
364
358
|
from warp.tests.test_rand import TestRand
|
|
365
|
-
from warp.tests.test_reload import TestReload
|
|
366
359
|
from warp.tests.test_rounding import TestRounding
|
|
367
360
|
from warp.tests.test_runlength_encode import TestRunlengthEncode
|
|
368
361
|
from warp.tests.test_scalar_ops import TestScalarOps
|
|
369
362
|
from warp.tests.test_snippet import TestSnippets
|
|
370
|
-
from warp.tests.test_sparse import TestSparse
|
|
371
363
|
from warp.tests.test_static import TestStatic
|
|
372
|
-
from warp.tests.test_streams import TestStreams
|
|
373
364
|
from warp.tests.test_tape import TestTape
|
|
374
|
-
from warp.tests.test_tile_reduce import TestTileReduce
|
|
375
365
|
from warp.tests.test_transient_module import TestTransientModule
|
|
376
366
|
from warp.tests.test_types import TestTypes
|
|
377
367
|
from warp.tests.test_utils import TestUtils
|
|
378
368
|
from warp.tests.test_vec_lite import TestVecLite
|
|
379
|
-
from warp.tests.
|
|
380
|
-
from warp.tests.test_volume_write import TestVolumeWrite
|
|
369
|
+
from warp.tests.tile.test_tile_reduce import TestTileReduce
|
|
381
370
|
|
|
382
371
|
test_classes = [
|
|
383
|
-
TestArray,
|
|
384
372
|
TestArrayReduce,
|
|
385
373
|
TestBool,
|
|
386
374
|
TestBuiltinsResolution,
|
|
@@ -392,7 +380,6 @@ def kit_suite(test_loader: unittest.TestLoader = unittest.defaultTestLoader):
|
|
|
392
380
|
TestCTypes,
|
|
393
381
|
TestDevices,
|
|
394
382
|
TestDLPack,
|
|
395
|
-
TestFabricArray,
|
|
396
383
|
TestFp16,
|
|
397
384
|
TestFunc,
|
|
398
385
|
TestGenerics,
|
|
@@ -405,7 +392,6 @@ def kit_suite(test_loader: unittest.TestLoader = unittest.defaultTestLoader):
|
|
|
405
392
|
TestMarchingCubes,
|
|
406
393
|
TestMatLite,
|
|
407
394
|
TestMath,
|
|
408
|
-
TestMatmulLite,
|
|
409
395
|
TestMempool,
|
|
410
396
|
TestMesh,
|
|
411
397
|
TestMeshQueryAABBMethods,
|
|
@@ -418,14 +404,11 @@ def kit_suite(test_loader: unittest.TestLoader = unittest.defaultTestLoader):
|
|
|
418
404
|
TestOperators,
|
|
419
405
|
TestPeer,
|
|
420
406
|
TestPinned,
|
|
421
|
-
TestQuat,
|
|
422
407
|
TestRand,
|
|
423
|
-
TestReload,
|
|
424
408
|
TestRounding,
|
|
425
409
|
TestRunlengthEncode,
|
|
426
410
|
TestScalarOps,
|
|
427
411
|
TestSnippets,
|
|
428
|
-
TestSparse,
|
|
429
412
|
TestStatic,
|
|
430
413
|
TestStreams,
|
|
431
414
|
TestTape,
|
warp/tests/unittest_utils.py
CHANGED
|
@@ -392,7 +392,8 @@ def write_junit_results(
|
|
|
392
392
|
error.text = str(test_data[4]) # Stacktrace
|
|
393
393
|
elif test_status == "SKIP":
|
|
394
394
|
skip = ET.SubElement(test_case, "skipped")
|
|
395
|
-
|
|
395
|
+
# Set the skip reason
|
|
396
|
+
skip.set("message", str(test_data[3]))
|
|
396
397
|
|
|
397
398
|
tree = ET.ElementTree(root)
|
|
398
399
|
|
|
@@ -178,6 +178,7 @@ def main(argv=None):
|
|
|
178
178
|
import warp as wp # NVIDIA Modification
|
|
179
179
|
|
|
180
180
|
# Clear the Warp cache (NVIDIA Modification)
|
|
181
|
+
wp.clear_lto_cache()
|
|
181
182
|
wp.clear_kernel_cache()
|
|
182
183
|
print("Cleared Warp kernel cache")
|
|
183
184
|
|
|
@@ -558,7 +559,8 @@ def initialize_test_process(lock, shared_index, args, temp_dir):
|
|
|
558
559
|
|
|
559
560
|
wp.config.kernel_cache_dir = cache_root_dir
|
|
560
561
|
|
|
561
|
-
wp.
|
|
562
|
+
wp.clear_lto_cache()
|
|
563
|
+
wp.clear_kernel_cache()
|
|
562
564
|
elif "WARP_CACHE_ROOT" in os.environ:
|
|
563
565
|
# Using a shared cache for all test processes
|
|
564
566
|
wp.config.kernel_cache_dir = os.path.join(os.getenv("WARP_CACHE_ROOT"), wp.config.version)
|