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 1212//
1313//===----------------------------------------------------------------------===//
1414
15- // Include pthreads (need special treatment on z/OS).
15+ // z/OS specific includes
1616#ifdef __MVS__
17+ // needed for pthread on z/OS
1718#define _OPEN_THREADS
19+ // z/OS needs <time.h> in addition to <sys/time.h>
20+ #include <time.h>
1821#endif
19- #include <pthread.h>
2022
2123#include <assert.h>
2224#include <math.h>
25+ #include <pthread.h>
2326#include <stdio.h>
2427#include <stdlib.h>
2528#include <sys/time.h>
Original file line number Diff line number Diff line change 1212//
1313//===----------------------------------------------------------------------===//
1414
15- // Include pthreads (need special treatment on z/OS).
15+ // z/OS specific includes
1616#ifdef __MVS__
17+ // special treatment for pthreads on z/OS.
1718#define _OPEN_THREADS
1819#define _OPEN_SYS_EXT
1920#include <sys/ps.h>
21+ // z/OS needs <time.h> in addition to <sys/time.h>
22+ #include <time.h>
2023#endif
21- #include <pthread.h>
2224
2325#include <assert.h>
2426#include <math.h>
27+ #include <pthread.h>
2528#include <sched.h>
2629#include <stdio.h>
2730#include <stdlib.h>
Original file line number Diff line number Diff line change 1212//
1313//===----------------------------------------------------------------------===//
1414
15- // Include pthreads (need special treatment on z/OS).
15+ // z/OS specific includes
1616#ifdef __MVS__
17+ // needed for pthread on z/OS
1718#define _OPEN_THREADS
19+ // z/OS needs <time.h> in addition to <sys/time.h>
20+ #include <time.h>
1821#endif
19- #include <pthread.h>
2022
2123#include <assert.h>
2224#include <math.h>
25+ #include <pthread.h>
2326#include <stdio.h>
2427#include <stdlib.h>
2528#include <sys/time.h>
Original file line number Diff line number Diff line change 1515#ifndef ONNX_MLIR_ZDNNEXTENSION_H
1616#define ONNX_MLIR_ZDNNEXTENSION_H
1717
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+
1824#include <stdlib.h>
1925#include <sys/time.h>
2026
You can’t perform that action at this time.
0 commit comments