[Openmp-commits] [openmp] 3f9d51a - [OpenMP] kmp_affinity.h: add missing #else

Fangrui Song via Openmp-commits openmp-commits at lists.llvm.org
Tue Oct 25 19:53:44 PDT 2022


Author: YunQiang Su
Date: 2022-10-25T19:53:38-07:00
New Revision: 3f9d51ab5a1d0bd23acccca13d060ded7dff2086

URL: https://github.com/llvm/llvm-project/commit/3f9d51ab5a1d0bd23acccca13d060ded7dff2086
DIFF: https://github.com/llvm/llvm-project/commit/3f9d51ab5a1d0bd23acccca13d060ded7dff2086.diff

LOG: [OpenMP] kmp_affinity.h: add missing #else

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"

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D135552

Added: 
    

Modified: 
    openmp/runtime/src/kmp_affinity.h

Removed: 
    


################################################################################
diff  --git a/openmp/runtime/src/kmp_affinity.h b/openmp/runtime/src/kmp_affinity.h
index ce00362f04cab..2e0480f65f67b 100644
--- a/openmp/runtime/src/kmp_affinity.h
+++ b/openmp/runtime/src/kmp_affinity.h
@@ -254,6 +254,7 @@ class KMPHwlocAffinity : public KMPAffinity {
 #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


        


More information about the Openmp-commits mailing list