NVIDIA / warp

A Python framework for high performance GPU simulation and graphics
https://nvidia.github.io/warp/
Other
4.3k stars 246 forks source link

[BUG] "bvh_query_xxxx" is not a known attribute of module "warp" #305

Closed yzx9 closed 2 months ago

yzx9 commented 2 months ago

Bug Description

The BVH runtime functions bvh_query_aabb, bvh_query_ray, and bvh_query_next are documented and work correctly at runtime, but they are not typed in the library.

I noticed that these functions are missing from the stub.py file, while the volume_xxxxx functions are present. This suggests that something may have gone wrong during the generation of stub.py.

Steps to Reproduce

  1. Open a file and type the following:

    import warp
    warp.bvh_query_aabb()
  2. You will receive an error from Pyright: "bvh_query_aabb" is not a known attribute of module "warp" 152:16:10 Pyright reportAttributeAccessIssue.

System Information

Warp 1.3.1 initialized:
   CUDA devices not available
   Devices:
     "cpu"      : "CPU"
   Kernel cache:
     /home/yzx9/.cache/warp/1.3.1
christophercrouzet commented 2 months ago

Hi @yzx9, thanks for raising this issue! You're correct and last week we actually opened a MR internally that addresses the built-ins missing from stubs.py. I'll comment here once it's merged!

christophercrouzet commented 2 months ago

Hi @yzx9, the commit 7847af9 has now been merged to main and will be part of a future release. Apologies for the inconvenience caused!