Skip to content

Commit 90fe9f7

Browse files
committed
Add NVTX and annotate orchestrate_diagnostics
1 parent 5ddaba6 commit 90fe9f7

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Project.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ ClimaCore = "d414da3d-4745-48bb-8d80-42e94e092884"
1010
ClimaUtilities = "b3f4f4ca-9299-4f7f-bd9b-81e1242a7513"
1111
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
1212
NCDatasets = "85f8d34a-cbdd-5861-8df4-14fed0d494ab"
13+
NVTX = "5da4648a-3479-48b8-97b9-01cb529c0a1f"
1314
OrderedCollections = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
1415
SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
1516

@@ -19,14 +20,15 @@ Aqua = "0.8"
1920
BenchmarkTools = "1"
2021
ClimaComms = "0.6.2"
2122
ClimaCore = "0.14.23"
22-
ClimaTimeSteppers = "0.7.21"
23+
ClimaTimeSteppers = "0.7, 0.8"
2324
ClimaUtilities = "0.1.22"
2425
Dates = "1"
2526
Documenter = "1"
2627
ExplicitImports = "1.6"
27-
LazyBroadcast = "1"
2828
JuliaFormatter = "1"
29+
LazyBroadcast = "1"
2930
NCDatasets = "0.14"
31+
NVTX = "1.0.0"
3032
OrderedCollections = "1.4"
3133
Profile = "1"
3234
ProfileCanvas = "0.1.6"

src/clima_diagnostics.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Accessors
2+
import NVTX
23
import SciMLBase
34
import ClimaComms
45
import ClimaCore: Spaces
@@ -215,7 +216,7 @@ end
215216
Loop over all the `ScheduledDiagnostics` in `diagnostic_handler` and run compute
216217
and output according to their schedule functions.
217218
"""
218-
function orchestrate_diagnostics(
219+
NVTX.@annotate function orchestrate_diagnostics(
219220
integrator,
220221
diagnostic_handler::DiagnosticsHandler,
221222
)

0 commit comments

Comments
 (0)