Skip to content

Commit 4903492

Browse files
committed
fix docstrings
1 parent 8079666 commit 4903492

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

docs/src/index.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ You can use the reference implementation by using the `GPUArrays.JLArray` type.
1717

1818
The functions that are currently part of the interface:
1919

20-
The low level dim + idx function, with a similar naming as in CUDA (with `*` indicating `(x, y, z)`):
20+
The low level dim + idx function, with a similar naming scheme as in CUDA:
2121
```Julia
22+
# with * being either of x, y or z
2223
blockidx_*(state), blockdim_*(state), threadidx_*(state), griddim_*(state)
2324
# Known in OpenCL as:
2425
get_group_id, get_local_size, get_local_id, get_num_groups
@@ -27,7 +28,6 @@ get_group_id, get_local_size, get_local_id, get_num_groups
2728
```@docs
2829
gpu_call(f, A::GPUArray, args::Tuple, configuration = length(A))
2930
30-
3131
linear_index(state)
3232
3333
global_size(state)
@@ -36,11 +36,9 @@ global_size(state)
3636
3737
@cartesianidx(A, statesym = :state)
3838
39-
4039
synchronize_threads(state)
4140
42-
4341
device(A::AbstractArray)
44-
synchronize(A::AbstractArray)
4542
43+
synchronize(A::AbstractArray)
4644
```

0 commit comments

Comments
 (0)