Skip to content

Commit 5e3d31b

Browse files
authored
Merge pull request #766 from JuliaGPU/tb/docs
Docs on multitasking
2 parents 6655772 + d9cd01d commit 5e3d31b

File tree

15 files changed

+306
-86
lines changed

15 files changed

+306
-86
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Preview Pages Cleanup
2+
3+
on:
4+
pull_request:
5+
types: [closed]
6+
7+
jobs:
8+
doc-preview-cleanup:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout gh-pages branch
12+
uses: actions/checkout@v2
13+
with:
14+
ref: gh-pages
15+
16+
- name: Delete preview and history
17+
run: |
18+
git config user.name "Documenter.jl"
19+
git config user.email "documenter@juliadocs.github.io"
20+
git rm -rf "previews/PR$PRNUM"
21+
git commit -m "delete preview"
22+
git branch gh-pages-new $(echo "delete history" | git commit-tree HEAD^{tree})
23+
env:
24+
PRNUM: ${{ github.event.number }}
25+
26+
- name: Push changes
27+
run: |
28+
git push --force origin gh-pages-new:gh-pages

docs/Manifest.toml

Lines changed: 62 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
# This file is machine-generated - editing it directly is not advised
22

3+
[[ArgTools]]
4+
uuid = "0dad84c5-d112-42e6-8d28-ef12dabb789f"
5+
6+
[[Artifacts]]
7+
uuid = "56f22d72-fd6d-98f1-02f0-08ddc0907c33"
8+
39
[[Base64]]
410
uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
511

612
[[Dates]]
713
deps = ["Printf"]
814
uuid = "ade2ca70-3891-5945-98fb-dc099432e06a"
915

10-
[[Distributed]]
11-
deps = ["Random", "Serialization", "Sockets"]
12-
uuid = "8ba89e20-285c-5b6f-9357-94700520ee1b"
13-
1416
[[DocStringExtensions]]
1517
deps = ["LibGit2", "Markdown", "Pkg", "Test"]
1618
git-tree-sha1 = "50ddf44c53698f5e784bbebb3f4b21c5807401b1"
@@ -19,11 +21,13 @@ version = "0.8.3"
1921

2022
[[Documenter]]
2123
deps = ["Base64", "Dates", "DocStringExtensions", "IOCapture", "InteractiveUtils", "JSON", "LibGit2", "Logging", "Markdown", "REPL", "Test", "Unicode"]
22-
git-tree-sha1 = "555047fe38d9d2102a65bb869c484bf78e60a24e"
23-
repo-rev = "d046f46ed414ef295b39ec88e68819d81f5c9410"
24-
repo-url = "https://github.com/JuliaDocs/Documenter.jl.git"
24+
git-tree-sha1 = "3ebb967819b284dc1e3c0422229b58a40a255649"
2525
uuid = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
26-
version = "0.25.3"
26+
version = "0.26.3"
27+
28+
[[Downloads]]
29+
deps = ["ArgTools", "LibCURL", "NetworkOptions"]
30+
uuid = "f43a241f-c20a-4ad4-852c-f6b1247861c6"
2731

2832
[[IOCapture]]
2933
deps = ["Logging"]
@@ -41,18 +45,30 @@ git-tree-sha1 = "81690084b6198a2e1da36fcfda16eeca9f9f24e4"
4145
uuid = "682c06a0-de6a-54ab-a142-c8b1cf79cde6"
4246
version = "0.21.1"
4347

48+
[[LibCURL]]
49+
deps = ["LibCURL_jll", "MozillaCACerts_jll"]
50+
uuid = "b27032c2-a3e7-50c8-80cd-2d36dbcbfd21"
51+
52+
[[LibCURL_jll]]
53+
deps = ["Artifacts", "LibSSH2_jll", "Libdl", "MbedTLS_jll", "Zlib_jll", "nghttp2_jll"]
54+
uuid = "deac9b47-8bc7-5906-a0fe-35ac56dc84c0"
55+
4456
[[LibGit2]]
45-
deps = ["Printf"]
57+
deps = ["Base64", "NetworkOptions", "Printf", "SHA"]
4658
uuid = "76f85450-5226-5b5a-8eaa-529ad045b433"
4759

