Ejemplo n.º 1
0
void likwid_markerStartRegion(const char* regionTag)
{
    if ( ! likwid_init )
    {
        return;
    }

    bstring tag = bfromcstralloc(100, regionTag);
    LikwidThreadResults* results;
    uint64_t res;
    int cpu_id = hashTable_get(tag, &results);
    bdestroy(tag);
    int socket_fd = thread_socketFD[cpu_id];

    if (accessClient_mode != DAEMON_AM_DIRECT)
    {
        if (socket_fd == -1)
        {
            printf("ERROR: Invalid socket file handle on processor %d. \
                    Did you call likwid_markerThreadInit() ?\n", cpu_id);
        }
    }
Ejemplo n.º 2
0
likwid_markerthreadinit_(void)
{
    likwid_markerThreadInit();
}