You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@wp.kernel
def _matrix(points: wp.array(dtype=wp.vec3),
faces: wp.array(dtype=wp.vec3i),
mesh: wp.uint64):
f = wp.tid()
face = faces[f]
This was seemingly working when I was in device='cpu' , however changing device to cuda results in: RuntimeError: Error launching kernel '_matrix', argument 'faces' expects an array with dtype=<class 'warp.types.vec3i'> but passed array has dtype=<class 'warp.types.int32'>.
The text was updated successfully, but these errors were encountered:
Discussed in #359
Originally posted by cadop November 15, 2024
I am trying to convert an array of integers into a warp array of
vec3i
, where the second dim is captured by the warp dtype.The kernel signature is:
This was seemingly working when I was in
device='cpu'
, however changing device to cuda results in:RuntimeError: Error launching kernel '_matrix', argument 'faces' expects an array with dtype=<class 'warp.types.vec3i'> but passed array has dtype=<class 'warp.types.int32'>.
The text was updated successfully, but these errors were encountered: