[Openmp-commits] [PATCH] D137604: [OpenMP] kmp_affinity.h: add LoongArch64 support

Lu Weining via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Wed Nov 16 19:59:29 PST 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rGdb8a96731f98: [OpenMP] kmp_affinity.h: add LoongArch64 support (authored by Ami-zhang, committed by SixWeining).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D137604/new/

https://reviews.llvm.org/D137604

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
@@ -256,6 +256,17 @@
 #elif __NR_sched_getaffinity != 5196
 #error Wrong code for getaffinity system call.
 #endif /* __NR_sched_getaffinity */
+#elif KMP_ARCH_LOONGARCH64
+#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: D137604.475994.patch
Type: text/x-patch
Size: 813 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20221117/b7b511b3/attachment.bin>


More information about the Openmp-commits mailing list