def dcgmRunDiagnostic(dcgm_handle, group_id, diagLevel): response = dcgm_structs.c_dcgmDiagResponse_v7() response.version = dcgm_structs.dcgmDiagResponse_version7 fn = dcgmFP("dcgmRunDiagnostic") ret = fn(dcgm_handle, group_id, diagLevel, byref(response)) return helperDiagCheckReturn(ret, response)
def vtDcgmRunDiagnostic(dcgm_handle, group_id, diagLevel, versionTest): response = dcgm_structs.c_dcgmDiagResponse_v7() response.version = versionTest fn = dcgmFP("dcgmRunDiagnostic") ret = fn(dcgm_handle, group_id, diagLevel, byref(response)) dcgm_structs._dcgmCheckReturn(ret) return response
def dcgmActionValidate_v2(dcgm_handle, runDiagInfo, runDiagVersion=dcgm_structs.dcgmRunDiag_version7): response = dcgm_structs.c_dcgmDiagResponse_v7() runDiagInfo.version = runDiagVersion response.version = dcgm_structs.dcgmDiagResponse_version7 fn = dcgmFP("dcgmActionValidate_v2") ret = fn(dcgm_handle, byref(runDiagInfo), byref(response)) return helperDiagCheckReturn(ret, response)
def dcgmActionValidate(dcgm_handle, group_id, validate): response = dcgm_structs.c_dcgmDiagResponse_v7() response.version = dcgm_structs.dcgmDiagResponse_version7 # Put the group_id and validate into a dcgmRunDiag struct runDiagInfo = dcgm_structs.c_dcgmRunDiag_v7() runDiagInfo.version = dcgm_structs.dcgmRunDiag_version7 runDiagInfo.validate = validate runDiagInfo.groupId = group_id fn = dcgmFP("dcgmActionValidate_v2") ret = fn(dcgm_handle, byref(runDiagInfo), byref(response)) return helperDiagCheckReturn(ret, response)
def vtDcgmActionValidate(dcgm_handle, group_id, validate, versionTest): response = dcgm_structs.c_dcgmDiagResponse_v7() response.version = versionTest # Put the group_id and validate into a dcgmRunDiag struct runDiagInfo = dcgm_structs.c_dcgmRunDiag_v7() runDiagInfo.version = versionTest runDiagInfo.validate = validate runDiagInfo.groupId = group_id fn = dcgmFP("dcgmActionValidate_v2") ret = fn(dcgm_handle, byref(runDiagInfo), byref(response)) dcgm_structs._dcgmCheckReturn(ret) return response
def vtDcgmActionValidate_v2(dcgm_handle, runDiagInfo, versionTest): response = dcgm_structs.c_dcgmDiagResponse_v7() response.version = dcgm_structs.make_dcgm_version(response, 7) logger.debug("Structure version: %d" % response.version) runDiagInfo = dcgm_structs.c_dcgmRunDiag_v7() runDiagInfo.version = dcgm_structs.dcgmRunDiag_version7 logger.debug("Structure version: %d" % runDiagInfo.version) runDiagInfo.version = versionTest response.version = versionTest fn = dcgmFP("dcgmActionValidate_v2") ret = fn(dcgm_handle, byref(runDiagInfo), byref(response)) dcgm_structs._dcgmCheckReturn(ret) return response