Intel® Embree Ray Tracing Kernels
Discussion forum on the open source ray tracing kernels for fast photo-realistic rendering on Intel® CPU(s)

Handle SSE?

theigors
Beginner
371 Views

Hi All

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?

Thanks

0 Kudos
2 Replies
SvenW_Intel
Moderator
371 Views

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.

0 Kudos
theigors
Beginner
371 Views

Thx Sven. I guess so but never did it before, thus it's better to ak

0 Kudos
Reply