File tree 1 file changed +14
-1
lines changed
1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -19556,7 +19556,8 @@ static bool ggml_thread_apply_priority(int32_t prio) {
19556
19556
return true;
19557
19557
}
19558
19558
19559
- #else // posix?
19559
+ #elif defined(__gnu_linux__)
19560
+ // TODO: this may not work on BSD, to be verified
19560
19561
19561
19562
static bool ggml_thread_apply_affinity(const bool * mask) {
19562
19563
cpu_set_t cpuset;
@@ -19611,6 +19612,18 @@ static bool ggml_thread_apply_priority(int32_t prio) {
19611
19612
return true;
19612
19613
}
19613
19614
19615
+ #else // unsupported platforms
19616
+
19617
+ static bool ggml_thread_apply_affinity(const bool * mask) {
19618
+ UNUSED(mask);
19619
+ return true;
19620
+ }
19621
+
19622
+ static bool ggml_thread_apply_priority(int32_t prio) {
19623
+ UNUSED(prio);
19624
+ return true;
19625
+ }
19626
+
19614
19627
#endif
19615
19628
19616
19629
static bool ggml_thread_cpumask_is_valid(const bool * mask) {
You can’t perform that action at this time.
0 commit comments