PLASMA
2.4.5
PLASMA - Parallel Linear Algebra for Scalable Multi-core Architectures
|
#include <stdio.h>
#include <assert.h>
#include <GTG.h>
#include <ev_codes.h>
#include <eztrace_list.h>
#include <eztrace_convert.h>
#include "coreblas_ev_codes.h"
#include "coreblas_string.c"
Go to the source code of this file.
Data Structures | |
struct | coreblas_stats_s |
struct | coreblas_thrdstate_s |
Macros | |
#define | _GNU_SOURCE |
#define | min(a, b) ( (a) < (b) ? (a) : (b) ) |
#define | max(a, b) ( (a) > (b) ? (a) : (b) ) |
#define | COREBLAS_STATE "ST_Thread" |
#define | COREBLAS_TASK_NAME "Submitted Tasks counter" |
#define | COREBLAS_TASK_ALIAS "STasks" |
#define | COREBLAS_TASKR_NAME "Global Ready Tasks counter" |
#define | COREBLAS_TASKR_ALIAS "GRTasks" |
#define | COREBLAS_TASKWR_NAME "Local Ready Tasks counter" |
#define | COREBLAS_TASKWR_ALIAS "LRTasks" |
#define | COREBLAS_THREADS_MAX 4096 |
#define | HANDLE(func) |
Typedefs | |
typedef struct coreblas_stats_s | coreblas_stats_t |
typedef struct coreblas_thrdstate_s | coreblas_thrdstate_t |
Functions | |
void | handle_coreblas_task (struct fxt_ev_64 *ev) |
void | handle_coreblas_taskw (struct fxt_ev_64 *ev) |
void | handle_coreblas_stop () |
int | eztrace_convert_coreblas_init () |
int | handle_coreblas_events (struct fxt_ev_64 *ev) |
void | eztrace_convert_coreblas_finalize () |
int | handle_coreblas_stats (struct fxt_ev_64 *ev) |
void | print_coreblas_stats () |
void | libinit (void) |
void | libfinalize (void) |
Variables | |
struct eztrace_convert_module | coreblas_module |
PLASMA core_blas tracing kernels PLASMA is a software package provided by Univ. of Tennessee, Univ. of California Berkeley and Univ. of Colorado Denver
This file provides the functions to generate the trace in function of the events.
Easy way to add new kernel: 1 - Add them to the file coreblas_ev_codes.h 2 - First replacement for HANDLE: #define FUT_COREBLAS_([0-9A-Z]*)[ ]*(COREBLAS_PREFIX | 0x[0-9a-f]*) -> HANDLE(\,(downcase \1)) 3 - second replacement: #define FUT_COREBLAS_([0-9A-Z]*)[ ]*(COREBLAS_PREFIX | 0x[0-9a-f]*) -> addEntityValue("\,(downcase \1)", COREBLAS_STATE, "\,(downcase \1)", GTG_PINK ); 4 - third and last replacement:
Definition in file eztrace_convert_coreblas.c.
#define _GNU_SOURCE |
Definition at line 27 of file eztrace_convert_coreblas.c.
#define COREBLAS_STATE "ST_Thread" |
Definition at line 43 of file eztrace_convert_coreblas.c.
#define COREBLAS_TASK_ALIAS "STasks" |
Definition at line 45 of file eztrace_convert_coreblas.c.
#define COREBLAS_TASK_NAME "Submitted Tasks counter" |
Definition at line 44 of file eztrace_convert_coreblas.c.
#define COREBLAS_TASKR_ALIAS "GRTasks" |
Definition at line 48 of file eztrace_convert_coreblas.c.
#define COREBLAS_TASKR_NAME "Global Ready Tasks counter" |
Definition at line 47 of file eztrace_convert_coreblas.c.
#define COREBLAS_TASKWR_ALIAS "LRTasks" |
Definition at line 51 of file eztrace_convert_coreblas.c.
#define COREBLAS_TASKWR_NAME "Local Ready Tasks counter" |
Definition at line 50 of file eztrace_convert_coreblas.c.
#define COREBLAS_THREADS_MAX 4096 |
Definition at line 53 of file eztrace_convert_coreblas.c.
#define HANDLE | ( | func | ) |
Definition at line 174 of file eztrace_convert_coreblas.c.
#define max | ( | a, | |
b | |||
) | ( (a) > (b) ? (a) : (b) ) |
Definition at line 40 of file eztrace_convert_coreblas.c.
#define min | ( | a, | |
b | |||
) | ( (a) < (b) ? (a) : (b) ) |
Definition at line 37 of file eztrace_convert_coreblas.c.
typedef struct coreblas_stats_s coreblas_stats_t |
typedef struct coreblas_thrdstate_s coreblas_thrdstate_t |
void eztrace_convert_coreblas_finalize | ( | ) |
Definition at line 576 of file eztrace_convert_coreblas.c.
int eztrace_convert_coreblas_init | ( | ) |
Definition at line 328 of file eztrace_convert_coreblas.c.
References COREBLAS_STATE, COREBLAS_TASK_ALIAS, COREBLAS_TASK_NAME, COREBLAS_TASKR_ALIAS, COREBLAS_TASKR_NAME, COREBLAS_TASKWR_ALIAS, and COREBLAS_TASKWR_NAME.
int handle_coreblas_events | ( | struct fxt_ev_64 * | ev | ) |
Definition at line 451 of file eztrace_convert_coreblas.c.
References FUT_COREBLAS_AMAX, FUT_COREBLAS_ASUM, FUT_COREBLAS_AXPY, FUT_COREBLAS_BRDALG, FUT_COREBLAS_COPY, FUT_COREBLAS_DOT, FUT_COREBLAS_DOTC, FUT_COREBLAS_DOTU, FUT_COREBLAS_GBMV, FUT_COREBLAS_GEADD, FUT_COREBLAS_GELQT, FUT_COREBLAS_GEMM, FUT_COREBLAS_GEMV, FUT_COREBLAS_GEQRT, FUT_COREBLAS_GER, FUT_COREBLAS_GERC, FUT_COREBLAS_GERU, FUT_COREBLAS_GESSM, FUT_COREBLAS_GETRF, FUT_COREBLAS_GETRIP, FUT_COREBLAS_GETRO, FUT_COREBLAS_HBMV, FUT_COREBLAS_HEGST, FUT_COREBLAS_HEMM, FUT_COREBLAS_HEMV, FUT_COREBLAS_HER, FUT_COREBLAS_HER2, FUT_COREBLAS_HER2K, FUT_COREBLAS_HERFB, FUT_COREBLAS_HERK, FUT_COREBLAS_HPMV, FUT_COREBLAS_HPR, FUT_COREBLAS_HPR2, FUT_COREBLAS_LACPY, FUT_COREBLAS_LANGE, FUT_COREBLAS_LANHE, FUT_COREBLAS_LANSY, FUT_COREBLAS_LARFB, FUT_COREBLAS_LARFT, FUT_COREBLAS_LASET, FUT_COREBLAS_LASWP, FUT_COREBLAS_LAUUM, FUT_COREBLAS_NRM2, FUT_COREBLAS_PLGHE, FUT_COREBLAS_PLGSY, FUT_COREBLAS_PLRNT, FUT_COREBLAS_POTRF, FUT_COREBLAS_ROT, FUT_COREBLAS_ROTG, FUT_COREBLAS_ROTM, FUT_COREBLAS_ROTMG, FUT_COREBLAS_SBMV, FUT_COREBLAS_SCAL, FUT_COREBLAS_SHIFT, FUT_COREBLAS_SHIFTW, FUT_COREBLAS_SPMV, FUT_COREBLAS_SPR, FUT_COREBLAS_SPR2, FUT_COREBLAS_SSSSM, FUT_COREBLAS_STOP, FUT_COREBLAS_SWAP, FUT_COREBLAS_SWPAB, FUT_COREBLAS_SYGST, FUT_COREBLAS_SYMM, FUT_COREBLAS_SYMV, FUT_COREBLAS_SYR, FUT_COREBLAS_SYR2, FUT_COREBLAS_SYR2K, FUT_COREBLAS_SYRFB, FUT_COREBLAS_SYRK, FUT_COREBLAS_TASK, FUT_COREBLAS_TASKW, FUT_COREBLAS_TBMV, FUT_COREBLAS_TBSV, FUT_COREBLAS_TITRO, FUT_COREBLAS_TPMV, FUT_COREBLAS_TPSV, FUT_COREBLAS_TRBMM, FUT_COREBLAS_TRDALG, FUT_COREBLAS_TRGMM, FUT_COREBLAS_TRMM, FUT_COREBLAS_TRMV, FUT_COREBLAS_TRSM, FUT_COREBLAS_TRSV, FUT_COREBLAS_TRTRI, FUT_COREBLAS_TSLQT, FUT_COREBLAS_TSMLQ, FUT_COREBLAS_TSMQR, FUT_COREBLAS_TSQRT, FUT_COREBLAS_TSRFB, FUT_COREBLAS_TSTRF, FUT_COREBLAS_TTLQT, FUT_COREBLAS_TTMLQ, FUT_COREBLAS_TTMQR, FUT_COREBLAS_TTQRT, FUT_COREBLAS_TTRFB, FUT_COREBLAS_UNMLQ, FUT_COREBLAS_UNMQR, FUT_COREBLAS_xDOT, handle_coreblas_stop(), handle_coreblas_task(), and handle_coreblas_taskw().
int handle_coreblas_stats | ( | struct fxt_ev_64 * | ev | ) |
Definition at line 583 of file eztrace_convert_coreblas.c.
References coreblas_thrdstate_s::active, COREBLAS_MASK_EVENTS, COREBLAS_NBMAX_EVENTS, COREBLAS_PREFIX, COREBLAS_THREADS_MAX, FUT_COREBLAS_STOP, FUT_COREBLAS_TASK, FUT_COREBLAS_TASKW, coreblas_thrdstate_s::lasttime, max, coreblas_stats_s::max, min, coreblas_stats_s::min, coreblas_stats_s::nb, coreblas_stats_s::sum, and coreblas_thrdstate_s::tid.
void handle_coreblas_stop | ( | ) |
Definition at line 319 of file eztrace_convert_coreblas.c.
References COREBLAS_STATE.
void handle_coreblas_task | ( | struct fxt_ev_64 * | ev | ) |
Definition at line 188 of file eztrace_convert_coreblas.c.
References COREBLAS_TASK_ALIAS.
void handle_coreblas_taskw | ( | struct fxt_ev_64 * | ev | ) |
Definition at line 198 of file eztrace_convert_coreblas.c.
References COREBLAS_TASKR_ALIAS, and COREBLAS_TASKWR_ALIAS.
void libfinalize | ( | void | ) |
Definition at line 730 of file eztrace_convert_coreblas.c.
void libinit | ( | void | ) |
Definition at line 688 of file eztrace_convert_coreblas.c.
References COREBLAS_EVENTS_ID, coreblas_module, eztrace_convert_coreblas_init(), handle_coreblas_events(), handle_coreblas_stats(), and print_coreblas_stats().
void print_coreblas_stats | ( | ) |
Definition at line 666 of file eztrace_convert_coreblas.c.
References COREBLAS_NBMAX_EVENTS, coreblas_stats_strings_init(), max, min, and sum().
struct eztrace_convert_module coreblas_module |
Definition at line 686 of file eztrace_convert_coreblas.c.