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

Change-Id: I20537899c36c0ee330a4c09136a52e53d9f35e0d


[ROCm/clr commit: 7d35a43165]
Этот коммит содержится в:
Tony Tye committed 2021-01-14 05:17:20 +00:00
1 родитель 4f2dab9c86
Коммит 7d42f2535d
1 file changed
+1 -1
+1 -1
Просмотреть файл
@@ -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_;