ARM GPU modifications

Add function to check if local memory is present.  Without this check the OpenCL code generation fails on systems without local memory.