RenderKit / rkcommon

Intel RenderKit common C++/CMake infrastructure
Apache License 2.0
17 stars 10 forks source link

tasking_system_init: force SIMD off with `RKCOMMON_NO_SIMD` #10

Closed mathstuf closed 1 year ago

mathstuf commented 1 year ago

When the TBB backend is in use, the intrinsics headers are included through them. Instead of checking "do we already have the macros set", just force them to be no-op macro expansions via a local macro name instead when RKCOMMON_NO_SIMD is requested.

Fixes: #9

mathstuf commented 1 year ago

To be fixed in OSPRay 3 by setting the flags in a scoped way via the ISPC workers rather than globally here.