-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
54 additions
and
54 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,48 @@ | ||
.. | ||
# Copyright 2019-2023 Lawrence Livermore National Security, LLC and other | ||
.. # Copyright 2019-2023 Lawrence Livermore National Security, LLC and other | ||
# Variorum Project Developers. See the top-level LICENSE file for details. | ||
# | ||
# SPDX-License-Identifier: MIT | ||
********* | ||
########## | ||
JSON API | ||
********* | ||
########## | ||
|
||
Obtaining Thermal Information | ||
============================= | ||
******************************* | ||
Obtaining Thermal Information | ||
******************************* | ||
|
||
The API to obtain node thermal has the following format. It takes a string | ||
(``char**``) by reference as input, and populates this string with a nested | ||
JSON object with hostname, followed by socket_{number}, followed by CPU and | ||
or GPU (depending on the platform, may contain only one or both), followed | ||
by Core and Mem for CPU. | ||
(``char**``) by reference as input, and populates this string with a nested | ||
JSON object with hostname, followed by socket_{number}, followed by CPU and or | ||
GPU (depending on the platform, may contain only one or both), followed by Core | ||
and Mem for CPU. | ||
|
||
The ``variorum_get_thermals_json(char **)`` function returns a string type | ||
nested JSON object. An example is provided below. | ||
nested JSON object. An example is provided below:: | ||
|
||
{ | ||
"hostname": { | ||
"Socket_0": { | ||
"CPU": { | ||
"Core": { | ||
"temp_celsius_core_0": (Integer), | ||
... | ||
"temp_celsius_core_i": (Integer), | ||
{ | ||
"hostname": { | ||
"Socket_0": { | ||
"CPU": { | ||
"Core": { | ||
"temp_celsius_core_0": (Integer), | ||
... | ||
"temp_celsius_core_i": (Integer), | ||
}, | ||
"Mem": { | ||
"temp_celsius_dimm_0": (Integer), | ||
... | ||
:temp_celsius_dimm_i": (Integer), | ||
}, | ||
}, | ||
"Mem": { | ||
"temp_celsius_dimm_0": (Integer), | ||
... | ||
:temp_celsius_dimm_i": (Integer), | ||
}, | ||
"GPU": { | ||
"temp_celsius_gpu_0": (Integer), | ||
... | ||
"temp_celsius_gpu_i": (Integer), | ||
} | ||
}, | ||
"GPU": { | ||
"temp_celsius_gpu_0": (Integer), | ||
... | ||
"temp_celsius_gpu_i": (Integer), | ||
} | ||
}, | ||
"timestamp" : (Integer) | ||
"timestamp" : (Integer) | ||
} | ||
} | ||
} | ||
|
||
* where i is the index of the core/gpu. 0 <= i < num_cores/gpus. | ||
Here, ``i`` is the index of the core or GPU and ``0 <= i < num_cores/GPUs``. |
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
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
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
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
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
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
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