Go to the source code of this file.
|
| double | loop (long n) |
| |
| void * | thread (void *arg) |
| |
| int | main (int argc, char **argv) |
| |
◆ loop()
Definition at line 26 of file kufrin.c.
31 for (
i = 0;
i < n;
i++ ) {
static double a[MATRIX_SIZE][MATRIX_SIZE]
◆ main()
| int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 105 of file kufrin.c.
151 if ( info.
count == 1 ) {
155 if (!
quiet) printf(
"Skipping derived event %s\n", info.
symbol );
164 test_skip(__FILE__,__LINE__,
"No events found",0);
169 if (!
quiet) printf(
"Creating %d threads:\n", nthreads );
173 if ( threads == NULL ) {
178 for (
i = 0;
i < nthreads;
i++ ) {
186 for (
i = 0;
i < nthreads;
i++ ) {
187 retval = pthread_join( threads[
i], NULL );
193 if (!
quiet) printf(
"Done." );
197 pthread_exit( NULL );
void test_pass(const char *filename)
unsigned long int pthread_t
int PAPI_enum_event(int *EventCode, int modifier)
int PAPI_get_event_info(int EventCode, PAPI_event_info_t *info)
#define PAPI_MAX_MPX_CTRS
void test_skip(const char *file, int line, const char *call, int retval)
int PAPI_thread_init(unsigned long int(*id_fn)(void))
int PAPI_library_init(int version)
int PAPI_get_cmp_opt(int option, PAPI_option_t *ptr, int cidx)
char symbol[PAPI_HUGE_STR_LEN]
int PAPI_multiplex_init(void)
int tests_quiet(int argc, char **argv)
void test_fail(const char *file, int line, const char *call, int retval)
◆ thread()
| void* thread |
( |
void * |
arg | ) |
|
Definition at line 38 of file kufrin.c.
46 test_fail( __FILE__, __LINE__,
"PAPI_register_thread",
ret );
49 test_fail( __FILE__, __LINE__,
"PAPI_create_eventset",
ret );
53 if (!
TESTS_QUIET) printf(
"Event set %d created\n", eventset );
60 test_fail( __FILE__, __LINE__,
"PAPI_assign_eventset_component",
ret );
65 test_skip( __FILE__, __LINE__,
"Multiplexing not supported", 1 );
68 test_fail( __FILE__, __LINE__,
"PAPI_set_multiplex",
ret );
90 test_fail( __FILE__, __LINE__,
"PAPI_cleanup_eventset",
ret );
95 test_fail( __FILE__, __LINE__,
"PAPI_destroy_eventset",
ret );
100 test_fail( __FILE__, __LINE__,
"PAPI_unregister_thread",
ret );
int PAPI_stop(int EventSet, long long *values)
int PAPI_register_thread(void)
int PAPI_add_events(int EventSet, int *Events, int number)
void test_skip(const char *file, int line, const char *call, int retval)
int PAPI_cleanup_eventset(int EventSet)
int PAPI_assign_eventset_component(int EventSet, int cidx)
int PAPI_create_eventset(int *EventSet)
int PAPI_unregister_thread(void)
void test_fail(const char *file, int line, const char *call, int retval)
int PAPI_set_multiplex(int EventSet)
int PAPI_destroy_eventset(int *EventSet)
int PAPI_start(int EventSet)
static long long values[NUM_EVENTS]
◆ events
◆ max_events
◆ numevents