Skip to content

Commit 7176189

Browse files
committed
finished convolution TIL
1 parent 087c66e commit 7176189

19 files changed

Lines changed: 593 additions & 16 deletions

extras/tiled_convolution_visualization.ipynb

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
{
22
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": 1,
6+
"id": "348c3cea-e7e6-459d-ab18-c76f13fa651f",
7+
"metadata": {},
8+
"outputs": [
9+
{
10+
"name": "stdout",
11+
"output_type": "stream",
12+
"text": [
13+
"Requirement already satisfied: drawsvg in ./vizenv/lib/python3.10/site-packages (2.3.0)\n"
14+
]
15+
}
16+
],
17+
"source": [
18+
"!pip install drawsvg"
19+
]
20+
},
321
{
422
"cell_type": "code",
523
"execution_count": 1,
560 KB
Loading
470 KB
Loading
305 KB
Loading
393 KB
Loading
59.7 KB
Loading
38.2 KB
Loading

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020

2121

22-
<meta property="og:updated_time" content="2024-03-10T00:00:00&#43;00:00"/>
22+
<meta property="og:updated_time" content="2024-05-29T00:00:00&#43;00:00"/>
2323

2424

2525

index.xml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,22 @@
77
<generator>Hugo -- gohugo.io</generator>
88
<language>en-US</language>
99
<copyright>Copyright (c) 2016 - 2019. Licensed under CC BY-NC-SA 4.0</copyright>
10-
<lastBuildDate>Sun, 10 Mar 2024 00:00:00 +0000</lastBuildDate>
10+
<lastBuildDate>Wed, 29 May 2024 00:00:00 +0000</lastBuildDate>
1111

1212
<atom:link href="/index.xml" rel="self" type="application/rss+xml" />
1313

1414

15+
<item>
16+
<title>TIL Parallel Convolution with Tiling in GPUs</title>
17+
<link>/tils/til_parallel_convolution_with_tiling/</link>
18+
<pubDate>Wed, 29 May 2024 00:00:00 +0000</pubDate>
19+
20+
<guid>/tils/til_parallel_convolution_with_tiling/</guid>
21+
<description>In the continued saga of &amp;ldquo;Subil learns how to program GPUs&amp;rdquo;, today I learned about convolution and how to program it for a GPU.
22+
What is convolution? Well, I learned just enough so that I&amp;rsquo;m satisfied with how it works, but definitely not enough to explain it with any depth in this post. See this article or this video for explanations.
23+
For my purposes, convolution is this: For each input element in a 2D matrix of size NxN, apply a function on it that takes that input element and some of its neighboring elements (so your input to the function is a smaller nxn matrix with your input element at the center), multiplies this smaller matrix by a another known nxn matrix called a convolution kernel or convolution filter and sums these multiplied elements together to produce one output element.</description>
24+
</item>
25+
1526
<item>
1627
<title>TIL corner turning in GPUs</title>
1728
<link>/tils/til_corner_turning/</link>

sitemap.xml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
33
xmlns:xhtml="http://www.w3.org/1999/xhtml">
44

5+
<url>
6+
<loc>/tils/til_parallel_convolution_with_tiling/</loc>
7+
<lastmod>2024-05-29T00:00:00+00:00</lastmod>
8+
</url>
9+
510
<url>
611
<loc>/tils/til_corner_turning/</loc>
712
<lastmod>2024-03-10T00:00:00+00:00</lastmod>
@@ -166,7 +171,7 @@
166171

167172
<url>
168173
<loc>/tags/gpus/</loc>
169-
<lastmod>2024-03-10T00:00:00+00:00</lastmod>
174+
<lastmod>2024-05-29T00:00:00+00:00</lastmod>
170175
<priority>0</priority>
171176
</url>
172177

@@ -232,13 +237,13 @@
232237

233238
<url>
234239
<loc>/</loc>
235-
<lastmod>2024-03-10T00:00:00+00:00</lastmod>
240+
<lastmod>2024-05-29T00:00:00+00:00</lastmod>
236241
<priority>0</priority>
237242
</url>
238243

239244
<url>
240245
<loc>/tils/</loc>
241-
<lastmod>2024-03-10T00:00:00+00:00</lastmod>
246+
<lastmod>2024-05-29T00:00:00+00:00</lastmod>
242247
<priority>0</priority>
243248
</url>
244249

@@ -250,7 +255,7 @@
250255

251256
<url>
252257
<loc>/tags/til/</loc>
253-
<lastmod>2024-03-10T00:00:00+00:00</lastmod>
258+
<lastmod>2024-05-29T00:00:00+00:00</lastmod>
254259
<priority>0</priority>
255260
</url>
256261

0 commit comments

Comments
 (0)