My call to clBuildProgram is failing and giving me the following error message in the build log:

Using Device (NVIDIA Corporation : GeForce GTX 260)
Failed to build program executable

ptxas application ptx input, line 133; error : Predicate variable 'sampleKernel_param_6' must be in register state space
: Retrieving binary for 'anonymous_jit_identity', for gpu='sm_13', usage mode=''

My source file contains two kernels and two helper functions. I can provide some of the code if needed but I don't really even know what this error relates to. I tried for a while to search for this error online but couldn't find any information. The line number it is reporting the error at is a call to one of the helper functions but I'm not sure if it actually has anything to do with the error...

Code :
sample = complexAdd(sample, scattererContribution);

Code :
double2 complexAdd(double2 a, double2 b)
	double2 rv;
	rv.x = a.x + b.x;
	rv.y = a.y + b.y;
	return rv;

I can provide more of my code if necessary but since I didn't know where to begin with this error I didn't know how to narrow down the portion of the code that was incorrect.