mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-06 10:26:29 +08:00
fix: add microsecond resolution for timeout
Related-To: NEO-13445 Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
c19df80bd8
commit
8151224501
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user