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 3b14c84 commit 62ef260Copy full SHA for 62ef260
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
@@ -18736,11 +18742,6 @@ static bool __thread_priority(int32_t prio) {
18736
18742
18737
18743
#else // posix?
18738
18744
18739
-#ifndef __USE_GNU
18740
-#define __USE_GNU
18741
-#endif
-#include <sched.h>
-
18745
static bool __thread_affinity(const bool * mask) {
18746
cpu_set_t cpuset;
18747
int32_t err;
0 commit comments