Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.

Issue with cuda::atomic_ref::notify_one and wait #370

Closed
gevtushenko opened this issue Feb 20, 2023 · 1 comment
Closed

Issue with cuda::atomic_ref::notify_one and wait #370

gevtushenko opened this issue Feb 20, 2023 · 1 comment
Assignees
Labels
libcu++ P0: must have Absolutely must ship with the milestone.

Comments

@gevtushenko
Copy link
Collaborator

I can see a compilation error for the following code:

__global__ void example_kernel(int* flag_mem) {
  cuda::atomic_ref<int, cuda::thread_scope_device> flag(*flag_mem);
  flag.notify_one();
  flag.wait(0, cuda::std::memory_order_relaxed);
}

The error seems to be reproduceable on CTK 12.0.1 version of the libcu++ as well as on main:

error: no instance of function template "cuda::std::__4::__cxx_atomic_wait" matches the argument list
no instance of function template "cuda::std::__4::__cxx_atomic_notify_one" matches the argument list
@wmaxey
Copy link
Member

wmaxey commented Feb 28, 2023

This should be resolved with #379.

@wmaxey wmaxey assigned wmaxey and unassigned griwes Feb 28, 2023
@wmaxey wmaxey added the P0: must have Absolutely must ship with the milestone. label Feb 28, 2023
@wmaxey wmaxey moved this to Done in CCCL Apr 24, 2023
@wmaxey wmaxey closed this as completed Apr 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
libcu++ P0: must have Absolutely must ship with the milestone.
Projects
Archived in project
Development

No branches or pull requests

4 participants