SWDEV-434226 - populate correct output in mempool supported handle type query
Change-Id: Iabbf9c0b54d9978671e3492f13660917499a03fa
Esse commit está contido em:
commit de
Jatin Jaikishan Chaudhary
pai
b2102fe939
commit
d5e596c975
@@ -402,7 +402,16 @@ hipError_t ihipGetDeviceProperties(hipDeviceProp_tR0600* props, int device) {
|
||||
|
||||
// Mem pool
|
||||
deviceProps.memoryPoolsSupported = HIP_MEM_POOL_SUPPORT;
|
||||
deviceProps.memoryPoolSupportedHandleTypes = 0;
|
||||
unsigned int memPoolHandleType = 0;
|
||||
if (HIP_MEM_POOL_SUPPORT) {
|
||||
#if defined(__linux__)
|
||||
memPoolHandleType |= hipMemHandleTypePosixFileDescriptor;
|
||||
#elif defined(_WIN32)
|
||||
memPoolHandleType |= hipMemHandleTypeWin32;
|
||||
memPoolHandleType |= hipMemHandleTypeWin32Kmt;
|
||||
#endif
|
||||
}
|
||||
deviceProps.memoryPoolSupportedHandleTypes = memPoolHandleType;
|
||||
|
||||
// Caching behavior
|
||||
deviceProps.globalL1CacheSupported = 1;
|
||||
|
||||
@@ -440,6 +440,9 @@ hipError_t hipDeviceGetAttribute(int* pi, hipDeviceAttribute_t attr, int device)
|
||||
case hipDeviceAttributeMemoryPoolsSupported:
|
||||
*pi = HIP_MEM_POOL_SUPPORT;
|
||||
break;
|
||||
case hipDeviceAttributeMemoryPoolSupportedHandleTypes:
|
||||
*pi = prop.memoryPoolSupportedHandleTypes;
|
||||
break;
|
||||
case hipDeviceAttributeVirtualMemoryManagementSupported:
|
||||
*pi = static_cast<int>(g_devices[device]->devices()[0]->info().virtualMemoryManagement_);
|
||||
break;
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário