Multi-device bugfix for pwsafe-cuda.
Multi-device bugfix for pwsafe-cuda.