I am evaluating OpenCL for my purposes. It occurred to me that you can't assume it working out-of-the-box on either Windows or Mac because:
- Windows needs an OpenCL driver (which, of course, can be installed)
- MacOS supports OpenCL only on MacOS >= 10.6
So I'd have to code FPU/SSE/AVX code and OpenCL separately to produce two binaries: one without and one with OpenCL support.
It would be much better, if I could compile OpenCL at compiletime into SSE/AVX and then ship a binary without OpenCL in it. This way I wouldn't need a separate implementation for FPU/SSE/AVX!
Is there a way to do it?
Cheers, - clemens