New issue
Advanced search Search tips

Issue 783370 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Feb 2018
Cc:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 3
Type: Bug

Blocked on:
issue 803661



Sign in to add a comment

clang-cl does not support /arch:AVX512

Project Member Reported by johannko...@google.com, Nov 9 2017

Issue description

Low priority. Someone just added an avx512 function to libvpx. It is disabled in chromium for the time being.

What steps will reproduce the problem?
Attempt to build a file which contains avx512 instructions.
https://chromium.googlesource.com/webm/libvpx/+/master/vpx_dsp/x86/sad4d_avx512.c

https://chromium-review.googlesource.com/c/chromium/src/+/758802
plus
$ roll_dep.py third_party/libvpx/source/libvpx
$ cd third_party/libvpx
$ ./generate_gni --enable-avx512

cl.exe does not appear to require any arguments to build the file. libvpx builds (outside chromium) in VS 2017 and does not even set /arch:avx (as it does for avx/avx2 files)

What is the expected result?
Builds successfully.

What happens instead?
clang: error: argument unused during compilation: '/arch:AVX512' [-Werror,-Wunused-command-line-argument]

Unfortunately there is no documentation about /arch:AVX512, but cl.exe accepts it and defines __AVX512F__
 

Comment 1 by thakis@chromium.org, Jan 18 2018

Cc: h...@chromium.org

Comment 2 by thakis@chromium.org, Jan 24 2018

Owner: thakis@chromium.org
Status: Started (was: Untriaged)
looking

Comment 4 by thakis@chromium.org, Feb 21 2018

Status: Fixed (was: Started)
this should work now

Sign in to add a comment