oneapi-src / oneapi-src/unified-memory-framework
use C11 atomics and remove c++ code from utils_concurrency.h
Open
Nobody has claimed this yet.
bug
- Dominant language
- C
- Stars
- 98
- Forks
- 48
- Avg merge
- 3d 20h
- Merged PRs (30d)
- 6
Description
remove C++ code related to atomics from utils_concurrency.h and use C11 atomics instead
#else /* __cplusplus */
#include <atomic>
#define _Atomic(X) std::atomic<X>
// TODO remove cpp code from this file
using std::memory_order_acq_rel;
using std::memory_order_acquire;
using std::memory_order_relaxed;
using std::memory_order_release;
#endif /* __cplusplus */
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the conditional atomics section in utils_concurrency.h, including the existing C++ definitions and memory-order names. Confirm the file no longer contains the shown C++ atomics code and uses C11 atomics consistently, then run the repository's relevant tests if available.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- backend
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100