File: test.c

package info (click to toggle)
pocl 6.0-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 25,320 kB
  • sloc: lisp: 149,513; ansic: 103,778; cpp: 54,947; python: 1,513; sh: 949; ruby: 255; pascal: 226; tcl: 180; makefile: 175; java: 72; xml: 49
file content (58 lines) | stat: -rw-r--r-- 821 bytes parent folder | download | duplicates (5)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58

/************************/
#if defined(PURE_C)

  #define CONFIG 1

#elif defined(VEC128)

  #ifdef __ARM_NEON
    #define CONFIG 1

  #elif defined(__AVX2__)
    #define CONFIG 1

  #elif defined(__SSE4_1__)
    #define CONFIG 4

  #elif defined(__SSE3__)
    #define CONFIG 3

  #elif defined(__SSE2__)
    #define CONFIG 2

  #else
    #error 128bit vectors unavailable
  #endif

#elif defined(VEC256)

  #if defined(__AVX2__)
    #define CONFIG 1

  #elif defined(__FMA4__)
    #define CONFIG 4

  #elif defined(__AVX__)
    #define CONFIG 1

  #else
    #error 256bit vectors unavailable
  #endif

#elif defined(VEC512)

  #ifdef __AVX512F__
    #define CONFIG 1
  #else
    #error 512bit vectors unavailable
  #endif

#else
#error Please specify valid vector size with -DVECxxx
#endif


int main() {
  return 0;
}