SWDEV-367745 - Report hipDeviceAttributeUnifiedAddressing
Change-Id: I4d1d598f64f613430fecdc0d6b4cfa9845e04687
[ROCm/clr commit: 2cde04bf9b]
이 커밋은 다음에 포함됨:
1 부모
418f1d6460
커밋
c6707887ed
1 파일이 변경됨
+6
@@ -319,6 +319,12 @@ hipError_t hipDeviceGetAttribute(int* pi, hipDeviceAttribute_t attr, int device)
|
||||
case hipDeviceAttributePageableMemoryAccessUsesHostPageTables:
|
||||
*pi = prop.pageableMemoryAccessUsesHostPageTables;
|
||||
break;
|
||||
case hipDeviceAttributeUnifiedAddressing:
|
||||
// HIP runtime always uses SVM for host memory allocations.
|
||||
// Note: Host registered memory isn't covered by this feature
|
||||
// and still requires hipMemHostGetDevicePointer() call
|
||||
*pi = true;
|
||||
break;
|
||||
case hipDeviceAttributeCanUseStreamWaitValue:
|
||||
// hipStreamWaitValue64() and hipStreamWaitValue32() support
|
||||
*pi = g_devices[device]->devices()[0]->info().aqlBarrierValue_;
|
||||
|
||||
새 이슈에서 참조
사용자 차단