Forum Discussion
@TJone2, this has nothing to do with Intel/Altera; you cannot transfer data directly from the host to the device local memory on any hardware, regardless of what OpenCL SDK or hardware you use, simply because device local memory is not addressable from the host side. In the case of FPGAs, since the size of local buffers has to be determined at compile-time anyway, there is really no point in defining local buffers in the kernel header. Intel FPGA SDK for OpenCL has to support this type of definition since it is part of the standard; however, I would personally avoid this method at all costs since it creates unnecessary limitations (e.g. buffer size has to be a power of two, a limitation that does not exist if the local buffer is defined inside of the kernel).