60+
[[LibSSH2_jll]]
61+
deps = ["Artifacts", "Libdl", "MbedTLS_jll"]
62+
uuid = "29816b5a-b9ab-546f-933c-edad1886dfa8"
63+
4864
[[Libdl]]
4965
uuid = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
5066

5167
[[Literate]]
5268
deps = ["Base64", "JSON", "REPL"]
53-
git-tree-sha1 = "7f289e9db7a93d30b9a44af4a8ae9cf92af74683"
69+
git-tree-sha1 = "32b517d4d8219d3bbab199de3416ace45010bdb3"
5470
uuid = "98b081ad-f1c9-55d3-8b20-4c87d4299306"
55-
version = "2.7.0"
71+
version = "2.8.0"
5672

5773
[[Logging]]
5874
uuid = "56ddb016-857b-54e1-b83d-db4d58db5568"
@@ -61,25 +77,35 @@ uuid = "56ddb016-857b-54e1-b83d-db4d58db5568"
6177
deps = ["Base64"]
6278
uuid = "d6f4376e-aef5-505a-96c1-9c027394607a"
6379

80+
[[MbedTLS_jll]]
81+
deps = ["Artifacts", "Libdl"]
82+
uuid = "c8ffd9c3-330d-5841-b78e-0817d7145fa1"
83+
6484
[[Mmap]]
6585
uuid = "a63ad114-7e13-5084-954f-fe012c677804"
6686

87+
[[MozillaCACerts_jll]]
88+
uuid = "14a3606d-f60d-562e-9121-12d972cd8159"
89+
90+
[[NetworkOptions]]
91+
uuid = "ca575930-c2e3-43a9-ace4-1e988b2c1908"
92+
6793
[[Parsers]]
6894
deps = ["Dates"]
69-
git-tree-sha1 = "6fa4202675c05ba0f8268a6ddf07606350eda3ce"
95+
git-tree-sha1 = "223a825cccef2228f3fdbf2ecc7ca93363059073"
7096
uuid = "69de0a69-1ddd-5017-9359-2bf0b02dc9f0"
71-
version = "1.0.11"
97+
version = "1.0.16"
7298

7399
[[Pkg]]
74-
deps = ["Dates", "LibGit2", "Libdl", "Logging", "Markdown", "Printf", "REPL", "Random", "SHA", "UUIDs"]
100+
deps = ["Artifacts", "Dates", "Downloads", "LibGit2", "Libdl", "Logging", "Markdown", "Printf", "REPL", "Random", "SHA", "Serialization", "TOML", "Tar", "UUIDs", "p7zip_jll"]
75101
uuid = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
76102

77103
[[Printf]]
78104
deps = ["Unicode"]
79105
uuid = "de0858da-6303-5e67-8744-51eddeeeb8d7"
80106

81107
[[REPL]]
82-
deps = ["InteractiveUtils", "Markdown", "Sockets"]
108+
deps = ["InteractiveUtils", "Markdown", "Sockets", "Unicode"]
83109
uuid = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb"
84110

85111
[[Random]]
@@ -95,8 +121,16 @@ uuid = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
95121
[[Sockets]]
96122
uuid = "6462fe0b-24de-5631-8697-dd941f90decc"
97123

124+
[[TOML]]
125+
deps = ["Dates"]
126+
uuid = "fa267f1f-6049-4f14-aa54-33bafae1ed76"
127+
128+
[[Tar]]
129+
deps = ["ArgTools", "SHA"]
130+
uuid = "a4e569a6-e804-4fa4-b0f3-eef7a1d5b13e"
131+
98132
[[Test]]
99-
deps = ["Distributed", "InteractiveUtils", "Logging", "Random"]
133+
deps = ["InteractiveUtils", "Logging", "Random", "Serialization"]
100134
uuid = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
101135

102136
[[UUIDs]]
@@ -105,3 +139,15 @@ uuid = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
105139

106140
[[Unicode]]
107141
uuid = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"
142+
143+
[[Zlib_jll]]
144+
deps = ["Libdl"]
145+
uuid = "83775a58-1f1d-513f-b197-d71354ab007a"
146+
147+
[[nghttp2_jll]]
148+
deps = ["Artifacts", "Libdl"]
149+
uuid = "8e850ede-7688-5339-a07c-302acd2aaf8d"
150+
151+
[[p7zip_jll]]
152+
deps = ["Artifacts", "Libdl"]
153+
uuid = "3f19e933-33d8-53b3-aaab-bd5110c3b7a0"

docs/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ Markdown = "d6f4376e-aef5-505a-96c1-9c027394607a"
55
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
66

77
[compat]
8-
Documenter = "0.25"
8+
Documenter = "0.26"
99
Literate = "2.2"

docs/make.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ function main()
4444
"usage/workflow.md",
4545
"usage/array.md",
4646
"usage/memory.md",
47+
"usage/multitasking.md",
4748
"usage/multigpu.md",
4849
],
4950
"Development" => Any[

docs/src/index.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# CUDA programming in Julia
22

3-
The CUDA.jl package is the main entrypoint for for programming NVIDIA GPUs using CUDA. The
4-
package makes it possible to do so at various abstraction levels, from easy-to-use arrays
5-
down to hand-written kernels using low-level CUDA APIs.
3+
The CUDA.jl package is the main entrypoint for programming NVIDIA GPUs in Julia. The package
4+
makes it possible to do so at various abstraction levels, from easy-to-use arrays down to
5+
hand-written kernels using low-level CUDA APIs.
66

77
If you have any questions, please feel free to use the `#gpu` channel on the [Julia
88
slack](https://julialang.slack.com/), or the [GPU domain of the Julia
@@ -11,22 +11,24 @@ Discourse](https://discourse.julialang.org/c/domain/gpu).
1111

1212
## Quick Start
1313

14-
The Julia CUDA stack requires a functional CUDA-setup, which includes both a driver and
15-
matching toolkit. Once you've set that up, continue by installing the CUDA.jl package:
14+
The Julia CUDA stack only requires a working NVIDIA driver; you don't need to install the
15+
entire CUDA toolkit, as it will automatically be downloaded when you first use the package:
1616

1717
```julia
18+
# install the package
1819
using Pkg
1920
Pkg.add("CUDA")
21+
22+
# smoke test (this will download the CUDA toolkit)
23+
using CUDA
24+
CUDA.versioninfo()
2025
```
2126

22-
To make sure everything works as expected, try to load the package and if you have the time
23-
execute its test suite:
27+
If you want to ensure everything works as expected, you can execute the test suite:
2428

2529
```julia
26-
using CUDA
27-
2830
using Pkg
29-
Pkg.test("CUDA")
31+
Pkg.test("CUDA") # takes ~40 minutes if using 1 thread
3032
```
3133

3234
For more details on the installation process, consult the [Installation](@ref

docs/src/installation/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ for maximum ease-of-use:
197197
```
198198
$ docker run --rm -it --gpus=all nvcr.io/hpc/julia:v1.2.0
199199
200-
julia> using CuArrays
200+
julia> using CUDA
201201
```
202202

203203
Note that the current version of this image is woefully outdated, but you can find the

docs/src/lib/driver.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ CuContext
4949
CUDA.unsafe_destroy!(::CuContext)
5050
CuCurrentContext
5151
activate(::CuContext)
52-
synchronize()
52+
synchronize_all
5353
```
5454

5555
### Primary Context Management

0 commit comments

Comments
 (0)