Skip to content

Commit 229b9a8

Browse files
author
cuda-python-bot
committed
Deploy latest docs: bfd3ecb
1 parent b01fb60 commit 229b9a8

File tree

4 files changed

+25
-25
lines changed

4 files changed

+25
-25
lines changed

docs/cuda-bindings/jupyter_execute/overview.ipynb

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5-
"id": "21df139c",
5+
"id": "abc7b7a6",
66
"metadata": {},
77
"source": [
88
"# Overview\n",
@@ -50,7 +50,7 @@
5050
{
5151
"cell_type": "code",
5252
"execution_count": 1,
53-
"id": "cbc9440b",
53+
"id": "a45ab7b5",
5454
"metadata": {},
5555
"outputs": [],
5656
"source": [
@@ -60,7 +60,7 @@
6060
},
6161
{
6262
"cell_type": "markdown",
63-
"id": "1252e44f",
63+
"id": "2269a95b",
6464
"metadata": {},
6565
"source": [
6666
"Error checking is a fundamental best practice in code development and a code\n",
@@ -72,7 +72,7 @@
7272
{
7373
"cell_type": "code",
7474
"execution_count": 2,
75-
"id": "f2567e98",
75+
"id": "a1ac4893",
7676
"metadata": {},
7777
"outputs": [],
7878
"source": [
@@ -98,7 +98,7 @@
9898
},
9999
{
100100
"cell_type": "markdown",
101-
"id": "ddb35620",
101+
"id": "9ae3b5de",
102102
"metadata": {},
103103
"source": [
104104
"It’s common practice to write CUDA kernels near the top of a translation unit,\n",
@@ -112,7 +112,7 @@
112112
{
113113
"cell_type": "code",
114114
"execution_count": 3,
115-
"id": "f7f41840",
115+
"id": "3768e9cd",
116116
"metadata": {},
117117
"outputs": [],
118118
"source": [
@@ -130,7 +130,7 @@
130130
},
131131
{
132132
"cell_type": "markdown",
133-
"id": "902254ea",
133+
"id": "786fedaa",
134134
"metadata": {},
135135
"source": [
136136
"Go ahead and compile the kernel into PTX. Remember that this is executed at runtime using NVRTC. There are three basic steps to NVRTC:\n",
@@ -147,7 +147,7 @@
147147
{
148148
"cell_type": "code",
149149
"execution_count": 4,
150-
"id": "1bea9665",
150+
"id": "2f7fd031",
151151
"metadata": {},
152152
"outputs": [],
153153
"source": [
@@ -177,7 +177,7 @@
177177
},
178178
{
179179
"cell_type": "markdown",
180-
"id": "82b2efa5",
180+
"id": "130273c4",
181181
"metadata": {},
182182
"source": [
183183
"Before you can use the PTX or do any work on the GPU, you must create a CUDA\n",
@@ -189,7 +189,7 @@
189189
{
190190
"cell_type": "code",
191191
"execution_count": 5,
192-
"id": "1f5e8267",
192+
"id": "c907425c",
193193
"metadata": {},
194194
"outputs": [],
195195
"source": [
@@ -199,7 +199,7 @@
199199
},
200200
{
201201
"cell_type": "markdown",
202-
"id": "f08fe571",
202+
"id": "729d7c5f",
203203
"metadata": {},
204204
"source": [
205205
"With a CUDA context created on device 0, load the PTX generated earlier into a\n",
@@ -211,7 +211,7 @@
211211
{
212212
"cell_type": "code",
213213
"execution_count": 6,
214-
"id": "9e8bb8c6",
214+
"id": "186e1896",
215215
"metadata": {},
216216
"outputs": [],
217217
"source": [
@@ -224,7 +224,7 @@
224224
},
225225
{
226226
"cell_type": "markdown",
227-
"id": "8e565ad1",
227+
"id": "3d1a73cb",
228228
"metadata": {},
229229
"source": [
230230
"Next, get all your data prepared and transferred to the GPU. For increased\n",
@@ -236,7 +236,7 @@
236236
{
237237
"cell_type": "code",
238238
"execution_count": 7,
239-
"id": "d94566ab",
239+
"id": "ecd08144",
240240
"metadata": {},
241241
"outputs": [],
242242
"source": [
@@ -254,7 +254,7 @@
254254
},
255255
{
256256
"cell_type": "markdown",
257-
"id": "0e6a048f",
257+
"id": "863e2c5b",
258258
"metadata": {},
259259
"source": [
260260
"With the input data `a`, `x`, and `y` created for the SAXPY transform device,\n",
@@ -271,7 +271,7 @@
271271
{
272272
"cell_type": "code",
273273
"execution_count": 8,
274-
"id": "0da58965",
274+
"id": "17fe89f6",
275275
"metadata": {},
276276
"outputs": [],
277277
"source": [
@@ -291,7 +291,7 @@
291291
},
292292
{
293293
"cell_type": "markdown",
294-
"id": "a19277c7",
294+
"id": "b69a8112",
295295
"metadata": {},
296296
"source": [
297297
"With data prep and resources allocation finished, the kernel is ready to be\n",
@@ -308,7 +308,7 @@
308308
{
309309
"cell_type": "code",
310310
"execution_count": 9,
311-
"id": "7cee3931",
311+
"id": "fc7932ce",
312312
"metadata": {},
313313
"outputs": [],
314314
"source": [
@@ -324,7 +324,7 @@
324324
},
325325
{
326326
"cell_type": "markdown",
327-
"id": "5038c1a3",
327+
"id": "cfebc8d4",
328328
"metadata": {},
329329
"source": [
330330
"Now the kernel can be launched:"
@@ -333,7 +333,7 @@
333333
{
334334
"cell_type": "code",
335335
"execution_count": 10,
336-
"id": "b51996bb",
336+
"id": "5b1d5d50",
337337
"metadata": {},
338338
"outputs": [],
339339
"source": [
@@ -359,7 +359,7 @@
359359
},
360360
{
361361
"cell_type": "markdown",
362-
"id": "9ee0c808",
362+
"id": "00f32880",
363363
"metadata": {},
364364
"source": [
365365
"The `cuLaunchKernel` function takes the compiled module kernel and execution\n",
@@ -374,7 +374,7 @@
374374
{
375375
"cell_type": "code",
376376
"execution_count": 11,
377-
"id": "85614dc2",
377+
"id": "1acd6f10",
378378
"metadata": {},
379379
"outputs": [],
380380
"source": [
@@ -386,7 +386,7 @@
386386
},
387387
{
388388
"cell_type": "markdown",
389-
"id": "427e1d0d",
389+
"id": "1d34707b",
390390
"metadata": {},
391391
"source": [
392392
"Perform verification of the data to ensure correctness and finish the code with\n",
@@ -396,7 +396,7 @@
396396
{
397397
"cell_type": "code",
398398
"execution_count": 12,
399-
"id": "f71ec922",
399+
"id": "d969f74b",
400400
"metadata": {},
401401
"outputs": [],
402402
"source": [
@@ -410,7 +410,7 @@
410410
},
411411
{
412412
"cell_type": "markdown",
413-
"id": "f46aa461",
413+
"id": "f38d615a",
414414
"metadata": {},
415415
"source": [
416416
"## Performance\n",
Binary file not shown.
Binary file not shown.
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)