added multi-GPU support