diff --git a/openmp/libomptarget/DeviceRTL/include/Configuration.h b/openmp/libomptarget/DeviceRTL/include/Configuration.h --- a/openmp/libomptarget/DeviceRTL/include/Configuration.h +++ b/openmp/libomptarget/DeviceRTL/include/Configuration.h @@ -31,7 +31,7 @@ /// Return the device number in the system for omp_get_device_num. uint32_t getDeviceNum(); -/// Return the user choosen debug level. +/// Return the user chosen debug level. uint32_t getDebugKind(); /// Return the amount of dynamic shared memory that was allocated at launch. diff --git a/openmp/libomptarget/DeviceRTL/src/Workshare.cpp b/openmp/libomptarget/DeviceRTL/src/Workshare.cpp --- a/openmp/libomptarget/DeviceRTL/src/Workshare.cpp +++ b/openmp/libomptarget/DeviceRTL/src/Workshare.cpp @@ -78,11 +78,11 @@ lb = lb + entityId * chunk; T inputUb = ub; ub = lb + chunk - 1; // Clang uses i <= ub - // Say ub' is the begining of the last chunk. Then who ever has a + // Say ub' is the beginning of the last chunk. Then who ever has a // lower bound plus a multiple of the increment equal to ub' is // the last one. - T beginingLastChunk = inputUb - (inputUb % chunk); - last = ((beginingLastChunk - lb) % stride) == 0; + T beginningLastChunk = inputUb - (inputUb % chunk); + last = ((beginningLastChunk - lb) % stride) == 0; } //////////////////////////////////////////////////////////////////////////////// diff --git a/openmp/libomptarget/include/omptargetplugin.h b/openmp/libomptarget/include/omptargetplugin.h --- a/openmp/libomptarget/include/omptargetplugin.h +++ b/openmp/libomptarget/include/omptargetplugin.h @@ -43,7 +43,7 @@ int32_t __tgt_rtl_is_valid_binary_info(__tgt_device_image *Image, __tgt_image_info *Info); -// Return an integer other than zero if the data can be exchaned from SrcDevId +// Return an integer other than zero if the data can be exchanged from SrcDevId // to DstDevId. If it is data exchangable, the device plugin should provide // function to move data from source device to destination device directly. int32_t __tgt_rtl_is_data_exchangable(int32_t SrcDevId, int32_t DstDevId); diff --git a/openmp/libomptarget/plugins/amdgpu/impl/system.cpp b/openmp/libomptarget/plugins/amdgpu/impl/system.cpp --- a/openmp/libomptarget/plugins/amdgpu/impl/system.cpp +++ b/openmp/libomptarget/plugins/amdgpu/impl/system.cpp @@ -726,7 +726,7 @@ }); if (err != HSA_STATUS_SUCCESS) { printf("[%s:%d] %s failed: %s\n", __FILE__, __LINE__, - "Iterating over symbols for execuatable", get_error_string(err)); + "Iterating over symbols for executable", get_error_string(err)); return HSA_STATUS_ERROR; } diff --git a/openmp/libomptarget/plugins/amdgpu/src/rtl.cpp b/openmp/libomptarget/plugins/amdgpu/src/rtl.cpp --- a/openmp/libomptarget/plugins/amdgpu/src/rtl.cpp +++ b/openmp/libomptarget/plugins/amdgpu/src/rtl.cpp @@ -783,7 +783,7 @@ Region, HSA_AMD_MEMORY_POOL_INFO_ACCESSIBLE_BY_ALL, &Access), "Error returned from hsa_amd_memory_pool_get_info when obtaining " "HSA_AMD_MEMORY_POOL_INFO_ACCESSIBLE_BY_ALL\n"); - printf(" Accessable by all: \t\t %s\n", + printf(" Accessible by all: \t\t %s\n", (Access ? "TRUE" : "FALSE")); return HSA_STATUS_SUCCESS; diff --git a/openmp/libomptarget/src/rtl.cpp b/openmp/libomptarget/src/rtl.cpp --- a/openmp/libomptarget/src/rtl.cpp +++ b/openmp/libomptarget/src/rtl.cpp @@ -418,7 +418,7 @@ void RTLsTy::registerLib(__tgt_bin_desc *Desc) { PM->RTLsMtx.lock(); - // Extract the exectuable image and extra information if availible. + // Extract the executable image and extra information if availible. for (int32_t i = 0; i < Desc->NumDeviceImages; ++i) PM->Images.emplace_back(getExecutableImage(&Desc->DeviceImages[i]), getImageInfo(&Desc->DeviceImages[i])); diff --git a/openmp/runtime/src/i18n/en_US.txt b/openmp/runtime/src/i18n/en_US.txt --- a/openmp/runtime/src/i18n/en_US.txt +++ b/openmp/runtime/src/i18n/en_US.txt @@ -18,7 +18,7 @@ # placeholders may be changed, e.g. "File %1$s line %2$d" may be safely edited to # "Line %2$d file %1$s"). # * Adding new message to the end of section. -# Incompatible changes (version must be bumbed by 1): +# Incompatible changes (version must be bumped by 1): # * Introducing new placeholders to existing messages. # * Changing type of placeholders (e.g. "line %1$d" -> "line %1$s"). # * Rearranging order of messages. @@ -477,8 +477,8 @@ AffHWSubsetAttrRepeat "KMP_HW_SUBSET ignored: %1$s: attribute specified more than once." AffHWSubsetAttrInvalid "KMP_HW_SUBSET ignored: %1$s: attribute value %2$s is invalid." AffHWSubsetAllFiltered "KMP_HW_SUBSET ignored: all hardware resources would be filtered, please reduce the filter." -AffHWSubsetAttrsNonHybrid "KMP_HW_SUBSET ignored: Too many attributes specified. This machine is not a hybrid architecutre." -AffHWSubsetIgnoringAttr "KMP_HW_SUBSET: ignoring %1$s attribute. This machine is not a hybrid architecutre." +AffHWSubsetAttrsNonHybrid "KMP_HW_SUBSET ignored: Too many attributes specified. This machine is not a hybrid architecture." +AffHWSubsetIgnoringAttr "KMP_HW_SUBSET: ignoring %1$s attribute. This machine is not a hybrid architecture." # -------------------------------------------------------------------------------------------------- -*- HINTS -*- diff --git a/openmp/runtime/src/kmp_affinity.cpp b/openmp/runtime/src/kmp_affinity.cpp --- a/openmp/runtime/src/kmp_affinity.cpp +++ b/openmp/runtime/src/kmp_affinity.cpp @@ -1015,7 +1015,7 @@ // Check if using a single core attribute on non-hybrid arch. // Do not ignore all of KMP_HW_SUBSET, just ignore the attribute. // - // Check if using multiple core attributes on non-hyrbid arch. + // Check if using multiple core attributes on non-hybrid arch. // Ignore all of KMP_HW_SUBSET if this is the case. if ((using_core_effs || using_core_types) && !__kmp_is_hybrid_cpu()) { if (item.num_attrs == 1) { @@ -1671,7 +1671,7 @@ // Hack to try and infer the machine topology using only the data // available from hwloc on the current thread, and __kmp_xproc. KMP_ASSERT(__kmp_affinity_type == affinity_none); - // hwloc only guarantees existance of PU object, so check PACKAGE and CORE + // hwloc only guarantees existence of PU object, so check PACKAGE and CORE hwloc_obj_t o = hwloc_get_obj_by_type(tp, HWLOC_OBJ_PACKAGE, 0); if (o != NULL) nCoresPerPkg = __kmp_hwloc_get_nobjs_under_obj(o, HWLOC_OBJ_CORE); diff --git a/openmp/runtime/src/kmp_csupport.cpp b/openmp/runtime/src/kmp_csupport.cpp --- a/openmp/runtime/src/kmp_csupport.cpp +++ b/openmp/runtime/src/kmp_csupport.cpp @@ -361,7 +361,7 @@ @param num_threads number of threads per team requested for the teams construct Set the number of teams to be used by the teams construct. The number of initial -teams cretaed will be greater than or equal to the lower bound and less than or +teams created will be greater than or equal to the lower bound and less than or equal to the upper bound. This call is only required if the teams construct has a `num_teams` clause or a `thread_limit` clause (or both). diff --git a/openmp/runtime/src/kmp_io.cpp b/openmp/runtime/src/kmp_io.cpp --- a/openmp/runtime/src/kmp_io.cpp +++ b/openmp/runtime/src/kmp_io.cpp @@ -94,7 +94,7 @@ AllocConsole(); // We do not check the result of AllocConsole because // 1. the call is harmless - // 2. it is not clear how to communicate failue + // 2. it is not clear how to communicate failure // 3. we will detect failure later when we get handle(s) ho = GetStdHandle(STD_OUTPUT_HANDLE); diff --git a/openmp/runtime/src/kmp_itt.h b/openmp/runtime/src/kmp_itt.h --- a/openmp/runtime/src/kmp_itt.h +++ b/openmp/runtime/src/kmp_itt.h @@ -195,7 +195,7 @@ // JOINING : At the start of the join. // INVOKING : Before the threads invoke microtasks. // DISPATCH_INIT: At the start of dynamically scheduled loop. -// DISPATCH_NEXT: After claming next iteration of dynamically scheduled loop. +// DISPATCH_NEXT: After claiming next iteration of dynamically scheduled loop. #define SSC_MARK_FORKING() INSERT_SSC_MARK(0xd693) #define SSC_MARK_JOINING() INSERT_SSC_MARK(0xd694) #define SSC_MARK_INVOKING() INSERT_SSC_MARK(0xd695) @@ -327,7 +327,7 @@ #else /* USE_ITT_BUILD */ // Null definitions of the synchronization tracing functions. -// If USE_ITT_BULID is not enabled, USE_ITT_NOTIFY cannot be either. +// If USE_ITT_BUILD is not enabled, USE_ITT_NOTIFY cannot be either. // By defining these we avoid unpleasant ifdef tests in many places. #define KMP_FSYNC_PREPARE(obj) ((void)0) #define KMP_FSYNC_CANCEL(obj) ((void)0) diff --git a/openmp/runtime/src/kmp_runtime.cpp b/openmp/runtime/src/kmp_runtime.cpp --- a/openmp/runtime/src/kmp_runtime.cpp +++ b/openmp/runtime/src/kmp_runtime.cpp @@ -4080,7 +4080,7 @@ } __kmp_reap_thread(root->r.r_uber_thread, 1); - // We canot put root thread to __kmp_thread_pool, so we have to reap it + // We cannot put root thread to __kmp_thread_pool, so we have to reap it // instead of freeing. root->r.r_uber_thread = NULL; /* mark root as no longer in use */ @@ -7811,7 +7811,7 @@ KMP_HNT(SetNewBound, __kmp_teams_max_nth), __kmp_msg_null); } - int num_teams = 1; // defalt number of teams is 1. + int num_teams = 1; // default number of teams is 1. if (num_teams_lb == 0 && num_teams_ub > 0) num_teams_lb = num_teams_ub; diff --git a/openmp/runtime/src/kmp_settings.cpp b/openmp/runtime/src/kmp_settings.cpp --- a/openmp/runtime/src/kmp_settings.cpp +++ b/openmp/runtime/src/kmp_settings.cpp @@ -1247,7 +1247,7 @@ if (__kmp_hidden_helper_threads_num == 0) { __kmp_enable_hidden_helper = FALSE; } else { - // Since the main thread of hidden helper team dooes not participate + // Since the main thread of hidden helper team does not participate // in tasks execution let's increment the number of threads by one // so that requested number of threads do actual job. __kmp_hidden_helper_threads_num++; diff --git a/openmp/runtime/src/kmp_tasking.cpp b/openmp/runtime/src/kmp_tasking.cpp --- a/openmp/runtime/src/kmp_tasking.cpp +++ b/openmp/runtime/src/kmp_tasking.cpp @@ -1674,7 +1674,7 @@ } #endif - // Decreament the counter of hidden helper tasks to be executed + // Decrement the counter of hidden helper tasks to be executed if (taskdata->td_flags.hidden_helper) { // Hidden helper tasks can only be executed by hidden helper threads KMP_ASSERT(KMP_HIDDEN_HELPER_THREAD(gtid)); diff --git a/openmp/runtime/src/kmp_utility.cpp b/openmp/runtime/src/kmp_utility.cpp --- a/openmp/runtime/src/kmp_utility.cpp +++ b/openmp/runtime/src/kmp_utility.cpp @@ -251,7 +251,7 @@ p->flags.hybrid = 0; if (max_arg > 7) { /* RTM bit CPUID.07:EBX, bit 11 */ - /* HYRBID bit CPUID.07:EDX, bit 15 */ + /* HYBRID bit CPUID.07:EDX, bit 15 */ __kmp_x86_cpuid(7, 0, &buf); p->flags.rtm = (buf.ebx >> 11) & 1; p->flags.hybrid = (buf.edx >> 15) & 1; diff --git a/openmp/runtime/test/affinity/libomp_test_topology.h b/openmp/runtime/test/affinity/libomp_test_topology.h --- a/openmp/runtime/test/affinity/libomp_test_topology.h +++ b/openmp/runtime/test/affinity/libomp_test_topology.h @@ -532,7 +532,7 @@ if (current_place != parent->place_nums[j]) { proc_bind_die( proc_bind, T, P, - "Thread %d's place (%d) is not corret. Expected %d\n", i, + "Thread %d's place (%d) is not correct. Expected %d\n", i, partitions[i]->current_place, parent->place_nums[j]); } count = 1; diff --git a/openmp/runtime/test/critical/omp_critical_with_hint.c b/openmp/runtime/test/critical/omp_critical_with_hint.c --- a/openmp/runtime/test/critical/omp_critical_with_hint.c +++ b/openmp/runtime/test/critical/omp_critical_with_hint.c @@ -1,5 +1,5 @@ // RUN: %libomp-compile-and-run -// critial with hint was introduced with icc 19 +// critical with hint was introduced with icc 19 // UNSUPPORTED: icc-18 #include diff --git a/openmp/runtime/test/tasking/hidden_helper_task/single_helper_thread.c b/openmp/runtime/test/tasking/hidden_helper_task/single_helper_thread.c --- a/openmp/runtime/test/tasking/hidden_helper_task/single_helper_thread.c +++ b/openmp/runtime/test/tasking/hidden_helper_task/single_helper_thread.c @@ -1,6 +1,6 @@ // RUN: %libomp-compile && env LIBOMP_NUM_HIDDEN_HELPER_THREADS=1 %libomp-run -// The test checks that "devide-by-0" bug fixed in runtime. +// The test checks that "divide-by-0" bug fixed in runtime. // The fix is to increment number of threads by 1 if positive, // so that operation // (gtid) % (__kmp_hidden_helper_threads_num - 1) diff --git a/openmp/runtime/test/worksharing/for/kmp_sch_simd_runtime_api.c b/openmp/runtime/test/worksharing/for/kmp_sch_simd_runtime_api.c --- a/openmp/runtime/test/worksharing/for/kmp_sch_simd_runtime_api.c +++ b/openmp/runtime/test/worksharing/for/kmp_sch_simd_runtime_api.c @@ -181,7 +181,7 @@ #pragma omp parallel// num_threads(num_th) run_loop(0, 26, 1, chunk); -// auto (chunk should be ignorted) +// auto (chunk should be ignored) omp_set_schedule(omp_sched_auto,0); #pragma omp parallel// num_threads(num_th) run_loop(0, 26, 1, chunk); diff --git a/openmp/runtime/tools/lib/tools.pm b/openmp/runtime/tools/lib/tools.pm --- a/openmp/runtime/tools/lib/tools.pm +++ b/openmp/runtime/tools/lib/tools.pm @@ -235,7 +235,7 @@ B -It is very simple wrapper arounf Getopt::Long::GetOptions. It passes all arguments to GetOptions, +It is very simple wrapper around Getopt::Long::GetOptions. It passes all arguments to GetOptions, and add definitions for standard help options: --help, --doc, --verbose, and --quiet. When GetOptions finishes, this subroutine checks exit code, if it is non-zero, standard error message is issued and script terminated. @@ -672,7 +672,7 @@ =item C Searches for specified executable file in the (specified) directories. -Raises a runtime eroror if no executable file found. Returns a full path of found executable(s). +Raises a runtime error if no executable file found. Returns a full path of found executable(s). Options: