gem5.resources.client.html
gem5.resources.client module¶
- gem5.resources.client.getFileContent(file_path: Path) Dict ¶
Get the content of the file at the given path.
- Parameters:
file_path – The path of the file.
- Returns:
The content of the file.
- gem5.resources.client.get_multiple_resource_json_obj(client_queries: List[ClientQuery], clients: List[str] | None = None) List[Dict] ¶
Get the resource json object from the clients wrapper.
- Parameters:
client_queries – This is a list of ClientQuery objects that contain information about the resources to fetch from datasources.
clients – The list of clients to query.
- gem5.resources.client.get_resource_json_obj(resource_id, resource_version: str | None = None, clients: List[str] | None = None, gem5_version: str | None = '24.1.0.1') Dict ¶
Get the resource json object from the clients wrapper.
- Parameters:
resource_id – The resource id.
resource_version – The resource version.
clients – The list of clients to query.
gem5_version – The gem5 versions to filter the resources based on compatibility. By default, it is the gem5 version of the current build. If
None
, filtering based on compatibility is not performed.
- gem5.resources.client.list_resources(clients: List[str] | None = None, gem5_version: str | None = '24.1.0.1') Dict[str, List[str]] ¶
List all the resources available
- Parameters:
clients – The list of clients to query
gem5_version – The gem5 version of the resource to get. By default, it is the gem5 version of the current build. If set to
None
, it will return all gem5 versions of the resource.
- Returns:
A Python Dict where the key is the resource id and the value is a list of all the supported resource versions.