Skip to content

Commit 92a6de6

Browse files
committed
added the codespell hook and fixed spelling
1 parent 26e0c98 commit 92a6de6

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,8 @@ repos:
3232
rev: v0.6.13
3333
hooks:
3434
- id: cmake-format
35+
36+
- repo: https://github.com/codespell-project/codespell
37+
rev: v2.2.4
38+
hooks:
39+
- id: codespell

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,12 @@ In this way, many of the technical details related to the parallel execution of
8181
### Namespaces
8282
8383
General namespace used in the library is `dr::`
84-
For program using a single node with shared memory available for multiple CPUs and one or more GPUs, data structures and algoritms from `dr::shp::` namespace are provided.
84+
For program using a single node with shared memory available for multiple CPUs and one or more GPUs, data structures and algorithms from `dr::shp::` namespace are provided.
8585
For distributed memory model, use the `dr::mhp::` namespace.
8686
8787
### Data structures
8888
89-
Content of distributes-ranges' data structures is distributed over available nodes. For example, segments of `dr::mhp::distributed_vector` are located in memory of different nodes (mpi processes). Still, global view of the `distributed_vector` is uniform, with contigous indices.
89+
Content of distributes-ranges' data structures is distributed over available nodes. For example, segments of `dr::mhp::distributed_vector` are located in memory of different nodes (mpi processes). Still, global view of the `distributed_vector` is uniform, with contiguous indices.
9090
<!-- TODO: some pictures here -->
9191
9292
#### Halo concept
@@ -97,7 +97,7 @@ To support this situation, the concept of halo was introduced. A halo is an area
9797
9898
### Algorithms
9999
100-
Follwing algorithms are included in distributed-ranges, both in mhp and shp versions:
100+
Following algorithms are included in distributed-ranges, both in mhp and shp versions:
101101
102102
```cpp
103103
copy()
@@ -121,7 +121,7 @@ The examples should be compiled with SYCL compiler and run with.
121121
mpirun -n N ./build/src/example_name
122122
```
123123

124-
where `N` - number of MPI processes. Replace _example_name_ with appropiate name of a file tu run.
124+
where `N` - number of MPI processes. Replace _example_name_ with appropriate name of a file tu run.
125125

126126
### Example 1
127127

@@ -140,7 +140,7 @@ The example shows the distributed nature of dr data structures. The distributed_
140140

141141
[./src/example3.cpp](src/example3.cpp)
142142

143-
The example simulates the elementary 1-d cellular automaton (ECA). Description of what the automaton is and how it works can be found in [wikipedia](https://en.wikipedia.org/wiki/Elementary_cellular_automaton). Visulisation of the automaton work is available in [ASU team webpage](https://elife-asu.github.io/wss-modules/modules/1-1d-cellular-automata).
143+
The example simulates the elementary 1-d cellular automaton (ECA). Description of what the automaton is and how it works can be found in [wikipedia](https://en.wikipedia.org/wiki/Elementary_cellular_automaton). Visualisation of the automaton work is available in [ASU team webpage](https://elife-asu.github.io/wss-modules/modules/1-1d-cellular-automata).
144144

145145
The ECA calculates the new value of a cell using old value of the cell and old values of the cell's neighbors. Therefore a halo of 1-cell width is used, to get access to neighboring cells' values when the loop eaches end of local segment of a vector.
146146
Additionally, a use of a subrange is presented, and `transform()` function, which puts transformed values of input structure to the output structure, element by element. The transforming function is given as lambda `newvalue`.

src/example2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ int main(int argc, char **argv) {
1212
mhp::init(sycl::default_selector_v);
1313

1414
fmt::print(
15-
"Hello, World! Distributed ranges proces is running on rank {} / {} on "
15+
"Hello, World! Distributed ranges process is running on rank {} / {} on "
1616
"host {}\n",
1717
mhp::rank(), mhp::nprocs(), mhp::hostname());
1818

src/example3.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace mhp = dr::mhp;
1010
/* The example simulates the elementary 1-d cellular automaton. Description of
1111
* what the automaton is and how it works can be found at
1212
* https://en.wikipedia.org/wiki/Elementary_cellular_automaton
13-
* Visulisation of the automaton work is available
13+
* Visualisation of the automaton work is available
1414
* https://elife-asu.github.io/wss-modules/modules/1-1d-cellular-automata
1515
* (credit: Emergence team @ Arizona State University)*/
1616

0 commit comments

Comments
 (0)