2021-03-30 18:11:00 +00:00
|
|
|
/*
|
2023-11-30 08:32:25 +00:00
|
|
|
* Copyright (C) 2021-2023 Intel Corporation
|
2021-03-30 18:11:00 +00:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "shared/source/utilities/wait_util.h"
|
|
|
|
|
|
|
|
|
|
#include "shared/source/debug_settings/debug_settings_manager.h"
|
|
|
|
|
|
|
|
|
|
namespace NEO {
|
|
|
|
|
|
|
|
|
|
namespace WaitUtils {
|
|
|
|
|
|
|
|
|
|
uint32_t waitCount = defaultWaitCount;
|
|
|
|
|
|
|
|
|
|
void init() {
|
2023-11-30 08:32:25 +00:00
|
|
|
int32_t overrideWaitCount = debugManager.flags.WaitLoopCount.get();
|
2021-03-30 18:11:00 +00:00
|
|
|
if (overrideWaitCount != -1) {
|
|
|
|
|
waitCount = static_cast<uint32_t>(overrideWaitCount);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} // namespace WaitUtils
|
|
|
|
|
|
|
|
|
|
} // namespace NEO
|