Skip to content

Remove useless pack/unpack copies

Nicolas Tancogne-Dejean requested to merge remove_useless_unpacks into develop

Description

Adding the possibility of not unpacking the batch at the end of Hamiltonian apply. This is useful for algorithms entirely working with batches, such as RMMDIIS eigensolver. In this case, the code saves a lot of calls to pack_copy and unpack_copy, making the code faster.

News snippet

Save some useless operations for RMMDIIS eigensolver.

Checklist

  • I have checked that my code follows the Octopus coding standards
  • I have added tests for all the new features added in this request.

Merge request reports