Path: blob/devel/elmergrid/src/metis-5.1.0/GKlib/omp.c
3206 views
/*1* Copyright 1997, Regents of the University of Minnesota2*3* omp.c4*5* This file contains "fake" implementations of OpenMP's runtime libraries6*7*/89#include <GKlib.h>1011#ifdef GK_NOOPENMP /* remove those for now */12#if !defined(_OPENMP)13void omp_set_num_threads(int num_threads) { return; }14int omp_get_num_threads(void) { return 1; }15int omp_get_max_threads(void) { return 1; }16int omp_get_thread_num(void) { return 0; }17int omp_get_num_procs(void) { return 1; }18int omp_in_parallel(void) { return 0; }19void omp_set_dynamic(int num_threads) { return; }20int omp_get_dynamic(void) { return 0; }21void omp_set_nested(int nested) { return; }22int omp_get_nested(void) { return 0; }23#endif24#endif2526272829