Developing optimized libraries for scalable OpenCL acceleration on FPGAs