CUDA_ERROR_ALREADY_MAPPED - error attempting to run CUDA on GTX1060 laptop

I’m trying to get CUDA to run under Windows 10 Pro on a new MSI GS73VR laptop with a GTX1060. I’m running CUDA through JCuda, and I get this error when I try to create the device context. The laptop has hybrid graphics that uses Optimus to switch between Intel and NVidia graphics devices - could this be the issue? I understood that this was only a problem under Linux. I get this error when no other programs are running except the calling program (and background processes).

Any input on this problem would be appreciated.