I am attempting to write a simple OpenCL program however when compiling my kernel I get this error. I have scanned my code thoroughly for any memory leaks but it is very simple code and I can find nothing...

Could anyone give me some suggestions on what to look for when clCreateKernel throws CL_OUT_OF_HOST_MEMORY?