Esempio n. 1
0
def dcgmGetPidInfo(dcgm_handle, groupId, pid):
    fn = dcgmFP("dcgmGetPidInfo")
    pidInfo = dcgm_structs.c_dcgmPidInfo_v2()

    pidInfo.version = dcgm_structs.dcgmPidInfo_version2
    pidInfo.pid = pid

    ret = fn(dcgm_handle, groupId, byref(pidInfo))
    dcgm_structs._dcgmCheckReturn(ret)
    return pidInfo
Esempio n. 2
0
def vtDcgmGetPidInfo(dcgm_handle, groupId, pid, versionTest):
    fn = dcgmFP("dcgmGetPidInfo")
    pidInfo = dcgm_structs.c_dcgmPidInfo_v2()
    pidInfo.version = dcgm_structs.make_dcgm_version(
        dcgm_structs.c_dcgmPidInfo_v2, 2)
    logger.debug("Structure version: %d" % pidInfo.version)

    pidInfo.version = versionTest
    pidInfo.pid = pid

    ret = fn(dcgm_handle, groupId, byref(pidInfo))
    dcgm_structs._dcgmCheckReturn(ret)
    return pidInfo