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
Prior to warp v1.5 (tested with v1.4.0), the condition if reset and reset[tid] is able to run when reset is None. After upgrading to v1.5, the kernel cause Warp CUDA Error 700: an illegal memory access was encountered. Not sure if upgrading was supposed to report illegal memory access or causing illegal memory access.
import warp as wp
@wp.kernel
def test_kernel(
reset: wp.array(dtype=bool),
# outputs
buffer: wp.array(dtype=int)
):
tid = wp.tid()
## Works only before v1.5
if reset and reset[tid]:
buffer[tid] = tid
## Solution for > v1.5
# if reset:
# if reset[tid]:
# buffer[tid] = tid
def main():
reset = wp.array([True, True, False, True, False, False])
buffer = wp.empty(reset.shape, dtype=int)
wp.launch(
test_kernel,
dim=buffer.shape,
inputs = [
# reset
None
],
outputs = [
buffer
]
)
print(f'{buffer.numpy()=}')
if __name__ == '__main__':
main()
System Information
CUDA Version: 12.5
OS Ubuntu 22.04
Python Version: 3.10.12
System Information
No response
The text was updated successfully, but these errors were encountered:
Bug Description
Prior to warp v1.5 (tested with v1.4.0), the condition
if reset and reset[tid]
is able to run when reset isNone
. After upgrading to v1.5, the kernel causeWarp CUDA Error 700: an illegal memory access was encountered.
Not sure if upgrading was supposed to report illegal memory access or causing illegal memory access.System Information
CUDA Version: 12.5
OS Ubuntu 22.04
Python Version: 3.10.12
System Information
No response
The text was updated successfully, but these errors were encountered: