Skip to content

Build error on MSVC #325

@psadda

Description

@psadda

There is a typo in CMP_Core that leads to a build error on MSVC

https://github.com/GPUOpen-Tools/compressonator/blob/f4b53d79ec5abbb50924f58aebb7bf2793200b94/cmp_core/CMakeLists.txt#L99C52-L99C65

/arch:AVX-512 should instead be /arch:AVX512

The bad flag leads to a warning: ignoring invalid /arch: argument 'AVX-512'; for 64-bit expected one of AVX, AVX2, AVX512, AVX512F. The warning in turn leads to dozens of downstream compilation errors because the expected intrinsics are not available.

On a semi-related note, the if (WIN32) conditionals in this CMake file should probably be replaced with if (MSVC). (I don't think MinGW would like receiving those MSVC style arguments.)

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @psadda

        Issue actions

          Build error on MSVC · Issue #325 · GPUOpen-Tools/compressonator