Working and tested multi-GPU code