Skip to content

Commit 8d3b1fa

Browse files
committed
Fix typos in the opal/ subdirectory
Found via `codespell` Signed-off-by: luz paz <luzpaz@github.com>
1 parent 877f308 commit 8d3b1fa

File tree

156 files changed

+331
-331
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

156 files changed

+331
-331
lines changed

opal/class/opal_bitmap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ OPAL_DECLSPEC int opal_bitmap_init(opal_bitmap_t *bm, int size);
8383

8484
/**
8585
* Set a bit of the bitmap. If the bit asked for is beyond the current
86-
* size of the bitmap, then the bitmap is extended to accomodate the
86+
* size of the bitmap, then the bitmap is extended to accommodate the
8787
* bit
8888
*
8989
* @param bitmap The input bitmap (IN)

opal/class/opal_cstring.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ int opal_cstring_to_int(opal_cstring_t *string, int *interp);
137137
* @retval OPAL_SUCCESS string was successfully interpreted
138138
* @retval OPAL_ERR_BAD_PARAM string was not able to be interpreted
139139
*
140-
* The string value will be cast to the boolen output in
140+
* The string value will be cast to the boolean output in
141141
* the following manner:
142142
*
143143
* - If the string value is digits, the return value is "(bool)

opal/class/opal_fifo.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* Copyright (c) 2007 Voltaire All rights reserved.
1414
* Copyright (c) 2010 IBM Corporation. All rights reserved.
1515
* Copyright (c) 2014-2018 Los Alamos National Security, LLC. All rights
16-
* reseved.
16+
* reserved.
1717
* Copyright (c) 2021 Triad National Security, LLC. All rights reserved.
1818
* Copyright (c) 2021 Google, LLC. All rights reserved.
1919
* $COPYRIGHT$
@@ -222,7 +222,7 @@ static inline opal_list_item_t *opal_fifo_pop_atomic(opal_fifo_t *fifo)
222222
/* use load-linked store-conditional to avoid ABA issues */
223223
do {
224224
if (++attempt == 5) {
225-
/* deliberatly suspend this thread to allow other threads to run. this should
225+
/* deliberately suspend this thread to allow other threads to run. this should
226226
* only occur during periods of contention on the lifo. */
227227
_opal_lifo_release_cpu();
228228
attempt = 0;

opal/class/opal_free_list.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -175,13 +175,13 @@ OPAL_DECLSPEC int opal_free_list_grow_st(opal_free_list_t *flist, size_t num_ele
175175
OPAL_DECLSPEC int opal_free_list_resize_mt(opal_free_list_t *flist, size_t size);
176176

177177
/**
178-
* Attemp to obtain an item from a free list.
178+
* Attempt to obtain an item from a free list.
179179
*
180180
* @param fl (IN) Free list.
181181
* @param item (OUT) Allocated item.
182182
*
183183
* If the requested item is not available the free list is grown to
184-
* accomodate the request - unless the max number of allocations has
184+
* accommodate the request - unless the max number of allocations has
185185
* been reached. If this is the case - a NULL pointer is returned
186186
* to the caller. This function comes in three flavor: thread safe
187187
* (opal_free_list_get_mt), single threaded (opal_free_list_get_st),
@@ -230,7 +230,7 @@ static inline opal_free_list_item_t *opal_free_list_get(opal_free_list_t *flist)
230230
* @param item (OUT) Allocated item.
231231
*
232232
* If the requested item is not available the free list is grown to
233-
* accomodate the request - unless the max number of allocations has
233+
* accommodate the request - unless the max number of allocations has
234234
* been reached. In this case the caller is blocked until an item
235235
* is returned to the list.
236236
*/
@@ -259,8 +259,8 @@ static inline opal_free_list_item_t *opal_free_list_wait_mt(opal_free_list_t *fl
259259
}
260260
}
261261
} else {
262-
/* If I wasn't able to get the lock in the begining when I finaly grab it
263-
* the one holding the lock in the begining already grow the list. I will
262+
/* If I wasn't able to get the lock in the beginning when I finally grab it
263+
* the one holding the lock in the beginning already grow the list. I will
264264
* release the lock and try to get a new element until I succeed.
265265
*/
266266
opal_mutex_lock(&fl->fl_lock);

opal/class/opal_graph.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ uint32_t opal_graph_dijkstra(opal_graph_t *graph, opal_graph_vertex_t *vertex,
627627
/* run on all the vertices of the graph */
628628
i = 0;
629629
OPAL_LIST_FOREACH (adj_list, graph->adjacency_list, opal_adjacency_list_t) {
630-
/* insert the vertices pointes to the working queue */
630+
/* insert the vertices points to the working queue */
631631
Q[i].vertex = adj_list->vertex;
632632
/**
633633
* assign an infinity distance to all the vertices in the queue
@@ -677,7 +677,7 @@ uint32_t opal_graph_dijkstra(opal_graph_t *graph, opal_graph_vertex_t *vertex,
677677

678678
/**
679679
* This graph API duplicates a graph. Note that this API does
680-
* not copy the graph but builds a new graph while coping just
680+
* not copy the graph but builds a new graph while copying just
681681
* the vertex data.
682682
*
683683
* @param dest The new created graph.

opal/class/opal_graph.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
/**
2020
* @file
2121
* The opal_graph interface is used to provide a generic graph infrastructure
22-
* to Open-MPI. The graph is represented as an adjacentcy list.
22+
* to Open-MPI. The graph is represented as an adjacency list.
2323
* The graph is a list of vertices. The graph is a weighted directional graph.
2424
* Each vertex contains a pointer to a vertex data.
2525
* This pointer can point to the structure that this vertex belongs to.
@@ -53,7 +53,7 @@ OPAL_DECLSPEC OBJ_CLASS_DECLARATION(opal_adjacency_list_t);
5353
OPAL_DECLSPEC OBJ_CLASS_DECLARATION(opal_graph_t);
5454

5555
/**
56-
* Function pointer for coping a vertex data from one vertex to
56+
* Function pointer for copying a vertex data from one vertex to
5757
* another
5858
*
5959
* @param dst The destination pointer of vertex_data
@@ -83,7 +83,7 @@ typedef void *(*opal_graph_alloc_vertex_data)(void);
8383
*@param vertex_data1
8484
*@param vertex_data2
8585
*
86-
*@return int The comparition results. 1- vertex_data1 is bigger
86+
*@return int The comparison results. 1- vertex_data1 is bigger
8787
* then vertex_data2, 0- vertex_data1 is equal to
8888
* vertex_data2 and -1- vertex_data1 is smaller the
8989
* vertex_data2.
@@ -310,7 +310,7 @@ OPAL_DECLSPEC int opal_graph_get_adjacent_vertices(opal_graph_t *graph, opal_gra
310310

311311
/**
312312
* This graph API duplicates a graph. Note that this API does
313-
* not copy the graph but builds a new graph while coping just
313+
* not copy the graph but builds a new graph while copying just
314314
* the vertices data.
315315
*
316316
* @param dest The new created graph.

opal/class/opal_hash_table.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* Sketch: [Contributed by David Linden of Hewlett-Packard]
3838
*
3939
* This has been found to be good for search and insert and
40-
* (seldom-)remove, all with probablistic O(1) time. Having a good
40+
* (seldom-)remove, all with probabilistic O(1) time. Having a good
4141
* distribution of the hash indices is important, so even if you know
4242
* the keys distribute well under a mask, that micro-optimization
4343
* isn't worth doing.
@@ -299,7 +299,7 @@ opal_hash_table_remove_elt_at(opal_hash_table_t *ht, size_t ii)
299299
/* already in place, either ideal or best-for-now */
300300
break;
301301
} else if (!elts[jj].valid) {
302-
/* move it down, and invaildate where it came from */
302+
/* move it down, and invalidate where it came from */
303303
elts[jj] = elts[ii];
304304
elts[ii].valid = 0;
305305
break;

opal/class/opal_hotel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ OBJ_CLASS_DECLARATION(opal_hotel_t);
154154
* already been ("forcibly") checked out *before* the
155155
* eviction_callback_fn is invoked.
156156
*
157-
* @return OPAL_SUCCESS if all initializations were succesful. Otherwise,
157+
* @return OPAL_SUCCESS if all initializations were successful. Otherwise,
158158
* the error indicate what went wrong in the function.
159159
*/
160160
OPAL_DECLSPEC int opal_hotel_init(opal_hotel_t *hotel, int num_rooms, opal_event_base_t *evbase,

opal/class/opal_interval_tree.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ static void opal_interval_tree_construct(opal_interval_tree_t *tree)
8787
tree->reader_count = 0;
8888
tree->epoch = 0;
8989

90-
/* set all reader epochs to UINT_MAX. this value is used to simplfy
90+
/* set all reader epochs to UINT_MAX. this value is used to simplify
9191
* checks against the current epoch. */
9292
for (int i = 0; i < OPAL_INTERVAL_TREE_MAX_READERS; ++i) {
9393
tree->reader_epochs[i] = UINT_MAX;
@@ -788,7 +788,7 @@ static opal_interval_tree_node_t *left_rotate(opal_interval_tree_t *tree,
788788

789789
rp_publish(&y->left, x_copy);
790790

791-
/* normlly we would have to check to see if we are at the root.
791+
/* normally we would have to check to see if we are at the root.
792792
* however, the root sentinal takes care of it for us */
793793
if (x == parent->left) {
794794
rp_publish(&parent->left, y);

opal/class/opal_interval_tree.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ typedef int (*opal_interval_tree_condition_fn_t)(void *);
114114
typedef int (*opal_interval_tree_action_fn_t)(uint64_t low, uint64_t high, void *data, void *ctx);
115115

116116
/*
117-
* Public function protoypes
117+
* Public function prototypes
118118
*/
119119

120120
/**
@@ -189,7 +189,7 @@ OPAL_DECLSPEC int opal_interval_tree_destroy(opal_interval_tree_t *tree);
189189
* @param tree a pointer to the tree
190190
* @param low low value of interval
191191
* @param high high value of interval
192-
* @param partial_ok traverse nodes that parially overlap the given range
192+
* @param partial_ok traverse nodes that partially overlap the given range
193193
* @param action a pointer to the action function
194194
* @param ctx context to pass to action function
195195
*
@@ -205,7 +205,7 @@ OPAL_DECLSPEC int opal_interval_tree_traverse(opal_interval_tree_t *tree, uint64
205205
*
206206
* @param tree a pointer to the tree data structure
207207
*
208-
* @retval int the nuber of items on the tree
208+
* @retval int the number of items on the tree
209209
*/
210210
OPAL_DECLSPEC size_t opal_interval_tree_size(opal_interval_tree_t *tree);
211211

0 commit comments

Comments
 (0)