Hi there,

I was studying opencl until I see the clCreateProgramWithSource(). This function uses, as a parameter, a string which is the kernel source code to be built. But, is there any specific reason why not get a file path and read it? Any security reason?

Every time that I want to use a kernel program I need to read the kernel file, then pass its content to a buffer. So, it could be better if opencl has support to read files.