Skip to content

Commit 0f54910

Browse files
committed
Add a single cell to instantiate heat diffusion environment
1 parent 4c1b9d6 commit 0f54910

File tree

2 files changed

+5
-50
lines changed

2 files changed

+5
-50
lines changed

parts/gpu/Project.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
33
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
44
CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0"
5+
IJulia = "7073ff75-c697-5162-941a-fcdaad2a7d2a"
56
KernelAbstractions = "63c18a36-062a-441e-b654-da1e3ab1ce7c"
67
ProgressMeter = "92933f4c-e287-5a05-a399-4b506db050ca"
78

89
[compat]
910
BenchmarkTools = "1"
1011
CUDA = "5"
1112
CairoMakie = "0.15"
13+
IJulia = "1"
1214
KernelAbstractions = "0.9"
1315
ProgressMeter = "1"

parts/gpu/heat-diffusion.ipynb

Lines changed: 3 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -15,56 +15,9 @@
1515
},
1616
"outputs": [],
1717
"source": [
18-
"#using Pkg\n",
19-
"#Pkg.add(\"CUDA\")"
20-
]
21-
},
22-
{
23-
"cell_type": "code",
24-
"execution_count": 2,
25-
"metadata": {
26-
"tags": []
27-
},
28-
"outputs": [],
29-
"source": [
30-
"#import Pkg\n",
31-
"#Pkg.add(\"BenchmarkTools\")"
32-
]
33-
},
34-
{
35-
"cell_type": "code",
36-
"execution_count": 23,
37-
"metadata": {
38-
"tags": []
39-
},
40-
"outputs": [],
41-
"source": [
42-
"#import Pkg\n",
43-
"#Pkg.add(\"ProgressMeter\")"
44-
]
45-
},
46-
{
47-
"cell_type": "code",
48-
"execution_count": 4,
49-
"metadata": {
50-
"tags": []
51-
},
52-
"outputs": [],
53-
"source": [
54-
"#import Pkg\n",
55-
"#Pkg.add(\"KernelAbstractions\")"
56-
]
57-
},
58-
{
59-
"cell_type": "code",
60-
"execution_count": 5,
61-
"metadata": {
62-
"tags": []
63-
},
64-
"outputs": [],
65-
"source": [
66-
"#import Pkg\n",
67-
"#Pkg.add(\"CairoMakie\")"
18+
"# Running this cell is important to make sure we install all the necessary packages.\n",
19+
"using Pkg\n",
20+
"Pkg.instantiate()"
6821
]
6922
},
7023
{

0 commit comments

Comments
 (0)