Skip to content

[BUG] wp.kernel functions crash if return value exist - but no compile time error/warning is given #1109

@alex77g2

Description

@alex77g2

Bug Description

@wp.kernel def f1(x: wp.vec4ui) -> wp.vec4ui: return x
Warp 1.10.1 initialized: CUDA Toolkit 12.8, Driver 13.0
is crashing at launch AttributeError: 'tuple' object has no attribute 'ctype'
There is no warning or error at complie time (wp.kernel -> llvm).
This creates useless frustration for beginners.
Please try to handle this in a better way and also mention this in documentation.

System Information

Warp 1.10.1 initialized: CUDA Toolkit 12.8, Driver 13.0
Windows 10, Python 3.13.9

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions