-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Description
We have a couple common generations of CPU above the baseline x86_64 instruction - namely sandybridge and haswell, with AVX and AVX2/BMI/BMI2 respectively.
LLVM-backed languages and GGC 4.9+ all support "x86-64, sandybridge, haswell, native" for the -march/--target-cpu parameters. GCC 4.8 uses alternate identifiers corei7-avx and core-avx2 for those platforms.
These map nicely to MSVC /arch:AVX and /arch:AVX2, which is as granular as MSVC goes.
For now I'm using an extra field in .conan/settings.yml: target_cpu: [x86, x86-64, nehalem, sandybridge, haswell, native], but I need to move this down into the packages I consume as well, if I want to pivot on sandybridge/haswell support.
Has this come up before? Any convention to adopt?
mjvankampen, anton-danielsson, a4andromeda, rdguerrerom and weynaa