Skip to content

Instantly share code, notes, and snippets.

@pyrovski
pyrovski / papi_test.c
Created July 19, 2013 16:47
Testcase for PAPI deadlock in _papi_hwi_lookup_or_create_cpu()
// compile with -lpapi -fopenmp
#define _GNU_SOURCE
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <papi.h>
#include <assert.h>
#include <omp.h>