00001 /* 00002 * Copyright 1997, Regents of the University of Minnesota 00003 * 00004 * omp.c 00005 * 00006 * This file contains "fake" implementations of OpenMP's runtime libraries 00007 * 00008 */ 00009 00010 #include <GKlib.h> 00011 00012 #ifdef GK_NOOPENMP /* remove those for now */ 00013 #if !defined(_OPENMP) 00014 void omp_set_num_threads(int num_threads) { return; } 00015 int omp_get_num_threads(void) { return 1; } 00016 int omp_get_max_threads(void) { return 1; } 00017 int omp_get_thread_num(void) { return 0; } 00018 int omp_get_num_procs(void) { return 1; } 00019 int omp_in_parallel(void) { return 0; } 00020 void omp_set_dynamic(int num_threads) { return; } 00021 int omp_get_dynamic(void) { return 0; } 00022 void omp_set_nested(int nested) { return; } 00023 int omp_get_nested(void) { return 0; } 00024 #endif 00025 #endif 00026 00027