[Openmp-commits] [openmp] [OpenMP][RISCV] Add riscv32 support (PR #99494)
Kito Cheng via Openmp-commits
openmp-commits at lists.llvm.org
Thu Jul 18 08:01:55 PDT 2024
================
@@ -276,6 +276,17 @@ class KMPHwlocAffinity : public KMPAffinity {
#elif __NR_sched_getaffinity != 123
#error Wrong code for getaffinity system call.
#endif /* __NR_sched_getaffinity */
+#elif KMP_ARCH_RISCV32
+#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_RISCV64
----------------
kito-cheng wrote:
Just `KMP_ARCH_RISCV32 || KMP_ARCH_RISCV64` here?
https://github.com/llvm/llvm-project/pull/99494
More information about the Openmp-commits
mailing list