Statistics
| Revision:

root / trunk / tests / openmp / test_omp.cpp @ 1569

History | View | Annotate | Download (263 Bytes)

1
#include <gtest/gtest.h>
2

    
3
#ifdef _OPENMP
4
#include <omp.h>
5
#endif
6

    
7
class test_omp: public ::testing::Test {};
8

    
9
TEST_F(test_omp, hello_world)
10
{
11
  #pragma omp parallel
12
  printf("hello_world: thread %d, nthreads %d\n", omp_get_thread_num(), omp_get_num_threads());
13
}