Skip to content

Building with ClangCL/MSVC for x86_64 fails with the default configuration #326

Description

@solbjorn

A lot of compiler errors of the same type within one file:

src\core\transform\ojph_transform_avx512.cpp(228,23): error : always_inline function '_mm512_set1_ps' requires target feature 'avx512f', but would be inlined into function 'avx512_irv_vert_step' that is compiled without support for 'avx512f'
    228 |       __m512 factor = _mm512_set1_ps(a);
        |                       ^

I used OJPH_DISABLE_AVX512=ON for now, it compiles fine. It's sorta ok as don't have AVX512 on my CPU, but I believe the library should compile cleanly to use runtime dispatching on CPUs with AVX512.

LLVM 22.1.8, I use -flto -mavx2 among others, but this shouldn't have any impact on the mentioned file.

zlib-ng also compiles with AVX512 support by default, but doesn't have any build issues.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions