[UR] Unify reference counting helpers across adapters
Open
enhancement
unified-runtime
- Dominant language
- LLVM
- Stars
- 1.5k
- Forks
- 854
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 137
Description
Every adapter (except OpenCL) has their own reference counting helper class or interface, it would be good to create a common UR reference counting interface and share that across all adapters:
* Native CPU: https://github.com/intel/llvm/blob/sycl/unified-runtime/source/adapters/native_cpu/common.hpp#L47
* L0: https://github.com/intel/llvm/blob/sycl/unified-runtime/source/adapters/level_zero/common.hpp#L225
* CUDA: https://github.com/intel/llvm/blob/sycl/unified-runtime/source/adapters/cuda/event.hpp#L68
* HIP: https://github.com/intel/llvm/blob/sycl/unified-runtime/source/adapters/hip/event.hpp#L64
Contributor guide
Assessment
This issue has not been assessed yet.