SWDEV-427689 - Report LUID in Windows

Pass LUID infromation from PAL to HIP device properties.
NodeMask is calculated based on the order of devices in PAL

Change-Id: Ic53707b68b16f392e5284a0105bf1f3941b46653
This commit is contained in:
German
2023-10-17 19:10:54 -04:00
committed by German Andryeyev
parent 0ca61130a2
commit 694fe4bedb
4 changed files with 41 additions and 23 deletions
+4 -3
View File
@@ -447,9 +447,10 @@ hipError_t ihipGetDeviceProperties(hipDeviceProp_tR0600* props, hipDevice_t devi
deviceProps.gpuDirectRDMASupported = 0;
deviceProps.gpuDirectRDMAFlushWritesOptions = 0;
deviceProps.gpuDirectRDMAWritesOrdering = 0;
// luid - TODO populate it only on windows
std::memset(deviceProps.luid, 0, sizeof(deviceProps.luid));
deviceProps.luidDeviceNodeMask = 0;
*reinterpret_cast<uint32_t*>(&deviceProps.luid[0]) = info.luidLowPart_;
*reinterpret_cast<uint32_t*>(&deviceProps.luid[sizeof(uint32_t)]) = info.luidHighPart_;
deviceProps.luidDeviceNodeMask = info.luidDeviceNodeMask_;
deviceProps.sparseHipArraySupported = 0;
deviceProps.timelineSemaphoreInteropSupported = 0;
deviceProps.unifiedFunctionPointers = 0;