コード例 #1
0
    def test_pipelining_running(self):
        args = argparse.Namespace(test=True,
                                  export=None,
                                  no_pipelining=False,
                                  report=False)
        session = pipelining.main(args)

        parsed_report = json.loads(session.getExecutionReport())
        pytest.pipelining_cycles = parsed_report['simulation']['cycles']
コード例 #2
0
    def test_pipelining_running(self):
        args = argparse.Namespace(test=True,
                                  export=None,
                                  no_pipelining=False,
                                  report=False)
        session = pipelining.main(args)

        parsed_report = json.loads(session.getExecutionReport())
        cycles = parsed_report['simulation']['cycles']
        print(f"\nRunning the model with pipelining took {cycles} cycles.")