[Openmp-commits] [PATCH] D135552: openmp: kmp_affinity.h add missing #else
YunQiang Su via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Sun Oct 9 20:31:20 PDT 2022
wzssyqa created this revision.
wzssyqa added reviewers: MaskRay, atanasyan.
Herald added subscribers: StephenFan, guansong, arichardson, yaxunl, sdardis.
Herald added a project: All.
wzssyqa requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: openmp-commits, sstefan1.
Herald added a project: OpenMP.
When detect __NR_sched_getaffinity. the last #else is missing,
which make the last platform MIPS64 failed to build with an error:
"Unknown or unsupported architecture"
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D135552
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
@@ -254,6 +254,7 @@
#elif __NR_sched_getaffinity != 5196
#error Wrong code for getaffinity system call.
#endif /* __NR_sched_getaffinity */
+#else
#error Unknown or unsupported architecture
#endif /* KMP_ARCH_* */
#elif KMP_OS_FREEBSD
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135552.466417.patch
Type: text/x-patch
Size: 426 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20221010/b886e5f6/attachment.bin>
More information about the Openmp-commits
mailing list