Src/GPUPerfAPIHSA/GPUPerfAPIHSA.cpp
/// Post-dispatch callback function
/// \param pRTParam the post-dispatch callback params
/// \param pUserArgs the user arguments
Post-dispatch callback function
\param pRTParam the post-dispatch callback params
\param pUserArgs the user arguments
Post - dispatch callback function \ param pRTParam the post - dispatch callback params \ param pUserArgs the user arguments
void HSA_PostDispatchCallback(const hsa_dispatch_callback_t* pRTParam, void* pUserArgs)
{
    UNREFERENCED_PARAMETER(pRTParam);
    UNREFERENCED_PARAMETER(pUserArgs);
    assert(nullptr != pRTParam && false == pRTParam->pre_dispatch);
    if (g_pCurrentContext->m_currentPass > 0)
    {
        bool endedOk = g_pCurrentContext->m_pCurrentSessionRequests->End(g_pCurrentContext->m_currentPass - 1, g_pCurrentContext->m_currentSample);
        if (!endedOk)
        {
            GPA_LogError("Failed to end request.");
            return;
        }
    }
}
void HSA_PostDispatchCallback ( const hsa_dispatch_callback_t * pRTParam , void * pUserArgs ) { UNREFERENCED_PARAMETER ( pRTParam ) ; UNREFERENCED_PARAMETER ( pUserArgs ) ; assert ( nullptr != pRTParam && false == pRTParam -> pre_dispatch ) ; if ( g_pCurrentContext -> m_currentPass > 0 ) { bool endedOk = g_pCurrentContext -> m_pCurrentSessionRequests -> End ( g_pCurrentContext -> m_currentPass - 1 , g_pCurrentContext -> m_currentSample ) ; if ( ! endedOk ) { GPA_LogError ( " " ) ; return ; } } }
Post-dispatch callback function
\param pRTParam the post-dispatch callback params
\param pUserArgs the user arguments
Post - dispatch callback function \ param pRTParam the post - dispatch callback params \ param pUserArgs the user arguments