Skip to content

fix: accumulate AVX2 and FMA compile flags on avx2 codelets - #409

Open
DiamonDinoia wants to merge 1 commit into
FFTW:masterfrom
DiamonDinoia:master
Open

fix: accumulate AVX2 and FMA compile flags on avx2 codelets#409
DiamonDinoia wants to merge 1 commit into
FFTW:masterfrom
DiamonDinoia:master

Conversation

@DiamonDinoia

Copy link
Copy Markdown

COMPILE_FLAGS is a single-valued property, so the HAVE_FMA block overwrote AVX2_FLAG set by the HAVE_AVX2 block, leaving the avx2 codelets compiled with only -mfma. AVX2 was then undefined and the build failed with:

simd-avx2-128.h: error: "compiling simd-avx2-128.h without avx2 support"

Use set_property(... APPEND_STRING ...) so both -mavx2 and -mfma are applied.

COMPILE_FLAGS is a single-valued property, so the HAVE_FMA block
overwrote AVX2_FLAG set by the HAVE_AVX2 block, leaving the avx2
codelets compiled with only -mfma. __AVX2__ was then undefined and
the build failed with:

  simd-avx2-128.h: error: "compiling simd-avx2-128.h without avx2 support"

Use set_property(... APPEND_STRING ...) so both -mavx2 and -mfma are
applied.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant