Improvements on sha512crypt-opencl and map device numbers between