Dynamic Load Balance 3.6.1+32-59d1
Macros | Functions
rocprofilerv2.c File Reference
#include "support/dlb_common.h"
#include "talp/backend.h"
#include "talp/backends/backend_utils.h"
#include "talp/backends/gpu_record_utils.h"
#include <inttypes.h>
#include <rocprofiler/v2/rocprofiler.h>
#include <stdatomic.h>
#include <stdio.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
Include dependency graph for rocprofilerv2.c:

Macros

#define CHECK_ROCPROFILER(call)
 
#define CHECK_WARN_ROCPROFILER(call)
 

Functions

DLB_EXPORT_SYMBOL backend_api_tDLB_Get_Backend_API (void)
 

Macro Definition Documentation

◆ CHECK_ROCPROFILER

#define CHECK_ROCPROFILER (   call)
Value:
do { \
rocprofiler_status_t _status = (call); \
if (_status != ROCPROFILER_STATUS_SUCCESS) { \
const char *_error_string = rocprofiler_error_str(_status); \
fprintf(stderr, \
"%s:%d: Error: Function %s failed with error (%d): %s.\n", \
__FILE__, __LINE__, #call, _status, _error_string); \
\
} \
} while (0)
@ DLB_BACKEND_ERROR
Definition: backend.h:36

◆ CHECK_WARN_ROCPROFILER

#define CHECK_WARN_ROCPROFILER (   call)
Value:
do { \
rocprofiler_status_t _status = (call); \
if (_status != ROCPROFILER_STATUS_SUCCESS) { \
const char *_error_string = rocprofiler_error_str(_status); \
fprintf(stderr, \
"%s:%d: Warning: Function %s failed with error (%d): %s.\n",\
__FILE__, __LINE__, #call, _status, _error_string); \
} \
} while (0)

Function Documentation

◆ DLB_Get_Backend_API()

DLB_EXPORT_SYMBOL backend_api_t * DLB_Get_Backend_API ( void  )