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
I have a kernel that does something like multiple an array of 3D vectors by a 4x4 matrix (and then some other stuff).
The kernel signature is like this:
@wp.kernel
def matmul(
mat: wp.mat44,
vertices: wp.array2d(dtype=wp.vec4),
output: wp.array2d(dtype=wp.vec4)):
i, j = wp.tid()
output[i, j] = mat @ vertices[i, j]
Note that mat is changing every call.
I don't quite know how to call this signature though, this doesn't work:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have a kernel that does something like multiple an array of 3D vectors by a 4x4 matrix (and then some other stuff).
The kernel signature is like this:
Note that mat is changing every call.
I don't quite know how to call this signature though, this doesn't work:
Can a kernel input be a
wp.mat44like this? If so how do I call it? Also, is there a way to make thewp.mat44be in__constant__CUDA RAM?Beta Was this translation helpful? Give feedback.
All reactions