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 7a632ba commit 3b45d50Copy full SHA for 3b45d50
ggml/src/ggml.c
@@ -115,8 +115,14 @@ static int sched_yield (void) {
115
return 0;
116
}
117
#else
118
+
119
+#ifndef __USE_GNU
120
+#define __USE_GNU
121
+#endif
122
123
#include <pthread.h>
124
#include <stdatomic.h>
125
+#include <sched.h>
126
127
typedef void * thread_ret_t;
128
@@ -18738,11 +18744,6 @@ static bool __thread_priority(int32_t prio) {
18738
18744
18739
18745
#else // posix?
18740
18746
18741
-#ifndef __USE_GNU
18742
-#define __USE_GNU
18743
-#endif
-#include <sched.h>
-
18747
static bool __thread_affinity(const bool * mask) {
18748
cpu_set_t cpuset;
18749
int32_t err;
0 commit comments