OpenCL Cloo Null referenece exception when compiling kernel
问题 I'm trying to compile a program to run some opencl code using Cloo. static void Main(string[] arg) { CLCalc.InitCL(); string src = File.ReadAllText("kernels.cl"); CLCalc.Program.Compile(src); } The program was previously working fine, but now I get a null reference exception. At first I thought there was a bug in my opencl code but I replaced the opencl with a very simple kernel and it still would not compile. ie: static void Main(string[] arg) { CLCalc.InitCL(); //string src = File