Skip to content

Commit

Permalink
Some text fixess
Browse files Browse the repository at this point in the history
  • Loading branch information
roflmaostc committed Dec 1, 2023
1 parent f53e93f commit 4f5b406
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/src/examples/atomix.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ img[35:45, 35:45] .= 2;
out = Array(index_fun(CuArray(img), backend=CUDABackend()));
simshow(out)
```
In principle, this kernel just the values of the pixels along the first dimension.
However, the different `out[k, i]` are accessed by each of the kernels multiple times, so racing conditions happen.
In principle, this kernel just smears the values of the pixels along the first dimension.
However, the different `out[k, i]` are accessed by each of the kernels multiple times, so racing conditions happen that some
kernels access old results or overwrite new results.

The resulting image has artifacts.

Expand Down

0 comments on commit 4f5b406

Please sign in to comment.