I realize my question sounds naive, maybe it's well-known issue - but not for me ;-)
How should I handle SSE? We want to include Embree code into our app for different users, no way to know concrete kind of supported SSE on user's machine before app runs. Should we build a series of libs (one per each SSE kind) and use one in runtime? Or there are better/simple ways?
Embree does not support to dynamically select code paths optimized for the ISA of the machine it is running on. You can only select the ISA Embree is optimized for at compile time. Compiling Embree into different shared libraries per SSE type is currently the simplest approach to achieve your goal.