warp-lang 1.3.0__py3-none-win_amd64.whl → 1.3.1__py3-none-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.

Potentially problematic release.


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

warp/bin/warp-clang.dll CHANGED
Binary file
warp/bin/warp.dll CHANGED
Binary file
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, found: {[type_repr(t) for t in arg_types]}")
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, {list(arg_types)}")
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
@@ -7,7 +7,7 @@
7
7
 
8
8
  from typing import Optional
9
9
 
10
- version: str = "1.3.0"
10
+ version: str = "1.3.1"
11
11
  """Warp version string"""
12
12
 
13
13
  verify_fp: bool = False
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.check_kernel_array_access(kernel, fwd_args)
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 check_kernel_array_access(self, kernel, args):
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.reset_array_read_flags()
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 reset_array_read_flags(self):
274
+ def _reset_array_read_flags(self):
275
275
  """
276
276
  Reset all recorded array read flags to False
277
277
  """
@@ -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.0
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.0/warp_lang-1.3.0+cu11-py3-none-manylinux2014_aarch64.whl` |
81
- | Linux x86-64 | `pip install https://github.com/NVIDIA/warp/releases/download/v1.3.0/warp_lang-1.3.0+cu11-py3-none-manylinux2014_x86_64.whl` |
82
- | Windows x86-64 | `pip install https://github.com/NVIDIA/warp/releases/download/v1.3.0/warp_lang-1.3.0+cu11-py3-none-win_amd64.whl` |
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,23 +3,23 @@ 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=w7KaAhXB_AV1-jbOC4_E5WH_RjUKf7gl577gGEItj6s,141752
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=osH0uv4yiAXiwR4xnqH1Ijd2GJpzpW-QE2Ou_4t5t-0,2808
8
+ warp/config.py,sha256=WoFdUnKmxsTlb-ox6yy7YsWaEQvBVFlTyKrodfZ_1sk,2808
9
9
  warp/constants.py,sha256=ckfEqwbg109RJDW98SILe_yfOBEFolOATVjt0mU2py4,1321
10
- warp/context.py,sha256=_XYONCAZQRgJIHWwsx_02UjurSYCww9p6QrL5fs2zPI,223970
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=gPqyPPxf_zYs6ujPQhYYHpK5AKLUMGkSPZH2yMLr0PY,48985
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
21
- warp/bin/warp-clang.dll,sha256=9Lgglr5hgOdPts1i5A9XvDCo7SAmwSMI8O0advjHvAw,47584256
22
- warp/bin/warp.dll,sha256=1PNpZmvc1buJUQeyUB8xoa293e5VK24ybR3CB6PgPgY,101460992
21
+ warp/bin/warp-clang.dll,sha256=0qmyt7yvhS3jBmaHEQKmcW5C6edo_-W4DFi92T8FVXw,47584256
22
+ warp/bin/warp.dll,sha256=AvaPbokRrIvfxgypZBOrhRhvB22t515aqo5nOOzV0BU,101460992
23
23
  warp/examples/__init__.py,sha256=ul3vRFtQ17_zIZIWJaCnCY28KZTGOUHQA4wA_IW_qaw,606
24
24
  warp/examples/browse.py,sha256=6v7F0vpZz5ZtYGkg8hIpxhbIZ2ECv46cIKAmKVtV1S4,848
25
25
  warp/examples/assets/bear.usd,sha256=1SK7s-zpF3Ypzcc8Wt861o174Pe-xMuJpvosACXVNUk,226238
@@ -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=FB7JJU7vYiN6jaNLq6Yi3ERHiAFQ7Bl_lWpPv4nRihI,15253
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.0.dist-info/LICENSE.md,sha256=Gq_TN0Xfat8Ftq2Rlvc31NgxdpLGVB-34kp-4eoeDV0,19265
365
- warp_lang-1.3.0.dist-info/METADATA,sha256=e6HWNBOvjDdSqP5vgW45uH7daZ9ZmCJgtjKaBIkKqYM,23154
366
- warp_lang-1.3.0.dist-info/WHEEL,sha256=zcwxXftXNaa7Py7OZ-3wt1up99qExiwX5ARyT17by5k,99
367
- warp_lang-1.3.0.dist-info/top_level.txt,sha256=8pupHORyKoiN_BYWlTmv5OFBWdhqpppiBYQV5KxgEvg,5
368
- warp_lang-1.3.0.dist-info/RECORD,,
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=zcwxXftXNaa7Py7OZ-3wt1up99qExiwX5ARyT17by5k,99
367
+ warp_lang-1.3.1.dist-info/top_level.txt,sha256=8pupHORyKoiN_BYWlTmv5OFBWdhqpppiBYQV5KxgEvg,5
368
+ warp_lang-1.3.1.dist-info/RECORD,,