OpenCL cycles not working

I’ve tried to use CUDA but it says I need shader model 1.3, I only have 1.2.

So I tried to use OpenCL next but after compiling the kernel for a while it then brings up a message:

OpenCL build failed: errors in console
ptxas fatal   : Memory allocation failure

What does this mean and how can I fix it?

Thanks.