Blender Git Loki

Git Commits -> Revision c992fd3

Revision c992fd3 by Ray molenkamp (master)
September 2, 2020, 15:19 (GMT)
Cycles: Support WITH_CYCLES_NATIVE_ONLY with MSVC

This change enables the developer option `WITH_CYCLES_NATIVE_ONLY`
for MSVC. This allows a developer to just build the cycles
CPU kernel for their specific system rather than all kernels,
speeding up development.

Other platforms have had this option for years, but MSVC lacks
the compiler switch to target the host architecture hence it
always build all kernels.

This change uses a small helper program to detect the required
flags.

Only AVX/AVX2 are tested, for the following reasons

- SSE2 is enabled by default and requires no flags
- SSE3/4 have no specific build flags for msvc
- AVX512 is not yet supported by cycles

Differential Revision: https://developer.blender.org/D8775

Reviewed by: brecht, sergey

Commit Details:

Full Hash: c992fd3a3c13763f458e420507f044ec82155a81
Parent Commit: 1082edf
Lines Changed: +54, -0

1 Added Path:

/intern/cycles/cmake/msvc_arch_flags.c (+38, -0) (View)

1 Modified Path:

/intern/cycles/CMakeLists.txt (+16, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021