-
-
Notifications
You must be signed in to change notification settings - Fork 719
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add standalone dashboard page for GPU usage (#4556)
- Loading branch information
1 parent
43859e2
commit bf9ddab
Showing
4 changed files
with
78 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#status-fluid { | ||
display: grid; | ||
height: 100%; | ||
} | ||
#status-fluid { | ||
grid-template-columns: 1fr 1fr; | ||
grid-template-rows: 1fr; | ||
} | ||
#gpu-memory { | ||
grid-column: 2; | ||
grid-row: 1; | ||
} | ||
#gpu-utilization { | ||
grid-column: 1; | ||
grid-row: 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block extra_resources %} | ||
<link rel="stylesheet" href="statics/css/gpu.css"> | ||
{% endblock %} | ||
|
||
{% block content %} | ||
{% from macros import embed %} | ||
<div id="status-fluid"> | ||
|
||
<div id="gpu-utilization"> | ||
{{ embed(roots.gpu_utilization_histogram) }} | ||
</div> | ||
|
||
<div id="gpu-memory"> | ||
{{ embed(roots.gpu_memory_histogram) }} | ||
</div> | ||
|
||
</div> | ||
{{ plot_script }} | ||
|
||
{% endblock %} |