Skip to content

Commit

Permalink
Deploy latest docs: 7ffb964
Browse files Browse the repository at this point in the history
  • Loading branch information
cuda-python-bot committed Jan 6, 2025
1 parent c8f1161 commit 93ff93f
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": "d90c5550",
"id": "2198ca39",
"metadata": {},
"source": [
"# Overview\n",
Expand Down Expand Up @@ -50,7 +50,7 @@
{
"cell_type": "code",
"execution_count": 1,
"id": "124f7cec",
"id": "fd59bdd6",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -60,7 +60,7 @@
},
{
"cell_type": "markdown",
"id": "3710b1d8",
"id": "c42dee65",
"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": "ae255764",
"id": "021523bf",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -98,7 +98,7 @@
},
{
"cell_type": "markdown",
"id": "b6903a05",
"id": "22a0fcae",
"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": "51b42144",
"id": "85c44dc2",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -130,7 +130,7 @@
},
{
"cell_type": "markdown",
"id": "1d80e91a",
"id": "aa3ed455",
"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": "ba345248",
"id": "edc74315",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -177,7 +177,7 @@
},
{
"cell_type": "markdown",
"id": "d1cd099b",
"id": "5cd47ef9",
"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": "ea49fc45",
"id": "36fd67db",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -199,7 +199,7 @@
},
{
"cell_type": "markdown",
"id": "abe1841f",
"id": "4e380475",
"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": "e0e7e2c0",
"id": "2a92aeba",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -224,7 +224,7 @@
},
{
"cell_type": "markdown",
"id": "2958bc64",
"id": "2af98ad4",
"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": "6fb34467",
"id": "d676a891",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -254,7 +254,7 @@
},
{
"cell_type": "markdown",
"id": "ca36747d",
"id": "373c47ba",
"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": "1b09a341",
"id": "b2974687",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -291,7 +291,7 @@
},
{
"cell_type": "markdown",
"id": "ed518811",
"id": "4686bcb9",
"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": "5ae33105",
"id": "dfbf9d47",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -324,7 +324,7 @@
},
{
"cell_type": "markdown",
"id": "0c023001",
"id": "7cc9ea58",
"metadata": {},
"source": [
"Now the kernel can be launched:"
Expand All @@ -333,7 +333,7 @@
{
"cell_type": "code",
"execution_count": 10,
"id": "df102a6d",
"id": "8b9cf952",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -359,7 +359,7 @@
},
{
"cell_type": "markdown",
"id": "291726f4",
"id": "49945073",
"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": "e21ca9ce",
"id": "3ad9d8d2",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -386,7 +386,7 @@
},
{
"cell_type": "markdown",
"id": "bee6fe29",
"id": "ec5a9a54",
"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": "e5df84c0",
"id": "17d9d025",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -410,7 +410,7 @@
},
{
"cell_type": "markdown",
"id": "460f890d",
"id": "0abc3b16",
"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 93ff93f

Please sign in to comment.