MD5_CUDA_KERNEL_CREATE_LONG(48) // Copy the shared variables to the host extern "C" void copyMD5DataToConstant(char *hostCharset, int charsetLength, unsigned char *hostCharsetLengths, unsigned char *hostSharedBitmap, int threadId) { CUDA_SAFE_CALL(cudaMemcpyToSymbol(deviceCharset, hostCharset, (MAX_CHARSET_LENGTH * charsetLength))); CUDA_SAFE_CALL(cudaMemcpyToSymbol(constantBitmap, hostSharedBitmap, 8192)); CUDA_SAFE_CALL(cudaMemcpyToSymbol(charsetLengths, hostCharsetLengths, MAX_PASSWORD_LEN)); }