mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-26 15:03:02 +08:00
Obtain split events under mutex
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
e0a2fe057b
commit
b814e20cf7
@@ -115,6 +115,7 @@ std::vector<CommandQueue *> &BcsSplit::getCmdQsForSplit(NEO::TransferDirection d
|
||||
}
|
||||
|
||||
size_t BcsSplit::Events::obtainForSplit(Context *context, size_t maxEventCountInPool) {
|
||||
std::lock_guard<std::mutex> lock(this->mtx);
|
||||
for (size_t i = 0; i < this->marker.size(); i++) {
|
||||
auto ret = this->marker[i]->queryStatus();
|
||||
if (ret == ZE_RESULT_SUCCESS) {
|
||||
|
||||
@@ -37,6 +37,7 @@ struct BcsSplit {
|
||||
struct Events {
|
||||
BcsSplit &bcsSplit;
|
||||
|
||||
std::mutex mtx;
|
||||
std::vector<EventPool *> pools;
|
||||
std::vector<Event *> barrier;
|
||||
std::vector<Event *> subcopy;
|
||||
|
||||
Reference in New Issue
Block a user