tmLQCD is a freely available software suite providing a set of tools to be used in lattice QCD simulations. This is mainly a HMC implementation (including PHMC and RHMC) for Wilson, Wilson Clover and Wilson twisted mass fermions and inverter for different versions of the Dirac operator. The code is fully parallelised and ships with optimisations for various modern architectures, such as commodity PC clusters and the Blue Gene family.
so invert_quda_direct indeed returns the number of iterations. tmLQCD_invert should probably also be made to return the number of iterations for consistency reasons, good catch
return 0 upon success vs. return iteration number ?