Skip to content

Fix resize.

The Allen codebase can be executed with either the Gaudi sequencer (eg. with any sequence in Moore) or the Allen sequencer (eg. Allen standalone or MooreOnline). The distinction is subtle and in particular this cannot be detected at compile time. Eg. consider the following two examples, where only the sequencer varies:

  • MooreOnline running on CPU steered by the Allen sequencer.
  • Moore running on CPU steered by the Gaudi sequencer.

There was a latent bug in the functionality provided by resize, which would only set_size when run in MooreOnline on CPU, while a free and reserve were also needed. This MR fixes that.

For future reference, the way to distinguish between the sequencers in the store is by checking whether m_store is nullptr (Gaudi sequencer).

Edited by Daniel Hugo Campora Perez

Merge request reports

Loading