Skip to content

Commit

Permalink
Install numba-cuda 0.4.0 and configure numba for JIT link
Browse files Browse the repository at this point in the history
  • Loading branch information
uradora136 committed Feb 26, 2025
1 parent b3c4b23 commit 5a0c69e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion GPU_puzzlers.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@
],
"source": [
"!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"
"!wget -q https://github.com/srush/GPU-Puzzles/raw/main/robot.png https://github.com/srush/GPU-Puzzles/raw/main/lib.py",
"!pip install -qqq numba-cuda==0.4.0"
]
},
{
Expand Down
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

0 comments on commit 5a0c69e

Please sign in to comment.