PyTimeloop
Loading...
Searching...
No Matches
backend_calls.py File Reference

Namespaces

namespace  pytimeloop
 
namespace  pytimeloop.timeloopfe
 
namespace  pytimeloop.timeloopfe.common
 
namespace  pytimeloop.timeloopfe.common.backend_calls
 Call Timeloop from Python.
 

Functions

 pytimeloop.timeloopfe.common.backend_calls.delayed_import ()
 
str pytimeloop.timeloopfe.common.backend_calls._specification_to_yaml_string (BaseSpecification specification, bool for_model=False)
 Converts specification into YAML string, which may require transpilation.
 
Tuple[List[str], str] pytimeloop.timeloopfe.common.backend_calls._pre_call (BaseSpecification specification, str output_dir, Optional[List[str]] extra_input_files=None, bool for_model=False)
 Prepare to call Timeloop or Accelergy from Python !
 
Union[int, subprocess.Popen] pytimeloop.timeloopfe.common.backend_calls._call (str call, List[str] input_paths, str output_dir, Optional[Dict[str, str]] environment=None, Optional[str] dump_intermediate_to=None, Optional[str] log_to=None, List[str] extra_args=(), bool return_proc=False)
 Call a Timeloop or Accelergy command from Python.
 
Union[int, subprocess.Popen] pytimeloop.timeloopfe.common.backend_calls._parse_output (BaseSpecification specification, str output_dir, Union[int, subprocess.Popen] result, bool for_model=False)
 
Union[int, subprocess.Popen] pytimeloop.timeloopfe.common.backend_calls.call_mapper (BaseSpecification specification, str output_dir, Optional[Dict[str, str]] environment=None, Optional[List[str]] extra_input_files=None, Optional[str] dump_intermediate_to=None, Optional[Union[str, Any]] log_to=None, List[str] extra_args=(), bool return_proc=False)
 Call Timeloop Mapper from Python.
 
Union[int, subprocess.Popen] pytimeloop.timeloopfe.common.backend_calls.call_model (BaseSpecification specification, str output_dir, Optional[Dict[str, str]] environment=None, Optional[List[str]] extra_input_files=None, Optional[str] dump_intermediate_to=None, Optional[Union[str, Any]] log_to=None, List[str] extra_args=(), bool return_proc=False)
 Call Timeloop Model from Python.
 
Union[int, subprocess.Popen] pytimeloop.timeloopfe.common.backend_calls.call_accelergy_verbose (BaseSpecification specification, str output_dir, Optional[Dict[str, str]] environment=None, Optional[List[str]] extra_input_files=None, Optional[str] dump_intermediate_to=None, Optional[Union[str, Any]] log_to=None, List[str] extra_args=(), bool return_proc=False)
 Call Accelergy from Python.
 
 pytimeloop.timeloopfe.common.backend_calls.call_stop (Optional[subprocess.Popen] proc=None, Optional[int] max_wait_time=None, bool force=False)
 Stop Timeloop subprocesses.
 
"AccelergyInvocationResult" pytimeloop.timeloopfe.common.backend_calls.accelergy_app (BaseSpecification specification, str output_dir, Optional[List[str]] extra_input_files=None)
 Call the PyTimeloop Accelergy interface.
 
 pytimeloop.timeloopfe.common.backend_calls.to_mapper_app (BaseSpecification specification, str output_dir, Optional[List[str]] extra_input_files=None)
 Create a PyTimeloop MapperApp object from a specification.
 
 pytimeloop.timeloopfe.common.backend_calls.to_model_app (BaseSpecification specification, str output_dir, Optional[List[str]] extra_input_files=None)
 Create a PyTimeloop ModelApp object from a specification.
 

Variables

bool pytimeloop.timeloopfe.common.backend_calls.DELAYED_IMPORT_DONE = False