File tree Expand file tree Collapse file tree 4 files changed +21
-6
lines changed
src/Accelerators/NNPA/Runtime/zDNNExtension Expand file tree Collapse file tree 4 files changed +21
-6
lines changed Original file line number Diff line number Diff line change 12
12
//
13
13
//===----------------------------------------------------------------------===//
14
14
15
- // Include pthreads (need special treatment on z/OS).
15
+ // z/OS specific includes
16
16
#ifdef __MVS__
17
+ // needed for pthread on z/OS
17
18
#define _OPEN_THREADS
19
+ // z/OS needs <time.h> in addition to <sys/time.h>
20
+ #include <time.h>
18
21
#endif
19
- #include <pthread.h>
20
22
21
23
#include <assert.h>
22
24
#include <math.h>
25
+ #include <pthread.h>
23
26
#include <stdio.h>
24
27
#include <stdlib.h>
25
28
#include <sys/time.h>
Original file line number Diff line number Diff line change 12
12
//
13
13
//===----------------------------------------------------------------------===//
14
14
15
- // Include pthreads (need special treatment on z/OS).
15
+ // z/OS specific includes
16
16
#ifdef __MVS__
17
+ // special treatment for pthreads on z/OS.
17
18
#define _OPEN_THREADS
18
19
#define _OPEN_SYS_EXT
19
20
#include <sys/ps.h>
21
+ // z/OS needs <time.h> in addition to <sys/time.h>
22
+ #include <time.h>
20
23
#endif
21
- #include <pthread.h>
22
24
23
25
#include <assert.h>
24
26
#include <math.h>
27
+ #include <pthread.h>
25
28
#include <sched.h>
26
29
#include <stdio.h>
27
30
#include <stdlib.h>
Original file line number Diff line number Diff line change 12
12
//
13
13
//===----------------------------------------------------------------------===//
14
14
15
- // Include pthreads (need special treatment on z/OS).
15
+ // z/OS specific includes
16
16
#ifdef __MVS__
17
+ // needed for pthread on z/OS
17
18
#define _OPEN_THREADS
19
+ // z/OS needs <time.h> in addition to <sys/time.h>
20
+ #include <time.h>
18
21
#endif
19
- #include <pthread.h>
20
22
21
23
#include <assert.h>
22
24
#include <math.h>
25
+ #include <pthread.h>
23
26
#include <stdio.h>
24
27
#include <stdlib.h>
25
28
#include <sys/time.h>
Original file line number Diff line number Diff line change 15
15
#ifndef ONNX_MLIR_ZDNNEXTENSION_H
16
16
#define ONNX_MLIR_ZDNNEXTENSION_H
17
17
18
+ // z/OS specific includes
19
+ #ifdef __MVS__
20
+ // z/OS needs <time.h> in addition to <sys/time.h>
21
+ #include <time.h>
22
+ #endif
23
+
18
24
#include <stdlib.h>
19
25
#include <sys/time.h>
20
26
You can’t perform that action at this time.
0 commit comments