summaryrefslogtreecommitdiffstats
path: root/openmp/offload/src
diff options
context:
space:
mode:
Diffstat (limited to 'openmp/offload/src')
-rw-r--r--openmp/offload/src/cean_util.cpp2
-rw-r--r--openmp/offload/src/cean_util.h4
-rw-r--r--openmp/offload/src/coi/coi_client.h2
-rw-r--r--openmp/offload/src/coi/coi_server.h2
-rw-r--r--openmp/offload/src/compiler_if_host.cpp2
-rw-r--r--openmp/offload/src/offload_engine.h2
-rw-r--r--openmp/offload/src/offload_env.cpp4
-rw-r--r--openmp/offload/src/offload_host.cpp38
-rw-r--r--openmp/offload/src/offload_host.h2
9 files changed, 29 insertions, 29 deletions
diff --git a/openmp/offload/src/cean_util.cpp b/openmp/offload/src/cean_util.cpp
index d307cc5567a..fe1890b718b 100644
--- a/openmp/offload/src/cean_util.cpp
+++ b/openmp/offload/src/cean_util.cpp
@@ -60,7 +60,7 @@ CeanReadRanges * init_read_ranges_arr_desc(const arr_desc *ap)
return res;
}
-// check if ranges described by 1 argument could be transfered into ranges
+// check if ranges described by 1 argument could be transferred into ranges
// described by 2-nd one
bool cean_ranges_match(
CeanReadRanges * read_rng1,
diff --git a/openmp/offload/src/cean_util.h b/openmp/offload/src/cean_util.h
index dfc74dd20e7..0eb1f53cf68 100644
--- a/openmp/offload/src/cean_util.h
+++ b/openmp/offload/src/cean_util.h
@@ -60,7 +60,7 @@ bool is_arr_desc_contiguous(const arr_desc *ap);
// to read consequently contiguous ranges described by "ap" argument
CeanReadRanges * init_read_ranges_arr_desc(const arr_desc *ap);
-// check if ranges described by 1 argument could be transfered into ranges
+// check if ranges described by 1 argument could be transferred into ranges
// described by 2-nd one
bool cean_ranges_match(
CeanReadRanges * read_rng1,
@@ -75,7 +75,7 @@ bool get_next_range(
int64_t *offset
);
-// returns number of transfered bytes
+// returns number of transferred bytes
int64_t cean_get_transf_size(CeanReadRanges * read_rng);
#if OFFLOAD_DEBUG > 0
diff --git a/openmp/offload/src/coi/coi_client.h b/openmp/offload/src/coi/coi_client.h
index 203c663f754..4775a8bd056 100644
--- a/openmp/offload/src/coi/coi_client.h
+++ b/openmp/offload/src/coi/coi_client.h
@@ -8,7 +8,7 @@
//===----------------------------------------------------------------------===//
-// The interface betwen offload library and the COI API on the host
+// The interface between offload library and the COI API on the host
#ifndef COI_CLIENT_H_INCLUDED
#define COI_CLIENT_H_INCLUDED
diff --git a/openmp/offload/src/coi/coi_server.h b/openmp/offload/src/coi/coi_server.h
index b552057d332..e744d9e752a 100644
--- a/openmp/offload/src/coi/coi_server.h
+++ b/openmp/offload/src/coi/coi_server.h
@@ -8,7 +8,7 @@
//===----------------------------------------------------------------------===//
-//The interface betwen offload library and the COI API on the target.
+//The interface between offload library and the COI API on the target.
#ifndef COI_SERVER_H_INCLUDED
#define COI_SERVER_H_INCLUDED
diff --git a/openmp/offload/src/compiler_if_host.cpp b/openmp/offload/src/compiler_if_host.cpp
index aa4902c1dad..2bc430b32c2 100644
--- a/openmp/offload/src/compiler_if_host.cpp
+++ b/openmp/offload/src/compiler_if_host.cpp
@@ -52,7 +52,7 @@ extern "C" OFFLOAD OFFLOAD_TARGET_ACQUIRE(
OFFLOAD_TIMER_START(timer_data, c_offload_host_initialize);
- // initalize all devices is init_type is on_offload_all
+ // initialize all devices is init_type is on_offload_all
if (retval && __offload_init_type == c_init_on_offload_all) {
for (int i = 0; i < mic_engines_total; i++) {
mic_engines[i].init();
diff --git a/openmp/offload/src/offload_engine.h b/openmp/offload/src/offload_engine.h
index 73872b75bd6..d1a96313018 100644
--- a/openmp/offload/src/offload_engine.h
+++ b/openmp/offload/src/offload_engine.h
@@ -214,7 +214,7 @@ struct PersistData
{
stack_ptr_data = new PtrData(0, size);
}
- // 1-st key value - begining of the stack at CPU
+ // 1-st key value - beginning of the stack at CPU
const void * stack_cpu_addr;
// 2-nd key value - identifier of routine invocation at CPU
uint64_t routine_id;
diff --git a/openmp/offload/src/offload_env.cpp b/openmp/offload/src/offload_env.cpp
index 02170c03ee4..d037338c73a 100644
--- a/openmp/offload/src/offload_env.cpp
+++ b/openmp/offload/src/offload_env.cpp
@@ -126,7 +126,7 @@ void MicEnvVar::add_env_var(
else {
card = get_card(card_number);
if (!card) {
- // definition for new card occured
+ // definition for new card occurred
card = new CardEnvVars(card_number);
card_spec_list.push_back(card);
}
@@ -299,7 +299,7 @@ void MicEnvVar::mic_parse_env_var_list(
// Collect all definitions for the card with number "card_num".
// The returned result is vector of string pointers defining one
// environment variable. The vector is terminated by NULL pointer.
-// In the begining of the vector there are env vars defined as
+// In the beginning of the vector there are env vars defined as
// <mic-prefix>_<card-number>_<var>=<value>
// or
// <mic-prefix>_<card-number>_ENV=<env-vars>
diff --git a/openmp/offload/src/offload_host.cpp b/openmp/offload/src/offload_host.cpp
index 55edbd50f99..38d5139212b 100644
--- a/openmp/offload/src/offload_host.cpp
+++ b/openmp/offload/src/offload_host.cpp
@@ -2290,7 +2290,7 @@ bool OffloadDescriptor::is_signaled()
// Send pointer data if source or destination or both of them are
// noncontiguous. There is guarantee that length of destination enough for
-// transfered data.
+// transferred data.
bool OffloadDescriptor::send_noncontiguous_pointer_data(
int i,
PtrData* src_data,
@@ -2915,10 +2915,10 @@ bool OffloadDescriptor::compute()
return true;
}
-// recieve pointer data if source or destination or both of them are
+// receive pointer data if source or destination or both of them are
// noncontiguous. There is guarantee that length of destination enough for
-// transfered data.
-bool OffloadDescriptor::recieve_noncontiguous_pointer_data(
+// transferred data.
+bool OffloadDescriptor::receive_noncontiguous_pointer_data(
int i,
char* base,
COIBUFFER dst_buf,
@@ -2928,7 +2928,7 @@ bool OffloadDescriptor::recieve_noncontiguous_pointer_data(
int64_t offset_src, offset_dst;
int64_t length_src, length_dst;
int64_t length_src_cur, length_dst_cur;
- int64_t recieve_size, data_recieved = 0;
+ int64_t receive_size, data_received = 0;
COIRESULT res;
bool dst_is_empty = true;
bool src_is_empty = true;
@@ -2939,10 +2939,10 @@ bool OffloadDescriptor::recieve_noncontiguous_pointer_data(
length_dst = !m_vars[i].into ? length_src :
(m_vars_extra[i].read_rng_dst) ?
m_vars_extra[i].read_rng_dst->range_size : m_vars[i].size;
- recieve_size = (length_src < length_dst) ? length_src : length_dst;
+ receive_size = (length_src < length_dst) ? length_src : length_dst;
// consequently get contiguous ranges,
- // define corresponded destination offset and recieve data
+ // define corresponded destination offset and receive data
do {
// get sorce offset
if (src_is_empty) {
@@ -2953,7 +2953,7 @@ bool OffloadDescriptor::recieve_noncontiguous_pointer_data(
break;
}
}
- else if (data_recieved == 0) {
+ else if (data_received == 0) {
offset_src = 0;
}
else {
@@ -2964,9 +2964,9 @@ bool OffloadDescriptor::recieve_noncontiguous_pointer_data(
else {
// if source is contiguous or its contiguous range is greater
// than destination one
- offset_src += recieve_size;
+ offset_src += receive_size;
}
- length_src_cur -= recieve_size;
+ length_src_cur -= receive_size;
src_is_empty = length_src_cur == 0;
// get destination offset
@@ -2995,9 +2995,9 @@ bool OffloadDescriptor::recieve_noncontiguous_pointer_data(
else {
// if destination is contiguous or its contiguous range is greater
// than source one
- offset_dst += recieve_size;
+ offset_dst += receive_size;
}
- length_dst_cur -= recieve_size;
+ length_dst_cur -= receive_size;
dst_is_empty = length_dst_cur == 0;
if (dst_buf != 0) {
@@ -3008,7 +3008,7 @@ bool OffloadDescriptor::recieve_noncontiguous_pointer_data(
m_vars[i].offset + offset_src +
m_vars[i].mic_offset -
m_vars_extra[i].src_data->alloc_disp,
- recieve_size,
+ receive_size,
COI_COPY_UNSPECIFIED,
m_in_deps_total,
m_in_deps_total > 0 ? m_in_deps : 0,
@@ -3028,7 +3028,7 @@ bool OffloadDescriptor::recieve_noncontiguous_pointer_data(
m_vars[i].mic_offset -
m_vars_extra[i].src_data->alloc_disp,
base + offset_dst,
- recieve_size,
+ receive_size,
COI_COPY_UNSPECIFIED,
m_in_deps_total,
m_in_deps_total > 0 ? m_in_deps : 0,
@@ -3041,7 +3041,7 @@ bool OffloadDescriptor::recieve_noncontiguous_pointer_data(
report_coi_error(c_buf_read, res);
}
}
- data_recieved += recieve_size;
+ data_received += receive_size;
}
while (true);
return true;
@@ -3095,7 +3095,7 @@ bool OffloadDescriptor::receive_pointer_data(bool is_async)
if (m_vars[i].flags.is_noncont_src ||
m_vars[i].flags.is_noncont_dst) {
- recieve_noncontiguous_pointer_data(
+ receive_noncontiguous_pointer_data(
i, base, dst_buf, event);
}
else if (dst_buf != 0) {
@@ -3209,7 +3209,7 @@ bool OffloadDescriptor::receive_pointer_data(bool is_async)
if (m_vars[i].flags.is_noncont_src ||
m_vars[i].flags.is_noncont_dst) {
- recieve_noncontiguous_pointer_data(
+ receive_noncontiguous_pointer_data(
i, base, dst_buf, event);
}
else if (dst_buf != 0) {
@@ -3513,7 +3513,7 @@ bool OffloadDescriptor::gen_var_descs_for_pointer_array(int i)
ap = static_cast<const arr_desc*>(vd3->ptr_array);
- // "pointers_number" for total number of transfered pointers.
+ // "pointers_number" for total number of transferred pointers.
// For each of them we create new var_desc and put it at the bottom
// of the var_desc's array
get_arr_desc_numbers(ap, sizeof(void *), ptr.offset, ptr.size,
@@ -4241,7 +4241,7 @@ extern "C" void __offload_register_image(const void *target_image)
case ET_DYN:
// Registration code for libraries is called from the DllMain
- // context (on windows) and thus we cannot do anything usefull
+ // context (on windows) and thus we cannot do anything useful
// here. So we just add it to the list of pending libraries for
// the later use.
__target_libs_lock.lock();
diff --git a/openmp/offload/src/offload_host.h b/openmp/offload/src/offload_host.h
index 4c489070849..ea2399635de 100644
--- a/openmp/offload/src/offload_host.h
+++ b/openmp/offload/src/offload_host.h
@@ -107,7 +107,7 @@ private:
PtrData* src_buf,
PtrData* dst_buf,
COIEVENT *event);
- bool recieve_noncontiguous_pointer_data(
+ bool receive_noncontiguous_pointer_data(
int i,
char* src_data,
COIBUFFER dst_buf,
OpenPOWER on IntegriCloud