Add dtype option for sharedX