src/components/rocm_smi/linux-rocm-smi.c
// rsmi_dev_ecc_count_get is an enum with 14 settings; each will be a separate event.
// NOTE UNTESTED EVENT: This is given in the manual, but our test driver/equipment did not support it.
rsmi_dev_ecc_count_get is an enum with 14 settings; each will be a separate event.
NOTE UNTESTED EVENT: This is given in the manual, but our test driver/equipment did not support it.
rsmi_dev_ecc_count_get is an enum with 14 settings ; each will be a separate event . NOTE UNTESTED EVENT : This is given in the manual but our test driver / equipment did not support it .
static int er_ecc_count_correctable(int myIdx)              
{
    rsmi_error_count_t* data = (rsmi_error_count_t*) AllEvents[myIdx].vptr; 
    AllEvents[myIdx].value = 0;                             
    if (AllEvents[myIdx].read == 0) {
        RSMI(rsmi_dev_ecc_count_get,                        
            (AllEvents[myIdx].device,                       
             AllEvents[myIdx].variant, data),               
            return(PAPI_EMISC));                            
        AllEvents[myIdx].read = 1;                          
    }
    AllEvents[myIdx].value = data->correctable_err;         
    return(PAPI_OK);                                        
}
static int er_ecc_count_correctable ( int myIdx ) { rsmi_error_count_t * data = ( rsmi_error_count_t * ) AllEvents [ myIdx ] . vptr ; AllEvents [ myIdx ] . value = 0 ; if ( AllEvents [ myIdx ] . read == 0 ) { RSMI ( rsmi_dev_ecc_count_get , ( AllEvents [ myIdx ] . device , AllEvents [ myIdx ] . variant , data ) , return ( PAPI_EMISC ) ) ; AllEvents [ myIdx ] . read = 1 ; } AllEvents [ myIdx ] . value = data -> correctable_err ; return ( PAPI_OK ) ; }
rsmi_dev_ecc_count_get is an enum with 14 settings; each will be a separate event.
rsmi_dev_ecc_count_get is an enum with 14 settings ; each will be a separate event .
// THIS IS A BASE EVENT. // get a shortcut.  // Default if error. // ..Routine name. // ..Device, // ..gpu block ID, and pointer for storage of read. // ..Error handler. // ..mark as read. // Copy/convert the returned value. // Done.