nvgpu API¶
- class nvgpu.analysis.NvgpuModule(session_id: Identifier, entity: str, node: str)¶
Bases:
Module- get_cuda_api_calls(region: str)¶
Get CUDA API tracing results for a given code region in form of a summary dictionary of the following structure:
{ "<CUDA API method name>": { "length": <exact method runtime in ns>, "children": <dictionary of CUDA API calls made by the method: the format is the same as for the root> } }
If the region does not exist, None is returned.
- Parameters:
region (str) – Name of a code region for which the tracing results should be obtained.
- get_name()¶
Return the name of the module.
- get_region_names()¶
Get the list of all code region names of a nvgpu performance analysis session.
- get_regions()¶
Get CUDA API tracing results in form of a summary dictionary of the following structure:
{ "<code region>": { "data": { "<CUDA API method name>": { "length": <exact method runtime in ns>, "children": <dictionary of CUDA API calls made by the method: the format is the same as for "data"> } } } }
- process_post_request(data)¶
Please see the REST API documentation of the nvgpu module for the structure of POST requests here.