From: LLVM Packaging Team Date: Sat, 5 Nov 2022 08:14:23 +0000 (+0000) Subject: Define the affinity for riscv64 X-Git-Tag: archive/raspbian/1%13.0.1-9+rpi1~1^2~21 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=55f2dc9c185007f9dfa32c7dcf05f494725ae02a;p=llvm-toolchain-13.git Define the affinity for riscv64 Last-Update: 2021-08-27 Gbp-Pq: Name omp-riscv64.patch --- diff --git a/openmp/runtime/src/kmp_affinity.h b/openmp/runtime/src/kmp_affinity.h index 596fdfc942..5787ee03c9 100644 --- a/openmp/runtime/src/kmp_affinity.h +++ b/openmp/runtime/src/kmp_affinity.h @@ -209,6 +209,17 @@ public: #elif __NR_sched_getaffinity != 123 #error Wrong code for getaffinity system call. #endif /* __NR_sched_getaffinity */ +#elif KMP_ARCH_RISCV64 +#ifndef __NR_sched_setaffinity +#define __NR_sched_setaffinity 122 +#elif __NR_sched_setaffinity != 122 +#error Wrong code for setaffinity system call. +#endif /* __NR_sched_setaffinity */ +#ifndef __NR_sched_getaffinity +#define __NR_sched_getaffinity 123 +#elif __NR_sched_getaffinity != 123 +#error Wrong code for getaffinity system call. +#endif /* __NR_sched_getaffinity */ #elif KMP_ARCH_X86_64 #ifndef __NR_sched_setaffinity #define __NR_sched_setaffinity 203