We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following snippet causes memory corruption because the allocated array capacity is too small:
import warp as wp @wp.kernel def foo(arr:wp.array(dtype=wp.int32, ndim=2)): i, j = wp.tid() arr[i, j] = i * j with wp.ScopedDevice("cpu"): arr = wp.zeros(shape=(3, 3), strides=(4, 12), dtype=wp.int32) wp.launch(foo, dim=arr.shape, inputs=(arr,)) print(arr)
No response
The text was updated successfully, but these errors were encountered:
nvlukasz
No branches or pull requests
Bug Description
The following snippet causes memory corruption because the allocated array capacity is too small:
System Information
No response
The text was updated successfully, but these errors were encountered: