[Openmp-commits] [PATCH] D138241: [OpenMP] kmp_affinity.h: add RISCV64 support
Pirama Arumuga Nainar via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Thu Nov 17 16:04:43 PST 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG622d329148bd: [OpenMP] kmp_affinity.h: add RISCV64 support (authored by yabinc, committed by pirama).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138241/new/
https://reviews.llvm.org/D138241
Files:
openmp/runtime/src/kmp_affinity.h
Index: openmp/runtime/src/kmp_affinity.h
===================================================================
--- openmp/runtime/src/kmp_affinity.h
+++ openmp/runtime/src/kmp_affinity.h
@@ -267,6 +267,17 @@
#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 */
#else
#error Unknown or unsupported architecture
#endif /* KMP_ARCH_* */
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138241.476263.patch
Type: text/x-patch
Size: 808 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20221118/255ce3ed/attachment.bin>
More information about the Openmp-commits
mailing list