warp-lang 1.2.0__py3-none-manylinux2014_aarch64.whl → 1.2.1__py3-none-manylinux2014_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.

warp/bin/warp-clang.so CHANGED
Binary file
warp/bin/warp.so CHANGED
Binary file
warp/config.py CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  from typing import Optional
9
9
 
10
- version: str = "1.2.0"
10
+ version: str = "1.2.1"
11
11
 
12
12
  verify_fp: bool = False # verify inputs and outputs are finite after each launch
13
13
  verify_cuda: bool = False # if true will check CUDA errors after each kernel launch / memory operation
warp/context.py CHANGED
@@ -1488,8 +1488,9 @@ class Module:
1488
1488
 
1489
1489
  # functions source
1490
1490
  for function in module.functions.values():
1491
- # include all overloads
1492
- for sig, func in function.user_overloads.items():
1491
+ # include all concrete and generic overloads
1492
+ overloads = itertools.chain(function.user_overloads.items(), function.user_templates.items())
1493
+ for sig, func in overloads:
1493
1494
  # signature
1494
1495
  ch.update(bytes(sig, "utf-8"))
1495
1496
 
@@ -3632,6 +3633,9 @@ def is_mempool_access_supported(target_device: Devicelike, peer_device: Deviceli
3632
3633
 
3633
3634
  init()
3634
3635
 
3636
+ target_device = runtime.get_device(target_device)
3637
+ peer_device = runtime.get_device(peer_device)
3638
+
3635
3639
  return target_device.is_mempool_supported and is_peer_access_supported(target_device, peer_device)
3636
3640
 
3637
3641
 
warp/types.py CHANGED
@@ -1650,9 +1650,10 @@ class array(Array):
1650
1650
  try:
1651
1651
  # Performance note: try first, ask questions later
1652
1652
  device = warp.context.runtime.get_device(device)
1653
- except:
1654
- warp.context.init()
1655
- raise
1653
+ except Exception:
1654
+ # Fallback to using the public API for retrieving the device,
1655
+ # which takes take of initializing Warp if needed.
1656
+ device = warp.context.get_device(device)
1656
1657
 
1657
1658
  if device.is_cuda:
1658
1659
  desc = data.__cuda_array_interface__
@@ -1779,9 +1780,10 @@ class array(Array):
1779
1780
  try:
1780
1781
  # Performance note: try first, ask questions later
1781
1782
  device = warp.context.runtime.get_device(device)
1782
- except:
1783
- warp.context.init()
1784
- raise
1783
+ except Exception:
1784
+ # Fallback to using the public API for retrieving the device,
1785
+ # which takes take of initializing Warp if needed.
1786
+ device = warp.context.get_device(device)
1785
1787
 
1786
1788
  if device.is_cpu and not copy and not pinned:
1787
1789
  # reference numpy memory directly
@@ -1805,9 +1807,10 @@ class array(Array):
1805
1807
  try:
1806
1808
  # Performance note: try first, ask questions later
1807
1809
  device = warp.context.runtime.get_device(device)
1808
- except:
1809
- warp.context.init()
1810
- raise
1810
+ except Exception:
1811
+ # Fallback to using the public API for retrieving the device,
1812
+ # which takes take of initializing Warp if needed.
1813
+ device = warp.context.get_device(device)
1811
1814
 
1812
1815
  check_array_shape(shape)
1813
1816
  ndim = len(shape)
@@ -1852,9 +1855,10 @@ class array(Array):
1852
1855
  try:
1853
1856
  # Performance note: try first, ask questions later
1854
1857
  device = warp.context.runtime.get_device(device)
1855
- except:
1856
- warp.context.init()
1857
- raise
1858
+ except Exception:
1859
+ # Fallback to using the public API for retrieving the device,
1860
+ # which takes take of initializing Warp if needed.
1861
+ device = warp.context.get_device(device)
1858
1862
 
1859
1863
  check_array_shape(shape)
1860
1864
  ndim = len(shape)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: warp-lang
3
- Version: 1.2.0
3
+ Version: 1.2.1
4
4
  Summary: A Python framework for high-performance simulation and graphics programming
5
5
  Author-email: NVIDIA <mmacklin@nvidia.com>
6
6
  License: NVIDIA Software License
@@ -108,7 +108,10 @@ print(lengths)
108
108
 
109
109
  ## Running Examples
110
110
 
111
- The `examples` directory contains a number of scripts that show how to implement different simulation methods using the Warp API. Most examples will generate USD files containing time-sampled animations (stored in the current working directory). Before running examples, users should ensure that the ``usd-core``, ``matplotlib``, and ``pyglet`` packages are installed using:
111
+ The [warp/examples](./warp/examples/) directory contains a number of scripts categorized under different subdirectories
112
+ that show how to implement different simulation methods using the Warp API.
113
+ Most examples will generate USD files containing time-sampled animations (stored in the current working directory).
114
+ Before running examples, users should ensure that the ``usd-core``, ``matplotlib``, and ``pyglet`` packages are installed using:
112
115
 
113
116
  pip install usd-core matplotlib pyglet
114
117
 
@@ -4,9 +4,9 @@ warp/build.py,sha256=LmRSU00pdlN1P31XS1_FhXgu_k7GzKkAzPd0LacZClo,3690
4
4
  warp/build_dll.py,sha256=p9eTXMhKbI0uTkpqeY5DxOmVhupfaykM-a-re6fXBXg,15896
5
5
  warp/builtins.py,sha256=AlHPF8WTvTOF2DGo8nQJ_OmZ5nzkoTi_qPLDlc6fPg0,122322
6
6
  warp/codegen.py,sha256=MJC5a63p-eXelMivb0Tyg6hU_ZCuqx8nMDSE7Om0BV0,103205
7
- warp/config.py,sha256=Spi7LsenwhcJubEYYMAmlzYEoVdGQ1qPNJjeqEICsv8,1879
7
+ warp/config.py,sha256=uimmJvTOD_xfYuBo4rExTn4izyvbzXJqsURttRkqwXA,1879
8
8
  warp/constants.py,sha256=ckfEqwbg109RJDW98SILe_yfOBEFolOATVjt0mU2py4,1321
9
- warp/context.py,sha256=J0w1vzGBh1r0JXz-A0bf1rytV5E5WtZEv2gPGxt4yzg,213400
9
+ warp/context.py,sha256=_vyVfFBpo-teFiy_n26F0If5GU5cVfU7wWksbkyYckM,213618
10
10
  warp/dlpack.py,sha256=z242iSS70YF-5IP-GVE83R7HbHB5aRMmiYiQlAbyNis,16568
11
11
  warp/fabric.py,sha256=__Dbd9TmF5bqxUh411dpiAGxrlsfDAwZ8benjXN3Jco,11316
12
12
  warp/jax.py,sha256=QKJXfpz1jjaRD-Yp4C4wC4jUv8jHj0en3MW0VXKq0ZA,5280
@@ -15,10 +15,10 @@ warp/sparse.py,sha256=57Ar8OknSZ5P0apLLm_hnhxWlj0bh6U-mbu2qfYDcis,42356
15
15
  warp/stubs.py,sha256=wS3_3Joiutw9cecEzae5GyYHIOUH6wl8CdLeozueqks,57977
16
16
  warp/tape.py,sha256=hH3Qb9CiKHmq5OUIHRTZjZdYDXR2noHFNiB9HrIl5ZU,47864
17
17
  warp/torch.py,sha256=5hRCNL5jJzrh3hAcn1DdYfTvdOA5fvBy0VQnHviZpkE,11760
18
- warp/types.py,sha256=1OlIRSbwHFDbOPcnCxOi5lQcGCY6kn2Iwp-5kuntML8,169680
18
+ warp/types.py,sha256=JViQDLNFdeaGyqklXWGMyHYrgGK1_6UKOBPbJSqkEZM,170284
19
19
  warp/utils.py,sha256=UoTCl9kGlPJBlsgvhM726VsnMkUsQSamxLQ0vgR1h5s,34148
20
- warp/bin/warp-clang.so,sha256=hcnCbX_yQWdlKKhPJ1-divB8qY-MRmE5nIW6C1Mkj3g,52883864
21
- warp/bin/warp.so,sha256=q2tvdkJ262_iBQ1L3ahQat33gGvG02eeWROrXFazg3A,124687832
20
+ warp/bin/warp-clang.so,sha256=2a-D7s5Aku1pR96k6gfDbTsPnTU1nGenly-rbBBxoqY,52851096
21
+ warp/bin/warp.so,sha256=MqGizmXxBAO6rO48PiH53Uq61aUzFMUnZGrH95FBBN0,124687832
22
22
  warp/examples/__init__.py,sha256=ul3vRFtQ17_zIZIWJaCnCY28KZTGOUHQA4wA_IW_qaw,606
23
23
  warp/examples/browse.py,sha256=6v7F0vpZz5ZtYGkg8hIpxhbIZ2ECv46cIKAmKVtV1S4,848
24
24
  warp/examples/assets/bear.usd,sha256=1SK7s-zpF3Ypzcc8Wt861o174Pe-xMuJpvosACXVNUk,226238
@@ -352,8 +352,8 @@ warp/thirdparty/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
352
352
  warp/thirdparty/appdirs.py,sha256=2UXPK-AkDGoN5APeqAMMYkkfgf3Q_aUEZxcfkIxlQn0,24254
353
353
  warp/thirdparty/dlpack.py,sha256=OzMyVi5uQU01n0yEquDotgYvEAmfXT93QaIV4p4QqB4,4273
354
354
  warp/thirdparty/unittest_parallel.py,sha256=5z6oi9tsk2fOxhP4fx8hXRGveDTLM9fcESfzMWxJLFs,20998
355
- warp_lang-1.2.0.dist-info/LICENSE.md,sha256=Gq_TN0Xfat8Ftq2Rlvc31NgxdpLGVB-34kp-4eoeDV0,19265
356
- warp_lang-1.2.0.dist-info/METADATA,sha256=JEx5lbyT9BHlLuQzlBUxBXLSE79bcDchLWtHJi6c15I,20549
357
- warp_lang-1.2.0.dist-info/WHEEL,sha256=Jnjojrf4EGkJZw4ToGTqSAdpEYbK8-OHT7fzFXvzFsg,111
358
- warp_lang-1.2.0.dist-info/top_level.txt,sha256=8pupHORyKoiN_BYWlTmv5OFBWdhqpppiBYQV5KxgEvg,5
359
- warp_lang-1.2.0.dist-info/RECORD,,
355
+ warp_lang-1.2.1.dist-info/LICENSE.md,sha256=Gq_TN0Xfat8Ftq2Rlvc31NgxdpLGVB-34kp-4eoeDV0,19265
356
+ warp_lang-1.2.1.dist-info/METADATA,sha256=INLOWhLJDd8U5LCSIPBYnF791H3AH37SxdPKSpr3eMk,20615
357
+ warp_lang-1.2.1.dist-info/WHEEL,sha256=Jnjojrf4EGkJZw4ToGTqSAdpEYbK8-OHT7fzFXvzFsg,111
358
+ warp_lang-1.2.1.dist-info/top_level.txt,sha256=8pupHORyKoiN_BYWlTmv5OFBWdhqpppiBYQV5KxgEvg,5
359
+ warp_lang-1.2.1.dist-info/RECORD,,