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 authored and German Andryeyev committed 2023-10-18 15:07:39 -04:00
1 parent 0ca61130a2
commit 694fe4bedb
4 files changed
+41 -23

No files matched your search

+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;