src/occ_405/gpu/gpu.c
// For the given GPU clear status/data that requires GPU driver to be loaded
For the given GPU clear status/data that requires GPU driver to be loaded
For the given GPU clear status / data that requires GPU driver to be loaded
void clear_gpu_driver_status(uint8_t i_gpu_num)
{
    g_amec->gpu[i_gpu_num].status.checkDriverLoaded = false;
    g_amec->gpu[i_gpu_num].status.driverLoaded = false;
    g_amec->gpu[i_gpu_num].status.checkMemTempSupport = false;
    g_amec->gpu[i_gpu_num].status.memTempSupported = false;
    g_amec->gpu[i_gpu_num].status.memErrorCount = 0;
    g_amec->gpu[i_gpu_num].pcap.check_pwr_limit = false;
    g_amec->gpu[i_gpu_num].pcap.pwr_limits_read = false;
    g_amec->gpu[i_gpu_num].pcap.set_failed = false;
    g_amec->gpu[i_gpu_num].pcap.gpu_min_pcap_mw = 0;
    g_amec->gpu[i_gpu_num].pcap.gpu_max_pcap_mw = 0;
    g_amec->gpu[i_gpu_num].pcap.gpu_requested_pcap_mw = 0;
    g_amec->gpu[i_gpu_num].pcap.gpu_default_pcap_mw = 0;
    g_amec->gpu[i_gpu_num].pcap.gpu_desired_pcap_mw = 0;
}
void clear_gpu_driver_status ( uint8_t i_gpu_num ) { g_amec -> gpu [ i_gpu_num ] . status . checkDriverLoaded = false ; g_amec -> gpu [ i_gpu_num ] . status . driverLoaded = false ; g_amec -> gpu [ i_gpu_num ] . status . checkMemTempSupport = false ; g_amec -> gpu [ i_gpu_num ] . status . memTempSupported = false ; g_amec -> gpu [ i_gpu_num ] . status . memErrorCount = 0 ; g_amec -> gpu [ i_gpu_num ] . pcap . check_pwr_limit = false ; g_amec -> gpu [ i_gpu_num ] . pcap . pwr_limits_read = false ; g_amec -> gpu [ i_gpu_num ] . pcap . set_failed = false ; g_amec -> gpu [ i_gpu_num ] . pcap . gpu_min_pcap_mw = 0 ; g_amec -> gpu [ i_gpu_num ] . pcap . gpu_max_pcap_mw = 0 ; g_amec -> gpu [ i_gpu_num ] . pcap . gpu_requested_pcap_mw = 0 ; g_amec -> gpu [ i_gpu_num ] . pcap . gpu_default_pcap_mw = 0 ; g_amec -> gpu [ i_gpu_num ] . pcap . gpu_desired_pcap_mw = 0 ; }
For the given GPU clear status/data that requires GPU driver to be loaded
For the given GPU clear status / data that requires GPU driver to be loaded
// Reading memory temperature requires driver to be loaded. // Power capping requires driver to be loaded.  Clear GPU power limits //amec will need to recalculate after power limits are read to handle any clipping with new GPU min/max