Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion GPU_puzzlers.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@
}
],
"source": [
"!pip install -qqq numba-cuda==0.4.0\n",
"!pip install -qqq git+https://github.com/chalk-diagrams/planar git+https://github.com/danoneata/chalk@srush-patch-1\n",
"!wget -q https://github.com/srush/GPU-Puzzles/raw/main/robot.png https://github.com/srush/GPU-Puzzles/raw/main/lib.py"
]
Expand Down Expand Up @@ -6543,4 +6544,4 @@
},
"nbformat": 4,
"nbformat_minor": 5
}
}
5 changes: 4 additions & 1 deletion lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@
from dataclasses import dataclass
from typing import List, Any
from collections import Counter
from numba import cuda
from numba import cuda, config
import numba
import random

config.CUDA_ENABLE_PYNVJITLINK = 1
config.CUDA_LOW_OCCUPANCY_WARNINGS = 0

@dataclass
class ScalarHistory:
last_fn: str
Expand Down