adapt gpu initialization multiple gpu cards