2
0

Use ROCclr Info.targetId_

Use Info.targetId_ instead of Info.name_ so it will work on Windows
PAL driver and ROCm.

Change-Id: I20537899c36c0ee330a4c09136a52e53d9f35e0d
Este cometimento está contido em:
Tony Tye
2021-01-05 07:14:49 +00:00
ascendente e3ec98f6e2
cometimento 28e60ec942
+1 -1
Ver ficheiro
@@ -200,7 +200,7 @@ hipError_t hipGetDeviceProperties ( hipDeviceProp_t* props, hipDevice_t device )
deviceProps.canMapHostMemory = 1;
//FIXME: This should be removed, targets can have character names as well.
deviceProps.gcnArch = info.gfxipMajor_ * 100 + info.gfxipMinor_ * 10 + info.gfxipStepping_;
sprintf(deviceProps.gcnArchName, "%s", info.name_);
sprintf(deviceProps.gcnArchName, "%s", info.targetId_);
deviceProps.cooperativeLaunch = info.cooperativeGroups_;
deviceProps.cooperativeMultiDeviceLaunch = info.cooperativeMultiDeviceGroups_;