Skip to content

Commit a06920e

Browse files
authored
Add an integrated profiler. (#2024)
1 parent 4cd4d14 commit a06920e

File tree

15 files changed

+1243
-228
lines changed

15 files changed

+1243
-228
lines changed

.buildkite/pipeline.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ steps:
5151
- label: "CUDA {{matrix.cuda}}"
5252
plugins:
5353
- JuliaCI/julia#v1:
54-
version: 1.8
54+
version: 1.9
5555
- JuliaCI/julia-test#v1:
5656
test_args: "core base libraries"
5757
- JuliaCI/julia-coverage#v1:
@@ -105,7 +105,7 @@ steps:
105105
package: "cuTENSOR"
106106
plugins:
107107
- JuliaCI/julia#v1:
108-
version: "1.8"
108+
version: "1.9"
109109
- JuliaCI/julia-coverage#v1:
110110
dirs:
111111
- src
@@ -143,7 +143,7 @@ steps:
143143
- label: "NNlibCUDA.jl on CUDA 12"
144144
plugins:
145145
- JuliaCI/julia#v1:
146-
version: 1.8
146+
version: 1.9
147147
- JuliaCI/julia-coverage#v1:
148148
dirs:
149149
- src
@@ -178,7 +178,7 @@ steps:
178178
- label: "GPU-less environment"
179179
plugins:
180180
- JuliaCI/julia#v1:
181-
version: 1.8
181+
version: 1.9
182182
- JuliaCI/julia-coverage#v1:
183183
dirs:
184184
- src
@@ -205,7 +205,7 @@ steps:
205205
- label: "Documentation"
206206
plugins:
207207
- JuliaCI/julia#v1:
208-
version: 1.8
208+
version: 1.9
209209
command: |
210210
julia --project -e '
211211
println("--- :julia: Instantiating project")
@@ -227,7 +227,7 @@ steps:
227227
- label: "Compute sanitizer"
228228
plugins:
229229
- JuliaCI/julia#v1:
230-
version: 1.8
230+
version: 1.9
231231
- JuliaCI/julia-test#v1:
232232
test_args: "--sanitize core"
233233
- JuliaCI/julia-coverage#v1:
@@ -256,7 +256,7 @@ steps:
256256
- label: "Benchmarks (dry run)"
257257
plugins:
258258
- JuliaCI/julia#v1:
259-
version: 1.8
259+
version: 1.9
260260
command: |
261261
julia --project -e '
262262
println("--- :julia: Instantiating project")

Manifest.toml

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,33 @@ version = "4.9.0"
7878
deps = ["Artifacts", "Libdl"]
7979
uuid = "e66e0078-7015-5450-92f7-15fbd957f2ae"
8080

81+
[[Crayons]]
82+
git-tree-sha1 = "249fe38abf76d48563e2f4556bebd215aa317e15"
83+
uuid = "a8cc5b0e-0ffa-5ad4-8c14-923d3ee1735f"
84+
version = "4.1.1"
85+
86+
[[DataAPI]]
87+
git-tree-sha1 = "8da84edb865b0b5b0100c0666a9bc9a0b71c553c"
88+
uuid = "9a962f9c-6df0-11e9-0e5d-c546b8b5ee8a"
89+
version = "1.15.0"
90+
91+
[[DataFrames]]
92+
deps = ["Compat", "DataAPI", "DataStructures", "Future", "InlineStrings", "InvertedIndices", "IteratorInterfaceExtensions", "LinearAlgebra", "Markdown", "Missings", "PooledArrays", "PrecompileTools", "PrettyTables", "Printf", "REPL", "Random", "Reexport", "SentinelArrays", "SortingAlgorithms", "Statistics", "TableTraits", "Tables", "Unicode"]
93+
git-tree-sha1 = "04c738083f29f86e62c8afc341f0967d8717bdb8"
94+
uuid = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
95+
version = "1.6.1"
96+
97+
[[DataStructures]]
98+
deps = ["Compat", "InteractiveUtils", "OrderedCollections"]
99+
git-tree-sha1 = "3dbd312d370723b6bb43ba9d02fc36abade4518d"
100+
uuid = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
101+
version = "0.18.15"
102+
103+
[[DataValueInterfaces]]
104+
git-tree-sha1 = "bfc1187b79289637fa0ef6d4436ebdfe6905cbd6"
105+
uuid = "e2d170a0-9d28-54be-80f0-106bbe20a464"
106+
version = "1.0.0"
107+
81108
[[Dates]]
82109
deps = ["Printf"]
83110
uuid = "ade2ca70-3891-5945-98fb-dc099432e06a"
@@ -97,6 +124,10 @@ git-tree-sha1 = "27415f162e6028e81c72b82ef756bf321213b6ec"
97124
uuid = "e2ba6199-217a-4e67-a87a-7c52f15ade04"
98125
version = "0.1.10"
99126

127+
[[Future]]
128+
deps = ["Random"]
129+
uuid = "9fa8497b-333b-5362-9e8d-4d0656e87820"
130+
100131
[[GPUArrays]]
101132
deps = ["Adapt", "GPUArraysCore", "LLVM", "LinearAlgebra", "Printf", "Random", "Reexport", "Serialization", "Statistics"]
102133
git-tree-sha1 = "2e57b4a4f9cc15e85a24d603256fe08e527f48d1"
@@ -115,6 +146,12 @@ git-tree-sha1 = "72b2e3c2ba583d1a7aa35129e56cf92e07c083e3"
115146
uuid = "61eb1bfa-7361-4325-ad38-22787b887f55"
116147
version = "0.21.4"
117148

149+
[[InlineStrings]]
150+
deps = ["Parsers"]
151+
git-tree-sha1 = "9cc2baf75c6d09f9da536ddf58eb2f29dedaf461"
152+
uuid = "842dd82b-1e85-43dc-bf29-5d0ee9dffc48"
153+
version = "1.4.0"
154+
118155
[[InteractiveUtils]]
119156
deps = ["Markdown"]
120157
uuid = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
@@ -125,11 +162,21 @@ git-tree-sha1 = "68772f49f54b479fa88ace904f6127f0a3bb2e46"
125162
uuid = "3587e190-3f89-42d0-90ee-14403ec27112"
126163
version = "0.1.12"
127164

165+
[[InvertedIndices]]
166+
git-tree-sha1 = "0dc7b50b8d436461be01300fd8cd45aa0274b038"
167+
uuid = "41ab1584-1d38-5bbf-9106-f11c6c58b48f"
168+
version = "1.3.0"
169+
128170
[[IrrationalConstants]]
129171
git-tree-sha1 = "630b497eafcc20001bba38a4651b327dcfc491d2"
130172
uuid = "92d709cd-6900-40b7-9082-c6be49f344b6"
131173
version = "0.2.2"
132174

175+
[[IteratorInterfaceExtensions]]
176+
git-tree-sha1 = "a3f24677c21f5bbe9d2a714f95dcd58337fb2856"
177+
uuid = "82899510-4779-5014-852e-03e436cf321d"
178+
version = "1.0.0"
179+
133180
[[JLLWrappers]]
134181
deps = ["Preferences"]
135182
git-tree-sha1 = "abc9885a7ca2052a736a600f7fa66209f96506e1"
@@ -154,6 +201,11 @@ git-tree-sha1 = "c35203c1e1002747da220ffc3c0762ce7754b08c"
154201
uuid = "dad2f222-ce93-54a1-a47d-0025e8a3acab"
155202
version = "0.0.23+0"
156203

204+
[[LaTeXStrings]]
205+
git-tree-sha1 = "f2355693d6778a178ade15952b7ac47a4ff97996"
206+
uuid = "b964fa9f-0449-5b57-a5c2-d3ea65f4040f"
207+
version = "1.3.0"
208+
157209
[[LazyArtifacts]]
158210
deps = ["Artifacts", "Pkg"]
159211
uuid = "4af54fe1-eca0-43a8-85a7-787d91b784e3"
@@ -204,6 +256,12 @@ uuid = "d6f4376e-aef5-505a-96c1-9c027394607a"
204256
deps = ["Artifacts", "Libdl"]
205257
uuid = "c8ffd9c3-330d-5841-b78e-0817d7145fa1"
206258

259+
[[Missings]]
260+
deps = ["DataAPI"]
261+
git-tree-sha1 = "f66bdc5de519e8f8ae43bdc598782d35a25b1272"
262+
uuid = "e1d29d7a-bbdc-5cf2-9ac0-f12de2c33e28"
263+
version = "1.1.0"
264+
207265
[[MozillaCACerts_jll]]
208266
uuid = "14a3606d-f60d-562e-9121-12d972cd8159"
209267

@@ -220,10 +278,27 @@ git-tree-sha1 = "13652491f6856acfd2db29360e1bbcd4565d04f1"
220278
uuid = "efe28fd5-8261-553b-a9e1-b2916fc3738e"
221279
version = "0.5.5+0"
222280

281+
[[OrderedCollections]]
282+
git-tree-sha1 = "2e73fe17cac3c62ad1aebe70d44c963c3cfdc3e3"
283+
uuid = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
284+
version = "1.6.2"
285+
286+
[[Parsers]]
287+
deps = ["Dates", "PrecompileTools", "UUIDs"]
288+
git-tree-sha1 = "716e24b21538abc91f6205fd1d8363f39b442851"
289+
uuid = "69de0a69-1ddd-5017-9359-2bf0b02dc9f0"
290+
version = "2.7.2"
291+
223292
[[Pkg]]
224293
deps = ["Artifacts", "Dates", "Downloads", "LibGit2", "Libdl", "Logging", "Markdown", "Printf", "REPL", "Random", "SHA", "Serialization", "TOML", "Tar", "UUIDs", "p7zip_jll"]
225294
uuid = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
226295

296+
[[PooledArrays]]
297+
deps = ["DataAPI", "Future"]
298+
git-tree-sha1 = "a6062fe4063cdafe78f4a0a81cfffb89721b30e7"
299+
uuid = "2dfb63ee-cc39-5dd5-95bd-886bf059d720"
300+
version = "1.4.2"
301+
227302
[[PrecompileTools]]
228303
deps = ["Preferences"]
229304
git-tree-sha1 = "9673d39decc5feece56ef3940e5dafba15ba0f81"
@@ -236,6 +311,12 @@ git-tree-sha1 = "7eb1686b4f04b82f96ed7a4ea5890a4f0c7a09f1"
236311
uuid = "21216c6a-2e73-6563-6e65-726566657250"
237312
version = "1.4.0"
238313

314+
[[PrettyTables]]
315+
deps = ["Crayons", "LaTeXStrings", "Markdown", "Printf", "Reexport", "StringManipulation", "Tables"]
316+
git-tree-sha1 = "ee094908d720185ddbdc58dbe0c1cbe35453ec7a"
317+
uuid = "08abe8d2-0d0c-5749-adfa-8a2ac140af0d"
318+
version = "2.2.7"
319+
239320
[[Printf]]
240321
deps = ["Unicode"]
241322
uuid = "de0858da-6303-5e67-8744-51eddeeeb8d7"
@@ -280,12 +361,24 @@ git-tree-sha1 = "30449ee12237627992a99d5e30ae63e4d78cd24a"
280361
uuid = "6c6a2e73-6563-6170-7368-637461726353"
281362
version = "1.2.0"
282363

364+
[[SentinelArrays]]
365+
deps = ["Dates", "Random"]
366+
git-tree-sha1 = "04bdff0b09c65ff3e06a05e3eb7b120223da3d39"
367+
uuid = "91c51154-3ec4-41a3-a24f-3f23e20d615c"
368+
version = "1.4.0"
369+
283370
[[Serialization]]
284371
uuid = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
285372

286373
[[Sockets]]
287374
uuid = "6462fe0b-24de-5631-8697-dd941f90decc"
288375

376+
[[SortingAlgorithms]]
377+
deps = ["DataStructures"]
378+
git-tree-sha1 = "c60ec5c62180f27efea3ba2908480f8055e17cee"
379+
uuid = "a2af1166-a08f-5f64-846c-94a0d3cef48c"
380+
version = "1.1.1"
381+
289382
[[SparseArrays]]
290383
deps = ["LinearAlgebra", "Random"]
291384
uuid = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
@@ -311,10 +404,27 @@ version = "1.4.2"
311404
deps = ["LinearAlgebra", "SparseArrays"]
312405
uuid = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
313406

407+
[[StringManipulation]]
408+
git-tree-sha1 = "46da2434b41f41ac3594ee9816ce5541c6096123"
409+
uuid = "892a3eda-7b42-436c-8928-eab12a02cf0e"
410+
version = "0.3.0"
411+
314412
[[TOML]]
315413
deps = ["Dates"]
316414
uuid = "fa267f1f-6049-4f14-aa54-33bafae1ed76"
317415

416+
[[TableTraits]]
417+
deps = ["IteratorInterfaceExtensions"]
418+
git-tree-sha1 = "c06b2f539df1c6efa794486abfb6ed2022561a39"
419+
uuid = "3783bdb8-4a98-5b6b-af9a-565f29a5fe9c"
420+
version = "1.0.1"
421+
422+
[[Tables]]
423+
deps = ["DataAPI", "DataValueInterfaces", "IteratorInterfaceExtensions", "LinearAlgebra", "OrderedCollections", "TableTraits", "Test"]
424+
git-tree-sha1 = "1544b926975372da01227b382066ab70e574a3ec"
425+
uuid = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"
426+
version = "1.10.1"
427+
318428
[[Tar]]
319429
deps = ["ArgTools", "SHA"]
320430
uuid = "a4e569a6-e804-4fa4-b0f3-eef7a1d5b13e"

Project.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ CEnum = "fa961155-64e5-5f13-b03f-caf6b980ea82"
1010
CUDA_Driver_jll = "4ee394cb-3365-5eb0-8335-949819d2adfc"
1111
CUDA_Runtime_Discovery = "1af6417a-86b4-443c-805f-a4643ffb695f"
1212
CUDA_Runtime_jll = "76a88914-d11a-5bdc-97e0-2f5a05c973a2"
13+
Crayons = "a8cc5b0e-0ffa-5ad4-8c14-923d3ee1735f"
14+
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
1315
ExprTools = "e2ba6199-217a-4e67-a87a-7c52f15ade04"
1416
GPUArrays = "0c68f7d7-f131-5f86-a1c3-88cf8149b2d7"
1517
GPUCompiler = "61eb1bfa-7361-4325-ad38-22787b887f55"
@@ -20,6 +22,7 @@ Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
2022
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
2123
Logging = "56ddb016-857b-54e1-b83d-db4d58db5568"
2224
Preferences = "21216c6a-2e73-6563-6e65-726566657250"
25+
PrettyTables = "08abe8d2-0d0c-5749-adfa-8a2ac140af0d"
2326
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
2427
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
2528
Random123 = "74087812-796a-5b5d-8853-05524746bad3"
@@ -28,6 +31,7 @@ Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
2831
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
2932
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
3033
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
34+
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
3135
UnsafeAtomicsLLVM = "d80eeb9a-aca5-4d75-85e5-170c8b632249"
3236

3337
[compat]
@@ -38,12 +42,15 @@ CEnum = "0.2, 0.3, 0.4"
3842
CUDA_Driver_jll = "0.5"
3943
CUDA_Runtime_Discovery = "0.2"
4044
CUDA_Runtime_jll = "0.6"
45+
Crayons = "4"
46+
DataFrames = "1"
4147
ExprTools = "0.1"
4248
GPUArrays = "8.6"
4349
GPUCompiler = "0.21"
4450
KernelAbstractions = "0.9.2"
4551
LLVM = "6"
4652
Preferences = "1"
53+
PrettyTables = "2"
4754
Random123 = "1.2"
4855
RandomNumbers = "1.5.3"
4956
Reexport = "0.2, 1.0"

0 commit comments

Comments
 (0)