shader limitation How to find out the memory limitations on shaders

I am new to directcompute. Just want to find out the limitations on compute shaders. For example, if I have a calculation routine in c++ which has a lot of local variables, say total of 50M in size. What will happen if I code it as a compute shader? Will I get runtime error or compile time errors when the limit is exceeded?

Thanks