SWDEV-273138 - Update canUseStreamWaitValue retrieving
Remove canUseStreamWaitValue from hipDeviceProp_t.
Update canUseStreamWaitValue retrieving in hipDeviceGetAttribute().
Change-Id: I275bd42d8b03e141caaf9f1bc6b714e51ca72dfb
[ROCm/hip commit: ca0cc36ef4]
Tá an tiomantas seo le fáil i:
tiomanta ag
Tao Sang
tuismitheoir
313856c6ea
tiomantas
f962ea4cc1
@@ -147,8 +147,6 @@ typedef struct hipDeviceProp_t {
|
|||||||
int pageableMemoryAccess; ///< Device supports coherently accessing pageable memory
|
int pageableMemoryAccess; ///< Device supports coherently accessing pageable memory
|
||||||
///< without calling hipHostRegister on it
|
///< without calling hipHostRegister on it
|
||||||
int pageableMemoryAccessUsesHostPageTables; ///< Device accesses pageable memory via the host's page tables
|
int pageableMemoryAccessUsesHostPageTables; ///< Device accesses pageable memory via the host's page tables
|
||||||
int canUseStreamWaitValue; ///< '1' if Device supports hipStreamWaitValue32() and
|
|
||||||
///< hipStreamWaitValue64() , '0' otherwise.
|
|
||||||
} hipDeviceProp_t;
|
} hipDeviceProp_t;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -235,9 +235,6 @@ hipError_t hipGetDeviceProperties ( hipDeviceProp_t* props, hipDevice_t device )
|
|||||||
deviceProps.pageableMemoryAccess = info.hmmCpuMemoryAccessible_;
|
deviceProps.pageableMemoryAccess = info.hmmCpuMemoryAccessible_;
|
||||||
deviceProps.pageableMemoryAccessUsesHostPageTables = info.hostUnifiedMemory_;
|
deviceProps.pageableMemoryAccessUsesHostPageTables = info.hostUnifiedMemory_;
|
||||||
|
|
||||||
// hipStreamWaitValue64() and hipStreamWaitValue32() support
|
|
||||||
deviceProps.canUseStreamWaitValue = info.aqlBarrierValue_;
|
|
||||||
|
|
||||||
*props = deviceProps;
|
*props = deviceProps;
|
||||||
HIP_RETURN(hipSuccess);
|
HIP_RETURN(hipSuccess);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -315,7 +315,8 @@ hipError_t hipDeviceGetAttribute(int* pi, hipDeviceAttribute_t attr, int device)
|
|||||||
*pi = prop.pageableMemoryAccessUsesHostPageTables;
|
*pi = prop.pageableMemoryAccessUsesHostPageTables;
|
||||||
break;
|
break;
|
||||||
case hipDeviceAttributeCanUseStreamWaitValue:
|
case hipDeviceAttributeCanUseStreamWaitValue:
|
||||||
*pi = prop.canUseStreamWaitValue;
|
// hipStreamWaitValue64() and hipStreamWaitValue32() support
|
||||||
|
*pi = g_devices[device]->devices()[0]->info().aqlBarrierValue_;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
HIP_RETURN(hipErrorInvalidValue);
|
HIP_RETURN(hipErrorInvalidValue);
|
||||||
|
|||||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir