intel / intel/llvm

Unnecessary allocation in L0 plugin

Open
#5,601 0 comments 0 reactions 2 assignees Claimed by @smaslov-intel View on GitHub
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

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.