concept array in category opencl

appears as: n array, array, rrays
OpenCL in Action: How to Accelerate Graphics and Computation

This is an excerpt from Manning's book OpenCL in Action: How to Accelerate Graphics and Computation.

OpenCL provides two functions that create new programs: clCreateProgramWithSource and clCreateProgramWithBinary. Both convert code into a cl_program, but neither accepts filenames or file handles. Therefore, if your kernel code is contained in a file, you’ll have to read the file’s content into a buffer before you can call either function. If you want to create a program from code in multiple files, you’ll need to create an array of buffers.

Vectors resemble arrays in that they contain multiple elements of the same type. But there are two important differences. First, a vector of a given type can only contain a specific number of elements. Second, when a vector is operated upon, every element is operated upon at the same time.