We build something like this for image processing tasks: https://github.com/ufo-kit/ufo-core
There is also a CLI interface that allows in principle what you want to do, e.g.
$ ufo-launch read path=foos.bin ! opencl filename=frobnicate.cl kernel=frobnicate ! fft ! blur ! write filename=bars.tif