taskbench.h (3009B)
1 /**************************************************************************** 2 * * 3 * OpenMP MicroBenchmark Suite - Version 3.1 * 4 * * 5 * produced by * 6 * * 7 * Mark Bull, Fiona Reid and Nix Mc Donnell * 8 * * 9 * at * 10 * * 11 * Edinburgh Parallel Computing Centre * 12 * * 13 * email: markb@epcc.ed.ac.uk or fiona@epcc.ed.ac.uk * 14 * * 15 * * 16 * This version copyright (c) The University of Edinburgh, 2015. * 17 * * 18 * * 19 * Licensed under the Apache License, Version 2.0 (the "License"); * 20 * you may not use this file except in compliance with the License. * 21 * You may obtain a copy of the License at * 22 * * 23 * http://www.apache.org/licenses/LICENSE-2.0 * 24 * * 25 * Unless required by applicable law or agreed to in writing, software * 26 * distributed under the License is distributed on an "AS IS" BASIS, * 27 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * 28 * See the License for the specific language governing permissions and * 29 * limitations under the License. * 30 * * 31 ****************************************************************************/ 32 33 #ifndef TASKBENCH_H 34 #define TASKBENCH_H 35 36 void refer(void); 37 38 void refer2(void); 39 40 void stats(double*, double*); 41 42 void testParallelTaskGeneration(void); 43 44 void testMasterTaskGeneration(void); 45 46 void testMasterTaskGenerationWithBusySlaves(void); 47 48 void testNestedTaskGeneration(void); 49 50 void testNestedMasterTaskGeneration(void); 51 52 void testTaskWait(void); 53 54 void testTaskBarrier(void); 55 56 void testConditionalTaskGeneration(void); 57 58 void testBranchTaskGeneration(void); 59 60 void branchTaskTree(int tree_level); 61 62 void testLeafTaskGeneration(void); 63 64 void leafTaskTree(int tree_level); 65 66 #endif //TASKBENCH_H