Skip to content

[BUG] Fix Missing Unsigned Integer Overloads For atomic_*() #733

@christophercrouzet

Description

@christophercrouzet

Bug Description

@wp.kernel
def kernel(
    idx: wp.array(dtype=wp.uint32)
):
    wp.atomic_min(idx, wp.uint32(0), wp.uint32(0))


idx = wp.zeros(123, dtype=wp.uint32)
wp.launch(kernel, dim=1, outputs=(idx,))

The snippet above currently fails with:

error: no instance of overloaded function "wp::atomic_min" matches the argument list
            argument types are: (wp::uint32 *, wp::uint32)

System Information

No response

Metadata

Metadata

Labels

bugSomething isn't workingcore

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions