added cudaThreadsSynchronize. Tested on linux where dnormOutput wasn't working. Regenerate ptx file