File: mimic_omp.c

package info (click to toggle)
openmx 3.5-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 134,876 kB
  • sloc: ansic: 152,771; python: 876; makefile: 576; xml: 63; perl: 18; sh: 4
file content (29 lines) | stat: -rw-r--r-- 291 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#ifdef noomp
#include "mimic_omp.h"

int omp_get_thread_num   (void)
{
  return 0;
}

int omp_get_num_threads  (void)
{
  return 1;
}

int omp_get_num_procs    (void)
{
  return 1;
}

void omp_set_num_threads (int i)
{
}



#endif