Skip to content

Commit

Permalink
Deploy latest docs: e774b32
Browse files Browse the repository at this point in the history
  • Loading branch information
cuda-python-bot committed Jan 8, 2025
1 parent 93ff93f commit 91012f7
Show file tree
Hide file tree
Showing 76 changed files with 792 additions and 792 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": "2198ca39",
"id": "f7a472c7",
"metadata": {},
"source": [
"# Overview\n",
Expand Down Expand Up @@ -50,7 +50,7 @@
{
"cell_type": "code",
"execution_count": 1,
"id": "fd59bdd6",
"id": "68a812f3",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -60,7 +60,7 @@
},
{
"cell_type": "markdown",
"id": "c42dee65",
"id": "98a4e274",
"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": "021523bf",
"id": "b4c9b74d",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -98,7 +98,7 @@
},
{
"cell_type": "markdown",
"id": "22a0fcae",
"id": "06415f79",
"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": "85c44dc2",
"id": "fd223b0e",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -130,7 +130,7 @@
},
{
"cell_type": "markdown",
"id": "aa3ed455",
"id": "3d37d699",
"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": "edc74315",
"id": "ec7bb848",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -177,7 +177,7 @@
},
{
"cell_type": "markdown",
"id": "5cd47ef9",
"id": "09e8e092",
"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": "36fd67db",
"id": "b80ffb90",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -199,7 +199,7 @@
},
{
"cell_type": "markdown",
"id": "4e380475",
"id": "a7b7d784",
"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": "2a92aeba",
"id": "391d926b",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -224,7 +224,7 @@
},
{
"cell_type": "markdown",
"id": "2af98ad4",
"id": "41cb7f21",
"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": "d676a891",
"id": "fe6490f0",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -254,7 +254,7 @@
},
{
"cell_type": "markdown",
"id": "373c47ba",
"id": "41edd489",
"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": "b2974687",
"id": "88e047e6",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -291,7 +291,7 @@
},
{
"cell_type": "markdown",
"id": "4686bcb9",
"id": "79285dd4",
"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": "dfbf9d47",
"id": "50f4076f",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -324,7 +324,7 @@
},
{
"cell_type": "markdown",
"id": "7cc9ea58",
"id": "a31246de",
"metadata": {},
"source": [
"Now the kernel can be launched:"
Expand All @@ -333,7 +333,7 @@
{
"cell_type": "code",
"execution_count": 10,
"id": "8b9cf952",
"id": "872de979",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -359,7 +359,7 @@
},
{
"cell_type": "markdown",
"id": "49945073",
"id": "39b37bc1",
"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": "3ad9d8d2",
"id": "f453e10c",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -386,7 +386,7 @@
},
{
"cell_type": "markdown",
"id": "ec5a9a54",
"id": "6dae097d",
"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": "17d9d025",
"id": "fddeefa4",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -410,7 +410,7 @@
},
{
"cell_type": "markdown",
"id": "0abc3b16",
"id": "6bd2ea1f",
"metadata": {},
"source": [
"## Performance\n",
Expand Down
Binary file modified docs/cuda-bindings/latest/.doctrees/environment.pickle
Binary file not shown.
Loading

0 comments on commit 91012f7

Please sign in to comment.