PAPI 7.1.0.0
Loading...
Searching...
No Matches
common.h File Reference
Include dependency graph for common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static void hip_test_fail (const char *file __attribute__((unused)), int line, const char *call, hipError_t retval)
 
static int match_expected_counter (long long expected, long long value)
 

Detailed Description

Author
Giuseppe Congiu gcong.nosp@m.iu@i.nosp@m.cl.ut.nosp@m.k.ed.nosp@m.u

Definition in file common.h.

Function Documentation

◆ hip_test_fail()

static void hip_test_fail ( const char *file   __attribute__(unused),
int  line,
const char *  call,
hipError_t  retval 
)
inlinestatic

Definition at line 16 of file common.h.

18{
19 const char *string;
20
21 fprintf(stdout, "FAILER!!!");
22 fprintf(stdout, "\nLine # %d ", line);
23
24 string = hipGetErrorString(retval);
25 fprintf(stdout, "Error in %s: %s\n", call, string);
26
27 if (PAPI_is_initialized()) {
29 }
30
31 exit(1);
32}
check for initialization
Finish using PAPI and free all related resources.
FILE * stdout
int retval
Definition: zero_fork.c:53

◆ match_expected_counter()

static int match_expected_counter ( long long  expected,
long long  value 
)
inlinestatic

Definition at line 35 of file common.h.

36{
37 return (expected == value);
38}
static int expected[NUM_THREADS]