#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <omp.h>
#include <likwid.h>
#define SLEEPTIME 2
int main(int argc, char* argv[])
{
int i, g;
int nevents = 10;
double events[10];
double time;
int count;
#pragma omp parallel
{
}
{
#pragma omp parallel
{
printf("Thread %d sleeps now for %d seconds\n", omp_get_thread_num(), SLEEPTIME);
sleep(SLEEPTIME);
printf("Thread %d wakes up again\n", omp_get_thread_num());
printf("Region example measures %d events, total measurement time is %f\n", nevents, time);
printf("The region was called %d times\n", count);
for (i = 0; i < nevents; i++)
{
printf("Event %d: %f\n", i, events[i]);
}
}
}
return 0;
}
*/
/*!