Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error on MSVC #325

Open
psadda opened this issue Nov 25, 2024 · 0 comments
Open

Build error on MSVC #325

psadda opened this issue Nov 25, 2024 · 0 comments

Comments

@psadda
Copy link

psadda commented Nov 25, 2024

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.)

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

No branches or pull requests

1 participant