Skip to content

Commit

Permalink
Deploy latest docs: 57a710a
Browse files Browse the repository at this point in the history
  • Loading branch information
cuda-python-bot committed Jan 12, 2025
1 parent 896ba8b commit 8d80860
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions docs/cuda-bindings/jupyter_execute/overview.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
"id": "a16d0ef4",
"id": "c75d1026",
"metadata": {},
"source": [
"# Overview\n",
Expand Down Expand Up @@ -50,7 +50,7 @@
{
"cell_type": "code",
"execution_count": 1,
"id": "43b88e17",
"id": "868cf132",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -60,7 +60,7 @@
},
{
"cell_type": "markdown",
"id": "09acb1b1",
"id": "c998ffe0",
"metadata": {},
"source": [
"Error checking is a fundamental best practice in code development and a code\n",
Expand All @@ -72,7 +72,7 @@
{
"cell_type": "code",
"execution_count": 2,
"id": "184ad6b3",
"id": "f7094c9d",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -98,7 +98,7 @@
},
{
"cell_type": "markdown",
"id": "f62be9c2",
"id": "91528ccc",
"metadata": {},
"source": [
"It’s common practice to write CUDA kernels near the top of a translation unit,\n",
Expand All @@ -112,7 +112,7 @@
{
"cell_type": "code",
"execution_count": 3,
"id": "a3e242cf",
"id": "a173b229",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -130,7 +130,7 @@
},
{
"cell_type": "markdown",
"id": "0f941eff",
"id": "d0724fe9",
"metadata": {},
"source": [
"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",
Expand All @@ -147,7 +147,7 @@
{
"cell_type": "code",
"execution_count": 4,
"id": "48cb4d28",
"id": "10202737",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -177,7 +177,7 @@
},
{
"cell_type": "markdown",
"id": "5d0eba31",
"id": "52893768",
"metadata": {},
"source": [
"Before you can use the PTX or do any work on the GPU, you must create a CUDA\n",
Expand All @@ -189,7 +189,7 @@
{
"cell_type": "code",
"execution_count": 5,
"id": "978a75f9",
"id": "cab98472",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -199,7 +199,7 @@
},
{
"cell_type": "markdown",
"id": "5ab569fe",
"id": "c6477a74",
"metadata": {},
"source": [
"With a CUDA context created on device 0, load the PTX generated earlier into a\n",
Expand All @@ -211,7 +211,7 @@
{
"cell_type": "code",
"execution_count": 6,
"id": "2d93e0b8",
"id": "066b701c",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -224,7 +224,7 @@
},
{
"cell_type": "markdown",
"id": "73264741",
"id": "c9f35973",
"metadata": {},
"source": [
"Next, get all your data prepared and transferred to the GPU. For increased\n",
Expand All @@ -236,7 +236,7 @@
{
"cell_type": "code",
"execution_count": 7,
"id": "68589a2b",
"id": "afff70b5",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -254,7 +254,7 @@
},
{
"cell_type": "markdown",
"id": "999beb62",
"id": "b4646bbd",
"metadata": {},
"source": [
"With the input data `a`, `x`, and `y` created for the SAXPY transform device,\n",
Expand All @@ -271,7 +271,7 @@
{
"cell_type": "code",
"execution_count": 8,
"id": "6106ebc1",
"id": "ef3fdb09",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -291,7 +291,7 @@
},
{
"cell_type": "markdown",
"id": "1fa5eddf",
"id": "71111998",
"metadata": {},
"source": [
"With data prep and resources allocation finished, the kernel is ready to be\n",
Expand All @@ -308,7 +308,7 @@
{
"cell_type": "code",
"execution_count": 9,
"id": "7b5cd74a",
"id": "9f66b643",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -324,7 +324,7 @@
},
{
"cell_type": "markdown",
"id": "62ca0d26",
"id": "4bbdde3b",
"metadata": {},
"source": [
"Now the kernel can be launched:"
Expand All @@ -333,7 +333,7 @@
{
"cell_type": "code",
"execution_count": 10,
"id": "10977bc8",
"id": "3a80314c",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -359,7 +359,7 @@
},
{
"cell_type": "markdown",
"id": "7e9411c8",
"id": "a2fed497",
"metadata": {},
"source": [
"The `cuLaunchKernel` function takes the compiled module kernel and execution\n",
Expand All @@ -374,7 +374,7 @@
{
"cell_type": "code",
"execution_count": 11,
"id": "39a99d72",
"id": "da90cd5e",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -386,7 +386,7 @@
},
{
"cell_type": "markdown",
"id": "5ea9abd6",
"id": "a697670b",
"metadata": {},
"source": [
"Perform verification of the data to ensure correctness and finish the code with\n",
Expand All @@ -396,7 +396,7 @@
{
"cell_type": "code",
"execution_count": 12,
"id": "0826ba84",
"id": "9f791a49",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -410,7 +410,7 @@
},
{
"cell_type": "markdown",
"id": "bc02626b",
"id": "7228aa06",
"metadata": {},
"source": [
"## Performance\n",
Expand Down
Binary file modified docs/cuda-bindings/latest/.doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/cuda-core/latest/.doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/latest/.doctrees/environment.pickle
Binary file not shown.

0 comments on commit 8d80860

Please sign in to comment.