PAPI 7.1.0.0
Loading...
Searching...
No Matches
vec_fma_hp.c File Reference
Include dependency graph for vec_fma_hp.c:

Go to the source code of this file.

Functions

static float test_hp_mac_VEC_FMA_12 (uint64 iterations, int EventSet, FILE *fp)
 
static float test_hp_mac_VEC_FMA_24 (uint64 iterations, int EventSet, FILE *fp)
 
static float test_hp_mac_VEC_FMA_48 (uint64 iterations, int EventSet, FILE *fp)
 
static void test_hp_VEC_FMA (int instr_per_loop, uint64 iterations, int EventSet, FILE *fp)
 

Function Documentation

◆ test_hp_mac_VEC_FMA_12()

static float test_hp_mac_VEC_FMA_12 ( uint64  iterations,
int  EventSet,
FILE *  fp 
)
static

Definition at line 354 of file vec_fma_hp.c.

354 {
355
356 (void)iterations;
357 (void)EventSet;
359
360 return 0.0;
361}
static int EventSet
Definition: init_fini.c:8
static FILE * fp
void papi_stop_and_print_placeholder(long long theory, FILE *fp)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_hp_mac_VEC_FMA_24()

static float test_hp_mac_VEC_FMA_24 ( uint64  iterations,
int  EventSet,
FILE *  fp 
)
static

Definition at line 364 of file vec_fma_hp.c.

364 {
365
366 (void)iterations;
367 (void)EventSet;
369
370 return 0.0;
371}
Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_hp_mac_VEC_FMA_48()

static float test_hp_mac_VEC_FMA_48 ( uint64  iterations,
int  EventSet,
FILE *  fp 
)
static

Definition at line 374 of file vec_fma_hp.c.

374 {
375
376 (void)iterations;
377 (void)EventSet;
379
380 return 0.0;
381}
Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_hp_VEC_FMA()

static void test_hp_VEC_FMA ( int  instr_per_loop,
uint64  iterations,
int  EventSet,
FILE *  fp 
)
static

Definition at line 384 of file vec_fma_hp.c.

385{
386 float sum = 0.0;
387 float scalar_sum = 0.0;
388
389 if ( instr_per_loop == 12 ) {
390 sum += test_hp_mac_VEC_FMA_12( iterations, EventSet, fp );
391 scalar_sum += test_hp_scalar_VEC_FMA_12( iterations );
392 }
393 else if ( instr_per_loop == 24 ) {
394 sum += test_hp_mac_VEC_FMA_24( iterations, EventSet, fp );
395 scalar_sum += test_hp_scalar_VEC_FMA_24( iterations );
396 }
397 else if ( instr_per_loop == 48 ) {
398 sum += test_hp_mac_VEC_FMA_48( iterations, EventSet, fp );
399 scalar_sum += test_hp_scalar_VEC_FMA_48( iterations );
400 }
401
402 if( sum/4.0 != scalar_sum ) {
403 fprintf(stderr, "FMA: Inconsistent FLOP results detected!\n");
404 }
405}
FILE * stderr
static float test_hp_mac_VEC_FMA_48(uint64 iterations, int EventSet, FILE *fp)
Definition: vec_fma_hp.c:374
static float test_hp_mac_VEC_FMA_24(uint64 iterations, int EventSet, FILE *fp)
Definition: vec_fma_hp.c:364
static float test_hp_mac_VEC_FMA_12(uint64 iterations, int EventSet, FILE *fp)
Definition: vec_fma_hp.c:354
float test_hp_scalar_VEC_FMA_48(uint64 iterations)
float test_hp_scalar_VEC_FMA_24(uint64 iterations)
float test_hp_scalar_VEC_FMA_12(uint64 iterations)
Here is the call graph for this function: