Skip to content

Commit ed5fe64

Browse files
committed
[OpenMP] NFC: Fix trivial typos in comments
Submitted by: kiszk Differential Revision: https://reviews.llvm.org/D72171
1 parent 0f1e799 commit ed5fe64

25 files changed

+36
-36
lines changed

openmp/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ endif()
6969
option(OPENMP_ENABLE_LIBOMPTARGET "Enable building libomptarget for offloading."
7070
${ENABLE_LIBOMPTARGET})
7171
if (OPENMP_ENABLE_LIBOMPTARGET)
72-
# Check that the library can acutally be built.
72+
# Check that the library can actually be built.
7373
if (APPLE OR WIN32)
7474
message(FATAL_ERROR "libomptarget cannot be built on Windows and MacOS X!")
7575
elseif (NOT OPENMP_HAVE_STD_CPP11_FLAG)

openmp/runtime/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ libomp_check_variable(LIBOMP_ARCH 32e x86_64 32 i386 arm ppc64 ppc64le aarch64 m
7171
set(LIBOMP_LIB_TYPE normal CACHE STRING
7272
"Performance,Profiling,Stubs library (normal/profile/stubs)")
7373
libomp_check_variable(LIBOMP_LIB_TYPE normal profile stubs)
74-
# Set the OpenMP Year and Month assiociated with version
74+
# Set the OpenMP Year and Month associated with version
7575
set(LIBOMP_OMP_YEAR_MONTH 201611)
7676
set(LIBOMP_MIC_ARCH knc CACHE STRING
7777
"Intel(R) Many Integrated Core Architecture (Intel(R) MIC Architecture) (knf/knc). Ignored if not Intel(R) MIC Architecture build.")

openmp/runtime/src/i18n/en_US.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ AffUseGlobCpuid "%1$s: Affinity capable, using global cpuid info"
293293
AffCapableUseFlat "%1$s: Affinity capable, using default \"flat\" topology"
294294
AffNotCapableUseLocCpuid "%1$s: Affinity not capable, using local cpuid info"
295295
AffNotCapableUseCpuinfo "%1$s: Affinity not capable, using cpuinfo file"
296-
AffFlatTopology "%1$s: Affinity not capable, assumming \"flat\" topology"
296+
AffFlatTopology "%1$s: Affinity not capable, assuming \"flat\" topology"
297297
InitOSProcSetRespect "%1$s: Initial OS proc set respected: %2$s"
298298
InitOSProcSetNotRespect "%1$s: Initial OS proc set not respected: %2$s"
299299
AvailableOSProc "%1$s: %2$d available OS procs"

openmp/runtime/src/kmp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2253,7 +2253,7 @@ typedef struct kmp_tasking_flags { /* Total struct must be exactly 32 bits */
22532253
unsigned started : 1; /* 1==started, 0==not started */
22542254
unsigned executing : 1; /* 1==executing, 0==not executing */
22552255
unsigned complete : 1; /* 1==complete, 0==not complete */
2256-
unsigned freed : 1; /* 1==freed, 0==allocateed */
2256+
unsigned freed : 1; /* 1==freed, 0==allocated */
22572257
unsigned native : 1; /* 1==gcc-compiled task, 0==intel */
22582258
unsigned reserved31 : 7; /* reserved for library use */
22592259

openmp/runtime/src/kmp_affinity.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2076,7 +2076,7 @@ static int __kmp_affinity_create_cpuinfo_map(AddrUnsPair **address2os,
20762076
return -1;
20772077
}
20782078

2079-
// Set the file pointer back to the begginning, so that we can scan the file
2079+
// Set the file pointer back to the beginning, so that we can scan the file
20802080
// again, this time performing a full parse of the data. Allocate a vector of
20812081
// ProcCpuInfo object, where we will place the data. Adding an extra element
20822082
// at the end allows us to remove a lot of extra checks for termination
@@ -2461,7 +2461,7 @@ static int __kmp_affinity_create_cpuinfo_map(AddrUnsPair **address2os,
24612461
threadInfo[i][threadIdIndex] = threadIdCt++;
24622462
}
24632463

2464-
// Aparrently the thread id field was specified for some entries and
2464+
// Apparently the thread id field was specified for some entries and
24652465
// not others. Start the thread id counter off at the next higher
24662466
// thread id.
24672467
else if (threadIdCt <= threadInfo[i][threadIdIndex]) {

openmp/runtime/src/kmp_alloc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ static void bectl(kmp_info_t *th, bget_compact_t compact,
5757
multiple of this size. This MUST be a power of two. */
5858

5959
/* On IA-32 architecture with Linux* OS, malloc() does not
60-
ensure 16 byte alignmnent */
60+
ensure 16 byte alignment */
6161

6262
#if KMP_ARCH_X86 || !KMP_HAVE_QUAD
6363

openmp/runtime/src/kmp_atomic.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,8 +483,8 @@ Functions for Complex types
483483
---------------------------
484484
Functions for complex types whose component floating point variables are of size
485485
4,8,10 or 16 bytes. The names here are based on the size of the component float,
486-
*not* the size of the complex type. So `__kmpc_atomc_cmplx8_add` is an operation
487-
on a `complex<double>` or `complex(kind=8)`, *not* `complex<float>`.
486+
*not* the size of the complex type. So `__kmpc_atomic_cmplx8_add` is an
487+
operation on a `complex<double>` or `complex(kind=8)`, *not* `complex<float>`.
488488
489489
@code
490490
__kmpc_atomic_cmplx4_add

openmp/runtime/src/kmp_dispatch_hier.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1071,7 +1071,7 @@ void __kmp_dispatch_init_hierarchy(ident_t *loc, int n,
10711071
my_unit->reset_shared_barrier();
10721072
my_unit->hier_pr.flags.contains_last = FALSE;
10731073
// Last layer, initialize the private buffers with entire loop information
1074-
// Now the next next_algorithim() call will get the first chunk of
1074+
// Now the next next_algorithm() call will get the first chunk of
10751075
// iterations properly
10761076
if (i == n - 1) {
10771077
__kmp_dispatch_init_algorithm<T>(

openmp/runtime/src/kmp_ftn_entry.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,7 @@ int FTN_STDCALL KMP_EXPAND_NAME(FTN_GET_NUM_DEVICES)(void) {
956956
}
957957

958958
// This function always returns true when called on host device.
959-
// Compilier/libomptarget should handle when it is called inside target region.
959+
// Compiler/libomptarget should handle when it is called inside target region.
960960
int FTN_STDCALL KMP_EXPAND_NAME(FTN_IS_INITIAL_DEVICE)(void) KMP_WEAK_ATTRIBUTE;
961961
int FTN_STDCALL KMP_EXPAND_NAME(FTN_IS_INITIAL_DEVICE)(void) {
962962
return 1; // This is the host

openmp/runtime/src/kmp_gsupport.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ void KMP_EXPAND_NAME(KMP_API_NAME_GOMP_PARALLEL_END)(void) {
496496
//
497497
// Conversely, KMP_DISPATCH_NEXT returns and inclusive upper bound in *p_ub,
498498
// but the Gnu codegen expects an excluside upper bound, so the adjustment
499-
// "*p_ub += stride" compenstates for the discrepancy.
499+
// "*p_ub += stride" compensates for the discrepancy.
500500
//
501501
// Correction: the gnu codegen always adjusts the upper bound by +-1, not the
502502
// stride value. We adjust the dispatch parameters accordingly (by +-1), but

0 commit comments

Comments
 (0)