NVIDIA / NVIDIA/cccl

Don't provide `atomic` wait/notify for < SM70

Open
#977 0 comments 0 reactions 0 assignees View on GitHub
libcu++
Dominant language
C++
Stars
2.5k
Forks
486
Avg merge
2d 6h
Merged PRs (30d)
295

Description

Today, we [`#if` away `atomic_flag`'s wait/notify API for < SM70](https://github.com/NVIDIA/libcudacxx/blob/feature/nvcxx-compatibility/libcxx/include/atomic#L2600), but we don't do the same for `atomic`. We should be consistent here.

We should also consider whether `#if` away is the right solution. The C++ committee decided to prefer declaring, but not defining methods that can't be supported in freestanding; this makes metaprogramming/SFINAE a little more sane and consistent. We should consider this option.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.