problem with the thrust :: sort_by_key

Hello! When I run the program using Visual Studio 2013 CUDA 7.5 an error occurs in the sort function. How to fix it?

you could start with error msg

An unhandled exception at 0x7420DAE8 in CUDA_1.exe: exclusion of Microsoft C ++: thrust :: system :: system_error at memory 0x0018F41C.

Make sure you’re running an x64 project in release mode.
This fixed the issue for me.