Skip to content

Commit

Permalink
Deploy latest docs: ece3281
Browse files Browse the repository at this point in the history
  • Loading branch information
cuda-python-bot committed Jan 12, 2025
1 parent a6e2da2 commit 02e231c
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": "29a7f906",
"id": "214bc135",
"metadata": {},
"source": [
"# Overview\n",
Expand Down Expand Up @@ -50,7 +50,7 @@
{
"cell_type": "code",
"execution_count": 1,
"id": "dc6ce2ec",
"id": "f28214bf",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -60,7 +60,7 @@
},
{
"cell_type": "markdown",
"id": "5fd24ae4",
"id": "c0614a21",
"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": "03d232c2",
"id": "81e6cce9",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -98,7 +98,7 @@
},
{
"cell_type": "markdown",
"id": "ea13cf9e",
"id": "f65bd3f8",
"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": "01aafd48",
"id": "7db14249",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -130,7 +130,7 @@
},
{
"cell_type": "markdown",
"id": "ea9f7845",
"id": "4ff004fb",
"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": "5b872a0f",
"id": "df079b61",
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -177,7 +177,7 @@
},
{
"cell_type": "markdown",
"id": "71f96b38",
"id": "242a26d1",
"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": "a2ce9541",
"id": "ed5b0372",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -199,7 +199,7 @@
},
{
"cell_type": "markdown",
"id": "cef585f5",
"id": "4c9a10d3",
"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": "d57460f6",
"id": "3769c6b2",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -224,7 +224,7 @@
},
{
"cell_type": "markdown",
"id": "8f6edb91",
"id": "bcc474fd",
"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": "73a49b31",
"id": "ab27308f",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -254,7 +254,7 @@
},
{
"cell_type": "markdown",
"id": "328c2425",
"id": "59f2a516",
"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": "48b8229c",
"id": "183bed83",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -291,7 +291,7 @@
},
{
"cell_type": "markdown",
"id": "b0405e83",
"id": "c7cd6857",
"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": "aec52d7e",
"id": "bd93f23f",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -324,7 +324,7 @@
},
{
"cell_type": "markdown",
"id": "4485c54e",
"id": "5ecbb413",
"metadata": {},
"source": [
"Now the kernel can be launched:"
Expand All @@ -333,7 +333,7 @@
{
"cell_type": "code",
"execution_count": 10,
"id": "5aad4229",
"id": "738b9255",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -359,7 +359,7 @@
},
{
"cell_type": "markdown",
"id": "f6c426ea",
"id": "cbaee309",
"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": "a96f1eab",
"id": "fdf04b35",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -386,7 +386,7 @@
},
{
"cell_type": "markdown",
"id": "24b62d02",
"id": "1b55d350",
"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": "8e549991",
"id": "3ca6c337",
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -410,7 +410,7 @@
},
{
"cell_type": "markdown",
"id": "81168fd8",
"id": "169cd592",
"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 02e231c

Please sign in to comment.