Skip to content

Commit 8e3b060

Browse files
author
Basu Jindal
committed
ui changes
1 parent dacb6ce commit 8e3b060

3 files changed

Lines changed: 30 additions & 2 deletions

File tree

blogs/cuda.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,20 @@ Function from Coordinate to Index: `idx = inner_product(coord, stride)`
253253
| 2D Grid<br>`[[a, b, c],`<br>` [d, e, f]]` | Padded Col-major<br>Shape: `(2,3)`<br>Stride: `(1,4)` | `[a, d, _, _, b, e, _, _, c, f, _, _]`<br>*(Includes gaps/padding)* | `idx = i*1 + j*4` |
254254
| 3D Tensor<br>Layer 0: `[[a, b], [c, d]]`<br>Layer 1: `[[e, f], [g, h]]` | Tensor layout<br>Shape: `(2,2,2)`<br>Stride: `(4,1,2)` | `[a, b, e, f, c, d, g, h]` | `idx = inner_product(coord, stride)` |
255255

256+
### Examples
257+
258+
Compile on DGX B200
259+
```
260+
nvcc -arch=sm_100a \
261+
-I include \
262+
-I tools/util/include \
263+
examples/cute/tutorial/blackwell/01_mma_sm100.cu \
264+
-o 01_mma_sm100
265+
266+
./01_mma_sm100
267+
```
268+
269+
256270
## Blackwell Architecture
257271

258272
https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#compute-capability-10-x

css/thoughts.css

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,15 +388,15 @@
388388
.post-actions {
389389
display: flex;
390390
gap: 1.5rem;
391-
padding-top: 0.75rem;
391+
padding-top: 0.5rem;
392392
border-top: 1px solid var(--border);
393393
}
394394

395395
.post-action {
396396
display: flex;
397397
align-items: center;
398398
gap: 0.4rem;
399-
padding: 0.4rem 0.75rem;
399+
padding: 0.5rem 0.5rem;
400400
border: none;
401401
border-radius: 20px;
402402
background: transparent;
@@ -1026,6 +1026,13 @@
10261026
margin-top: 0.25rem;
10271027
}
10281028

1029+
/* Hide keyboard hint on mobile/touch devices */
1030+
@media (max-width: 600px), (hover: none) {
1031+
.compose-hint {
1032+
display: none;
1033+
}
1034+
}
1035+
10291036
.compose-hint kbd {
10301037
background: var(--code-bg);
10311038
padding: 0.1rem 0.35rem;

js/thoughts.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -731,6 +731,13 @@
731731

732732
if (!text) return;
733733

734+
// Client-side word limit (100 words max)
735+
const wordCount = text.split(/\s+/).filter(word => word.length > 0).length;
736+
if (wordCount > 100) {
737+
showToast(`Comment too long (${wordCount} words). Maximum is 100 words.`, 'error');
738+
return;
739+
}
740+
734741
const submitBtn = document.querySelector(`.comment-submit[data-post-id="${postId}"]`);
735742
submitBtn.disabled = true;
736743
submitBtn.textContent = 'Posting...';

0 commit comments

Comments
 (0)