We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86f4a02 commit 0a01fd3Copy full SHA for 0a01fd3
ggml/src/ggml.c
@@ -118,8 +118,14 @@ static int sched_yield (void) {
118
return 0;
119
}
120
#else
121
+
122
+#ifndef __USE_GNU
123
+#define __USE_GNU
124
+#endif
125
126
#include <pthread.h>
127
#include <stdatomic.h>
128
+#include <sched.h>
129
130
typedef void * thread_ret_t;
131
@@ -18800,11 +18806,6 @@ static bool __thread_priority(int32_t prio) {
18800
18806
18801
18807
#else // posix?
18802
18808
18803
-#ifndef __USE_GNU
18804
-#define __USE_GNU
18805
-#endif
-#include <sched.h>
-
18809
static bool __thread_affinity(const bool * mask) {
18810
cpu_set_t cpuset;
18811
int32_t err;
0 commit comments