P4 to Git Change 1500415 by gandryey@gera-w8 on 2018/01/05 11:17:48
SWDEV-136522 - Tools need a way to query the PCIE device id via the OpenCL API. - Add CL_DEVICE_PCIE_ID query Affected files ... ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_device.cpp#69 edit ... //depot/stg/opencl/drivers/opencl/api/opencl/khronos/headers/opencl1.2/CL/cl_ext.h#20 edit ... //depot/stg/opencl/drivers/opencl/api/opencl/khronos/headers/opencl2.0/CL/cl_ext.h#36 edit ... //depot/stg/opencl/drivers/opencl/api/opencl/khronos/headers/opencl2.1/CL/cl_ext.h#13 edit ... //depot/stg/opencl/drivers/opencl/api/opencl/khronos/headers/opencl2.2/CL/cl_ext.h#7 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#580 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp#181 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/backend.h#15 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#69 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/rocm/rocdevice.cpp#79 edit
Tento commit je obsažen v:
@@ -119,6 +119,8 @@ CALGSLDevice::getAttribs_int(gsl::gsCtx* cs)
|
||||
m_attribs.isWDDM2Enabled = m_adp->pAsicInfo->vaAvailable && m_adp->pAsicInfo->bNoVATranslation;
|
||||
m_attribs.maxRTCUs = cs->getMaxRTCUs();
|
||||
m_attribs.asicRevision = cs->getChipRev();
|
||||
m_attribs.pcieDeviceID = cs->getAsicDID();
|
||||
m_attribs.pcieRevisionID = cs->getPciRevID();
|
||||
}
|
||||
|
||||
bool
|
||||
|
||||
@@ -88,6 +88,8 @@ typedef struct CALdeviceattribsRec {
|
||||
CALuint maxRTCUs; /**< The maximum number of RT CUs for RT queues */
|
||||
CALuint asicRevision; /**< The ASIC revision ID */
|
||||
CALchar driverStore[CAL_DRIVER_STORE_MAX_LEN];/**< Driver store location. */
|
||||
CALuint pcieDeviceID; /**< The ASIC PCIE device ID */
|
||||
CALuint pcieRevisionID; /**< The ASIC PCIE revision ID */
|
||||
} CALdeviceattribs;
|
||||
|
||||
|
||||
|
||||
Odkázat v novém úkolu
Zablokovat Uživatele