get cuda device info, added class init