warp-lang 1.3.0__py3-none-macosx_10_13_universal2.whl → 1.3.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/builtins.py +2 -2
- warp/config.py +1 -1
- warp/context.py +1 -1
- warp/tape.py +3 -3
- warp/tests/test_codegen.py +25 -0
- {warp_lang-1.3.0.dist-info → warp_lang-1.3.1.dist-info}/METADATA +4 -4
- {warp_lang-1.3.0.dist-info → warp_lang-1.3.1.dist-info}/RECORD +10 -10
- {warp_lang-1.3.0.dist-info → warp_lang-1.3.1.dist-info}/LICENSE.md +0 -0
- {warp_lang-1.3.0.dist-info → warp_lang-1.3.1.dist-info}/WHEEL +0 -0
- {warp_lang-1.3.0.dist-info → warp_lang-1.3.1.dist-info}/top_level.txt +0 -0
warp/builtins.py
CHANGED
|
@@ -35,7 +35,7 @@ def sametypes_create_value_func(default):
|
|
|
35
35
|
return default
|
|
36
36
|
|
|
37
37
|
if not sametypes(arg_types):
|
|
38
|
-
raise RuntimeError(f"Input types must be the same,
|
|
38
|
+
raise RuntimeError(f"Input types must be the same, got {[type_repr(t) for t in arg_types.values()]}")
|
|
39
39
|
|
|
40
40
|
arg_type_0 = next(iter(arg_types.values()))
|
|
41
41
|
return arg_type_0
|
|
@@ -414,7 +414,7 @@ def scalar_sametypes_value_func(arg_types: Mapping[str, type], arg_values: Mappi
|
|
|
414
414
|
return Scalar
|
|
415
415
|
|
|
416
416
|
if not sametypes(arg_types):
|
|
417
|
-
raise RuntimeError(f"Input types must be exactly the same, {
|
|
417
|
+
raise RuntimeError(f"Input types must be exactly the same, got {[type_repr(t) for t in arg_types.values()]}")
|
|
418
418
|
|
|
419
419
|
return scalar_infer_type(arg_types)
|
|
420
420
|
|
warp/config.py
CHANGED
warp/context.py
CHANGED
|
@@ -4778,7 +4778,7 @@ def launch(
|
|
|
4778
4778
|
|
|
4779
4779
|
# detect illegal inter-kernel read/write access patterns if verification flag is set
|
|
4780
4780
|
if warp.config.verify_autograd_array_access:
|
|
4781
|
-
runtime.tape.
|
|
4781
|
+
runtime.tape._check_kernel_array_access(kernel, fwd_args)
|
|
4782
4782
|
|
|
4783
4783
|
|
|
4784
4784
|
def synchronize():
|
warp/tape.py
CHANGED
|
@@ -197,7 +197,7 @@ class Tape:
|
|
|
197
197
|
else:
|
|
198
198
|
self.scopes.append((len(self.launches), None, None))
|
|
199
199
|
|
|
200
|
-
def
|
|
200
|
+
def _check_kernel_array_access(self, kernel, args):
|
|
201
201
|
"""Detect illegal inter-kernel write after read access patterns during launch capture"""
|
|
202
202
|
adj = kernel.adj
|
|
203
203
|
kernel_name = adj.fun_name
|
|
@@ -256,7 +256,7 @@ class Tape:
|
|
|
256
256
|
self.scopes = []
|
|
257
257
|
self.zero()
|
|
258
258
|
if wp.config.verify_autograd_array_access:
|
|
259
|
-
self.
|
|
259
|
+
self._reset_array_read_flags()
|
|
260
260
|
|
|
261
261
|
def zero(self):
|
|
262
262
|
"""
|
|
@@ -271,7 +271,7 @@ class Tape:
|
|
|
271
271
|
else:
|
|
272
272
|
g.zero_()
|
|
273
273
|
|
|
274
|
-
def
|
|
274
|
+
def _reset_array_read_flags(self):
|
|
275
275
|
"""
|
|
276
276
|
Reset all recorded array read flags to False
|
|
277
277
|
"""
|
warp/tests/test_codegen.py
CHANGED
|
@@ -467,6 +467,28 @@ def test_error_collection_construct(test, device):
|
|
|
467
467
|
wp.launch(kernel, dim=1)
|
|
468
468
|
|
|
469
469
|
|
|
470
|
+
def test_error_unmatched_arguments(test, device):
|
|
471
|
+
def kernel_1_fn():
|
|
472
|
+
a = 1 * 1.0
|
|
473
|
+
|
|
474
|
+
def kernel_2_fn():
|
|
475
|
+
x = wp.dot(wp.vec2(1.0, 2.0), wp.vec2h(wp.float16(1.0), wp.float16(2.0)))
|
|
476
|
+
|
|
477
|
+
kernel = wp.Kernel(func=kernel_1_fn)
|
|
478
|
+
with test.assertRaisesRegex(
|
|
479
|
+
RuntimeError,
|
|
480
|
+
r"Input types must be the same, got \['int32', 'float32'\]",
|
|
481
|
+
):
|
|
482
|
+
wp.launch(kernel, dim=1)
|
|
483
|
+
|
|
484
|
+
kernel = wp.Kernel(func=kernel_2_fn)
|
|
485
|
+
with test.assertRaisesRegex(
|
|
486
|
+
RuntimeError,
|
|
487
|
+
r"Input types must be exactly the same, got \[\"vector\(length=2, dtype=<class 'warp.types.float32'>\)\", \"vector\(length=2, dtype=<class 'warp.types.float16'>\)\"\]",
|
|
488
|
+
):
|
|
489
|
+
wp.launch(kernel, dim=1)
|
|
490
|
+
|
|
491
|
+
|
|
470
492
|
@wp.kernel
|
|
471
493
|
def test_call_syntax():
|
|
472
494
|
expected_pow = 16.0
|
|
@@ -618,6 +640,9 @@ add_function_test(TestCodeGen, func=test_error_global_var, name="test_error_glob
|
|
|
618
640
|
add_function_test(
|
|
619
641
|
TestCodeGen, func=test_error_collection_construct, name="test_error_collection_construct", devices=devices
|
|
620
642
|
)
|
|
643
|
+
add_function_test(
|
|
644
|
+
TestCodeGen, func=test_error_unmatched_arguments, name="test_error_unmatched_arguments", devices=devices
|
|
645
|
+
)
|
|
621
646
|
|
|
622
647
|
add_kernel_test(TestCodeGen, name="test_call_syntax", kernel=test_call_syntax, dim=1, devices=devices)
|
|
623
648
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: warp-lang
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.1
|
|
4
4
|
Summary: A Python framework for high-performance simulation and graphics programming
|
|
5
5
|
Author-email: NVIDIA Corporation <mmacklin@nvidia.com>
|
|
6
6
|
License: NVIDIA Software License
|
|
@@ -77,9 +77,9 @@ the `pip install` command, e.g.
|
|
|
77
77
|
|
|
78
78
|
| Platform | Install Command |
|
|
79
79
|
| --------------- | ----------------------------------------------------------------------------------------------------------------------------- |
|
|
80
|
-
| Linux aarch64 | `pip install https://github.com/NVIDIA/warp/releases/download/v1.3.
|
|
81
|
-
| Linux x86-64 | `pip install https://github.com/NVIDIA/warp/releases/download/v1.3.
|
|
82
|
-
| Windows x86-64 | `pip install https://github.com/NVIDIA/warp/releases/download/v1.3.
|
|
80
|
+
| Linux aarch64 | `pip install https://github.com/NVIDIA/warp/releases/download/v1.3.1/warp_lang-1.3.1+cu11-py3-none-manylinux2014_aarch64.whl` |
|
|
81
|
+
| Linux x86-64 | `pip install https://github.com/NVIDIA/warp/releases/download/v1.3.1/warp_lang-1.3.1+cu11-py3-none-manylinux2014_x86_64.whl` |
|
|
82
|
+
| Windows x86-64 | `pip install https://github.com/NVIDIA/warp/releases/download/v1.3.1/warp_lang-1.3.1+cu11-py3-none-win_amd64.whl` |
|
|
83
83
|
|
|
84
84
|
The `--force-reinstall` option may need to be used to overwrite a previous installation.
|
|
85
85
|
|
|
@@ -3,18 +3,18 @@ warp/__init__.pyi,sha256=Vxal9LM-q5ztScfRhrM4INpm5LJV6fN6B-H2NI5pkyU,21
|
|
|
3
3
|
warp/autograd.py,sha256=t6MKb6YabHAOIoBgNiYVSQRyj7eAJnWZ2xZy1sF0FPQ,33588
|
|
4
4
|
warp/build.py,sha256=N2-SDksxkffUkzV97dtLW2Wjqd5ERfgwpqzVoe8GNRw,3904
|
|
5
5
|
warp/build_dll.py,sha256=p9eTXMhKbI0uTkpqeY5DxOmVhupfaykM-a-re6fXBXg,15896
|
|
6
|
-
warp/builtins.py,sha256=
|
|
6
|
+
warp/builtins.py,sha256=si-PK9XhF32NMpCv86GYpvMvHYNAmtSi3-gwWICS2iA,141789
|
|
7
7
|
warp/codegen.py,sha256=w6dzi9P5IMhF22IyLUsS-TH5kls-jjV_y4U8TLVvVC8,117159
|
|
8
|
-
warp/config.py,sha256=
|
|
8
|
+
warp/config.py,sha256=WoFdUnKmxsTlb-ox6yy7YsWaEQvBVFlTyKrodfZ_1sk,2808
|
|
9
9
|
warp/constants.py,sha256=ckfEqwbg109RJDW98SILe_yfOBEFolOATVjt0mU2py4,1321
|
|
10
|
-
warp/context.py,sha256=
|
|
10
|
+
warp/context.py,sha256=E7xoo0pWyEYFKT-Bi64nLwpE6gMWBZFsJ233LEbsJgA,223971
|
|
11
11
|
warp/dlpack.py,sha256=Ol_wrve9k6ipSarDpNGlHoEH4KRFJucz09Aqvtgccs8,16777
|
|
12
12
|
warp/fabric.py,sha256=qWOomvuhM2y3EzScsgaj_Dxvdt0wJPfFu4jUUG1JALg,11439
|
|
13
13
|
warp/jax.py,sha256=QKJXfpz1jjaRD-Yp4C4wC4jUv8jHj0en3MW0VXKq0ZA,5280
|
|
14
14
|
warp/jax_experimental.py,sha256=sQH-B4Lm_iqBfxdYypnIxvmaQ7-EuQTXNvDH0EH2weY,13400
|
|
15
15
|
warp/sparse.py,sha256=APAp2M2FNpmOaQkI-ddxjluEcwJ-Ua2plNwq8IdP_Gw,64640
|
|
16
16
|
warp/stubs.py,sha256=pOsOnFy_ab5Pwxc5ba76PL8xGqHlbjItsJd2Xr03OEw,50057
|
|
17
|
-
warp/tape.py,sha256=
|
|
17
|
+
warp/tape.py,sha256=w96cmAIWTEvmUCvFVoNp3qMO2CCI934CjwE-7buPpDw,48988
|
|
18
18
|
warp/torch.py,sha256=jv3SYQHVKsiCzenlWUVmVs5mLYfsWcdTW446IqvEwVA,14505
|
|
19
19
|
warp/types.py,sha256=7ofleQXHgslDPy57WnexClbo_LnH10Dy1u6UygN5QoY,176302
|
|
20
20
|
warp/utils.py,sha256=wwyxRAujKkpdm-sB4pX5upAEgLv5RymOi6pQoNOUs-I,34663
|
|
@@ -262,7 +262,7 @@ warp/tests/test_bool.py,sha256=f-9kM--pYSg176KD9gRMOdnADfu8HP1ZnZEjvOYPjug,6472
|
|
|
262
262
|
warp/tests/test_builtins_resolution.py,sha256=ixoOhKgOgbuH-xbqNLx1DB1Nur3PdAtR0qW-TutaHrI,63989
|
|
263
263
|
warp/tests/test_bvh.py,sha256=Qa6g_uDo4NyAeJSqZlLDgxSnly4Vk7HF5cuZVB1_naE,5230
|
|
264
264
|
warp/tests/test_closest_point_edge_edge.py,sha256=SHcEi6X0r7q130NwIHRp9WWp0wtLW_MF1vbwahYtiUc,6825
|
|
265
|
-
warp/tests/test_codegen.py,sha256=
|
|
265
|
+
warp/tests/test_codegen.py,sha256=GYB1Dv832OFMGJM3CJehWc1V9P41jRAN-TESntwIrAg,16104
|
|
266
266
|
warp/tests/test_compile_consts.py,sha256=UgdpA95GnQANZ_oISmy-OBgO5srbLHT61pOn86jBY3Q,8141
|
|
267
267
|
warp/tests/test_conditional.py,sha256=MmUO0RD1j4Ceew0uNmqmzZzQVTN9qPDz48bYW24hAhY,5495
|
|
268
268
|
warp/tests/test_copy.py,sha256=993Xy5Y7VAFfUKhv74NOrbW4G4_hiXO7Jrpd-AVFjEM,7703
|
|
@@ -361,8 +361,8 @@ warp/thirdparty/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
361
361
|
warp/thirdparty/appdirs.py,sha256=2UXPK-AkDGoN5APeqAMMYkkfgf3Q_aUEZxcfkIxlQn0,24254
|
|
362
362
|
warp/thirdparty/dlpack.py,sha256=OzMyVi5uQU01n0yEquDotgYvEAmfXT93QaIV4p4QqB4,4273
|
|
363
363
|
warp/thirdparty/unittest_parallel.py,sha256=-FgbXrKiQ_RDj7YXYyhpRIPC3OmvJEnjvGkN99cqQA0,20888
|
|
364
|
-
warp_lang-1.3.
|
|
365
|
-
warp_lang-1.3.
|
|
366
|
-
warp_lang-1.3.
|
|
367
|
-
warp_lang-1.3.
|
|
368
|
-
warp_lang-1.3.
|
|
364
|
+
warp_lang-1.3.1.dist-info/LICENSE.md,sha256=Gq_TN0Xfat8Ftq2Rlvc31NgxdpLGVB-34kp-4eoeDV0,19265
|
|
365
|
+
warp_lang-1.3.1.dist-info/METADATA,sha256=mhiGSJoUmA6R3siDsRZOcJj7Jvw4t1LCgNzfkFodglU,23154
|
|
366
|
+
warp_lang-1.3.1.dist-info/WHEEL,sha256=yWkE5ZXPpQreDyVJwlOVgUZiiGtfawVd7c0lVluKA1c,113
|
|
367
|
+
warp_lang-1.3.1.dist-info/top_level.txt,sha256=8pupHORyKoiN_BYWlTmv5OFBWdhqpppiBYQV5KxgEvg,5
|
|
368
|
+
warp_lang-1.3.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|