By far the vast majority of retina macbook pros actually have Intel graphics adapters, rather than NVIDIA.
In that case, attempting to invoke CUDA code would issue the error shown in the OP (or segfault, depending on how robust the code is!).
(Although in the OP's case he's clearly checked so this isn't the case - but mentioned for general fullness of answers).
To check: Go to the apple sign (top left), click 'About This Mac' and 'More Info' to look at what graphics adapter is installed.