Skip to content
New issue

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

Support int64 atomicAdd operations. #369

Open
daedalus5 opened this issue Nov 26, 2024 · 0 comments
Open

Support int64 atomicAdd operations. #369

daedalus5 opened this issue Nov 26, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@daedalus5
Copy link
Contributor

Description

Support int64 wp.atomic_add operations.

Test script:

import warp as wp

@wp.kernel(enable_backward=False)
def increase_kernel(
    arr: wp.array(dtype=wp.int64),
):
    i = wp.tid()
    wp.atomic_add(arr, i, wp.int64(1))


arr = wp.array((1, 2, 3), dtype=wp.int64)
wp.launch(increase_kernel, dim=arr.shape, inputs=(arr,))
print(arr)
@daedalus5 daedalus5 added the enhancement New feature or request label Nov 26, 2024
@daedalus5 daedalus5 self-assigned this Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant