fix: add microsecond resolution for timeout

Related-To: NEO-13445
Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
This commit is contained in:
Maciej Plewka
2024-12-11 10:18:07 +00:00
committed by Compute-Runtime-Automation
parent c19df80bd8
commit 8151224501
20 changed files with 165 additions and 19 deletions

View File

@@ -233,6 +233,9 @@ class Device : public ReferenceTrackedObject<Device> {
size_t getAllocationsSavedForReuseSize() const {
return allocationsSavedForReuseSize;
}
uint32_t getMicrosecondResolution() const {
return microsecondResolution;
}
protected:
Device() = delete;
@@ -311,6 +314,7 @@ class Device : public ReferenceTrackedObject<Device> {
std::unique_ptr<UsmMemAllocPoolsManager> deviceUsmMemAllocPoolsManager;
size_t allocationsSavedForReuseSize = 0u;
uint32_t microsecondResolution = 1000u;
mutable std::mutex allocationsReuseMtx;
struct {