From 28e60ec942ca03530bde83816e2d3eb10d942baa Mon Sep 17 00:00:00 2001 From: Tony Tye Date: Tue, 5 Jan 2021 07:14:49 +0000 Subject: [PATCH] Use ROCclr Info.targetId_ Use Info.targetId_ instead of Info.name_ so it will work on Windows PAL driver and ROCm. Change-Id: I20537899c36c0ee330a4c09136a52e53d9f35e0d --- rocclr/hip_device.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocclr/hip_device.cpp b/rocclr/hip_device.cpp index a223f2d6df..f9292f6b37 100644 --- a/rocclr/hip_device.cpp +++ b/rocclr/hip_device.cpp @@ -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_;