[Openmp-commits] [openmp] 5a87791 - [OpenMP] libomp build fix without OMPT_SUPPORT

via Openmp-commits openmp-commits at lists.llvm.org
Tue Jul 21 06:03:39 PDT 2020


Author: AndreyChurbanov
Date: 2020-07-21T16:03:17+03:00
New Revision: 5a8779169ebc6a5bb839b46c6201e9217b7e3561

URL: https://github.com/llvm/llvm-project/commit/5a8779169ebc6a5bb839b46c6201e9217b7e3561
DIFF: https://github.com/llvm/llvm-project/commit/5a8779169ebc6a5bb839b46c6201e9217b7e3561.diff

LOG: [OpenMP] libomp build fix without OMPT_SUPPORT

Added: 
    

Modified: 
    openmp/runtime/src/kmp.h

Removed: 
    


################################################################################
diff  --git a/openmp/runtime/src/kmp.h b/openmp/runtime/src/kmp.h
index f266d0fb73fb..933573bc810c 100644
--- a/openmp/runtime/src/kmp.h
+++ b/openmp/runtime/src/kmp.h
@@ -136,6 +136,10 @@ typedef unsigned int kmp_hwloc_depth_t;
 #include "ompt-internal.h"
 #endif
 
+#ifndef UNLIKELY
+#define UNLIKELY(x) (x)
+#endif
+
 // Affinity format function
 #include "kmp_str.h"
 


        


More information about the Openmp-commits mailing list