Unnecessary allocation in L0 plugin
Open
confirmed
enhancement
- Dominant language
- LLVM
- Stars
- 1.5k
- Forks
- 854
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 137
Description
https://github.com/intel/llvm/blob/e6d0547e9d99b5a56430c4749f6c7e328bf221ab/sycl/plugins/level_zero/pi_level_zero.cpp#L394-L395
SpinLock is a trivial class, it will outlive all other C++ global objects, there's no need to allocate it on heap.
Contributor guide
Assessment
This issue has not been assessed yet.