[Openmp-commits] [openmp] r238712 - Apply name change to src/* files.

Jonathan Peyton jonathan.l.peyton at intel.com
Sun May 31 19:37:29 PDT 2015


Author: jlpeyton
Date: Sun May 31 21:37:28 2015
New Revision: 238712

URL: http://llvm.org/viewvc/llvm-project?rev=238712&view=rev
Log:
Apply name change to src/* files.

These changes are mostly in comments, but there are a few
that aren't.  Change libiomp5 => libomp everywhere.  One internal
function name is changed in kmp_gsupport.c, and in kmp_i18n.c, the
static char[] variable 'name' is changed to "libomp".

Modified:
    openmp/trunk/runtime/src/exports_so.txt
    openmp/trunk/runtime/src/kmp_affinity.cpp
    openmp/trunk/runtime/src/kmp_ftn_entry.h
    openmp/trunk/runtime/src/kmp_ftn_os.h
    openmp/trunk/runtime/src/kmp_gsupport.c
    openmp/trunk/runtime/src/kmp_i18n.c
    openmp/trunk/runtime/src/kmp_import.c
    openmp/trunk/runtime/src/kmp_runtime.c
    openmp/trunk/runtime/src/kmp_version.h

Modified: openmp/trunk/runtime/src/exports_so.txt
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/exports_so.txt?rev=238712&r1=238711&r2=238712&view=diff
==============================================================================
--- openmp/trunk/runtime/src/exports_so.txt (original)
+++ openmp/trunk/runtime/src/exports_so.txt Sun May 31 21:37:28 2015
@@ -11,7 +11,7 @@
 #//===----------------------------------------------------------------------===//
 #
 
-# This is version script for OMP RTL shared library (libiomp5*.so)
+# This is version script for OMP RTL shared library (libomp*.so)
 
 VERSION {
 

Modified: openmp/trunk/runtime/src/kmp_affinity.cpp
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_affinity.cpp?rev=238712&r1=238711&r2=238712&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_affinity.cpp (original)
+++ openmp/trunk/runtime/src/kmp_affinity.cpp Sun May 31 21:37:28 2015
@@ -123,7 +123,7 @@ __kmp_affinity_entire_machine_mask(kmp_a
 //
 // Unfortunately, my attempts to reproduce it in a smaller example have
 // failed - I'm not sure what the prospects are of getting it fixed
-// properly - but we need a reproducer smaller than all of libiomp.
+// properly - but we need a reproducer smaller than all of libomp.
 //
 // Work around the problem by avoiding inline constructors in such builds.
 // We do this for all platforms, not just Linux* OS - non-inline functions are

Modified: openmp/trunk/runtime/src/kmp_ftn_entry.h
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_ftn_entry.h?rev=238712&r1=238711&r2=238712&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_ftn_entry.h (original)
+++ openmp/trunk/runtime/src/kmp_ftn_entry.h Sun May 31 21:37:28 2015
@@ -1088,7 +1088,7 @@ FTN_GET_CANCELLATION_STATUS(int cancel_k
     These following sections create function aliases (dummy symbols) for the omp_* routines.
     These aliases will then be versioned according to how libgomp ``versions'' its
     symbols (OMP_1.0, OMP_2.0, OMP_3.0, ...) while also retaining the
-    default version which libiomp5 uses: VERSION (defined in exports_so.txt)
+    default version which libomp uses: VERSION (defined in exports_so.txt)
     If you want to see the versioned symbols for libgomp.so.1 then just type:
 
     objdump -T /path/to/libgomp.so.1 | grep omp_

Modified: openmp/trunk/runtime/src/kmp_ftn_os.h
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_ftn_os.h?rev=238712&r1=238711&r2=238712&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_ftn_os.h (original)
+++ openmp/trunk/runtime/src/kmp_ftn_os.h Sun May 31 21:37:28 2015
@@ -475,7 +475,7 @@
 #define KMP_API_NAME_GOMP_TASKYIELD                      GOMP_taskyield
 
 // All GOMP_4.0 symbols 
-// TODO: As of 2013-10-14, none of the GOMP_4.0 functions are implemented in libiomp5
+// TODO: As of 2013-10-14, none of the GOMP_4.0 functions are implemented in libomp
 #define KMP_API_NAME_GOMP_BARRIER_CANCEL                 GOMP_barrier_cancel
 #define KMP_API_NAME_GOMP_CANCEL                         GOMP_cancel
 #define KMP_API_NAME_GOMP_CANCELLATION_POINT             GOMP_cancellation_point

Modified: openmp/trunk/runtime/src/kmp_gsupport.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_gsupport.c?rev=238712&r1=238711&r2=238712&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_gsupport.c (original)
+++ openmp/trunk/runtime/src/kmp_gsupport.c Sun May 31 21:37:28 2015
@@ -1212,7 +1212,7 @@ xexpand(KMP_API_NAME_GOMP_TASKGROUP_END)
 #ifndef KMP_DEBUG
 static
 #endif /* KMP_DEBUG */
-kmp_int32 __kmp_gomp_to_iomp_cancellation_kind(int gomp_kind) {
+kmp_int32 __kmp_gomp_to_omp_cancellation_kind(int gomp_kind) {
     kmp_int32 cncl_kind = 0;
     switch(gomp_kind) {
       case 1:
@@ -1241,7 +1241,7 @@ xexpand(KMP_API_NAME_GOMP_CANCELLATION_P
     MKLOC(loc, "GOMP_cancellation_point");
     KA_TRACE(20, ("GOMP_cancellation_point: T#%d\n", gtid));
 
-    kmp_int32 cncl_kind = __kmp_gomp_to_iomp_cancellation_kind(which);
+    kmp_int32 cncl_kind = __kmp_gomp_to_omp_cancellation_kind(which);
 
     return __kmpc_cancellationpoint(&loc, gtid, cncl_kind);
 }
@@ -1273,7 +1273,7 @@ xexpand(KMP_API_NAME_GOMP_CANCEL)(int wh
     MKLOC(loc, "GOMP_cancel");
     KA_TRACE(20, ("GOMP_cancel: T#%d\n", gtid));
 
-    kmp_int32 cncl_kind = __kmp_gomp_to_iomp_cancellation_kind(which);
+    kmp_int32 cncl_kind = __kmp_gomp_to_omp_cancellation_kind(which);
 
     if(do_cancel == FALSE) {
         return xexpand(KMP_API_NAME_GOMP_CANCELLATION_POINT)(which);

Modified: openmp/trunk/runtime/src/kmp_i18n.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_i18n.c?rev=238712&r1=238711&r2=238712&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_i18n.c (original)
+++ openmp/trunk/runtime/src/kmp_i18n.c Sun May 31 21:37:28 2015
@@ -89,7 +89,7 @@ __kmp_i18n_catopen(
 
 #define KMP_I18N_NULLCAT ((nl_catd)( -1 ))
 static nl_catd       cat  = KMP_I18N_NULLCAT;    // !!! Shall it be volatile?
-static char const *  name = ( KMP_VERSION_MAJOR == 4 ? "libguide.cat" : "libiomp5.cat" );
+static char const *  name = ( KMP_VERSION_MAJOR == 4 ? "libguide.cat" : "libomp.cat" );
 
 /*
     Useful links:
@@ -258,7 +258,7 @@ __kmp_i18n_catgets(
 
 #define KMP_I18N_NULLCAT  NULL
 static HMODULE       cat  = KMP_I18N_NULLCAT;    // !!! Shall it be volatile?
-static char const *  name = ( KMP_VERSION_MAJOR == 4 ? "libguide40ui.dll" : "libiomp5ui.dll" );
+static char const *  name = ( KMP_VERSION_MAJOR == 4 ? "libguide40ui.dll" : "libompui.dll" );
 
 static kmp_i18n_table_t  table             = { 0, NULL };
     // Messages formatted by FormatMessage() should be freed, but catgets() interface assumes
@@ -400,12 +400,12 @@ __kmp_i18n_do_catopen(
 	// __kmp_i18n_catgets() will not try to open catalog but will return default message.
         /*
          If message catalog for another architecture found (e.g. OpenMP RTL
-	 for IA-32 architecture opens libiomp5ui.dll for Intel(R) 64)
+	 for IA-32 architecture opens libompui.dll for Intel(R) 64)
 	 Windows* OS returns error 193 (ERROR_BAD_EXE_FORMAT). However,
          FormatMessage fails to return a message for this error, so user
 	 will see:
 
-         OMP: Warning #2: Cannot open message catalog "1041\libiomp5ui.dll":
+         OMP: Warning #2: Cannot open message catalog "1041\libompui.dll":
          OMP: System error #193: (No system error message available)
          OMP: Info #3: Default messages will be used.
 
@@ -477,7 +477,7 @@ __kmp_i18n_catclose(
     Additional mess comes from message catalog: Our catalog source en_US.mc file (generated by
     message-converter.pl) contains only "\n" characters, but en_US_msg_1033.bin file (produced by
     mc.exe) may contain "\r\n" or just "\n". This mess goes from en_US_msg_1033.bin file to
-    message catalog, libiomp5ui.dll. For example, message
+    message catalog, libompui.dll. For example, message
 
         Error
 

Modified: openmp/trunk/runtime/src/kmp_import.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_import.c?rev=238712&r1=238711&r2=238712&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_import.c (original)
+++ openmp/trunk/runtime/src/kmp_import.c Sun May 31 21:37:28 2015
@@ -15,9 +15,9 @@
 
 /*
     ------------------------------------------------------------------------------------------------
-    Object generated from this source file is linked to Windows* OS DLL import library (libiomp5md.lib)
+    Object generated from this source file is linked to Windows* OS DLL import library (libompmd.lib)
     only! It is not a part of regular static or dynamic OpenMP RTL. Any code that just needs to go
-    in the libiomp5md.lib (but not in libiomp5mt.lib and libiomp5md.dll) should be placed in this
+    in the libompmd.lib (but not in libompmt.lib and libompmd.dll) should be placed in this
     file.
     ------------------------------------------------------------------------------------------------
 */

Modified: openmp/trunk/runtime/src/kmp_runtime.c
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_runtime.c?rev=238712&r1=238711&r2=238712&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_runtime.c (original)
+++ openmp/trunk/runtime/src/kmp_runtime.c Sun May 31 21:37:28 2015
@@ -5614,7 +5614,7 @@ __kmp_internal_end_dest( void *specific_
 #if KMP_OS_UNIX && KMP_DYNAMIC_LIB
 
 // 2009-09-08 (lev): It looks the destructor does not work. In simple test cases destructors work
-// perfectly, but in real libiomp5.so I have no evidence it is ever called. However, -fini linker
+// perfectly, but in real libomp.so I have no evidence it is ever called. However, -fini linker
 // option in makefile.mk works fine.
 
 __attribute__(( destructor ))

Modified: openmp/trunk/runtime/src/kmp_version.h
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/kmp_version.h?rev=238712&r1=238711&r2=238712&view=diff
==============================================================================
--- openmp/trunk/runtime/src/kmp_version.h (original)
+++ openmp/trunk/runtime/src/kmp_version.h Sun May 31 21:37:28 2015
@@ -27,7 +27,7 @@
 /*
     Using "magic" prefix in all the version strings is rather convenient to get static version info
     from binaries by using standard utilities "strings" and "grep", e. g.:
-        $ strings libiomp5.so | grep "@(#)"
+        $ strings libomp.so | grep "@(#)"
     gives clean list of all version strings in the library. Leading zero helps to keep version
     string separate from printable characters which may occurs just before version string.
 */





More information about the Openmp-commits mailing list