Jim Cownie | 18d8473 | 2014-05-10 17:02:09 +0000 | [diff] [blame] | 1 | <ompts:test> |
| 2 | <ompts:testdescription>Test which checks the OpenMp support.</ompts:testdescription> |
| 3 | <ompts:ompversion>2.0</ompts:ompversion> |
| 4 | <ompts:directive>_OPENMP</ompts:directive> |
| 5 | <ompts:testcode> |
| 6 | #include <stdio.h> |
| 7 | |
| 8 | #include "omp_testsuite.h" |
| 9 | |
| 10 | int <ompts:testcode:functionname>has_openmp</ompts:testcode:functionname>(FILE * logFile){ |
| 11 | <ompts:orphan:vars> |
| 12 | int rvalue = 0; |
| 13 | </ompts:orphan:vars> |
| 14 | |
| 15 | <ompts:orphan> |
| 16 | <ompts:check> |
| 17 | #ifdef _OPENMP |
| 18 | rvalue = 1; |
| 19 | #endif |
| 20 | </ompts:check> |
| 21 | <ompts:crosscheck> |
| 22 | #if 0 |
| 23 | rvalue = 1; |
| 24 | #endif |
| 25 | </ompts:crosscheck> |
| 26 | </ompts:orphan> |
| 27 | return (rvalue); |
| 28 | } |
| 29 | </ompts:testcode> |
| 30 | </ompts:test> |