00001 /* Copyright (C) 2008 Stefan Buehler <sbuehler(at)ltu.se> 00002 00003 This program is free software; you can redistribute it and/or 00004 modify it under the terms of the GNU General Public License as 00005 published by the Free Software Foundation; either version 2 of the 00006 License, or (at your option) any later version. 00007 00008 This program is distributed in the hope that it will be useful, 00009 but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00011 GNU General Public License for more details. 00012 00013 You should have received a copy of the GNU General Public License 00014 along with this program; if not, write to the Free Software 00015 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 00016 USA. */ 00017 00034 #ifndef arts_omp_h 00035 #define arts_omp_h 00036 00037 #ifdef _OPENMP 00038 #include <omp.h> 00039 #endif 00040 00041 int arts_omp_get_max_threads(); 00042 00043 bool arts_omp_in_parallel(); 00044 00045 int arts_omp_get_thread_num(); 00046 00047 int arts_omp_get_nested(); 00048 00049 void arts_omp_set_nested(int i); 00050 00051 00052 #endif // arts_omp_h