Skip to content

Commit 8f94916

Browse files
authored
Merge pull request #70 from JuliaGPU/sd/documentation
documentation
2 parents 4b64961 + beb4459 commit 8f94916

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

docs/make.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ using Documenter, GPUArrays
33
makedocs()
44

55
deploydocs(
6-
deps = Deps.pip("mkdocs", "python-markdown-math"),
6+
deps = Deps.pip("mkdocs", "python-markdown-math", "mkdocs-cinder"),
77
repo = "github.com/JuliaGPU/GPUArrays.jl.git",
88
julia = "0.6",
99
osname = "linux"

docs/mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ repo_url: https://github.com/JuliaGPU/GPUArrays.jl
33
site_description: Abstract GPU Array implementation
44
site_author: JuliaGPU
55

6-
theme: readthedocs
6+
theme: cinder
77

88
extra_css:
99
- assets/Documenter.css

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
```

src/GPUArrays.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ include("testsuite/testsuite.jl")
1919
include("jlbackend.jl")
2020
include("random.jl")
2121

22-
export GPUArray, gpu_call, thread_blocks_heuristic, global_size
23-
export linear_index, @linearidx, @cartesianidx, convolution!
22+
export GPUArray, gpu_call, thread_blocks_heuristic, global_size, synchronize_threads
23+
export linear_index, @linearidx, @cartesianidx, convolution!, device, synchronize
2424

2525
end # module

0 commit comments

Comments
 (0)