Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(311)

Issue 1380943002: Add AVX2 detection (Closed)

Created:
5 years, 2 months ago by fbarchard1
Modified:
5 years, 2 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add AVX2 detection. Update unittest to test avx and avx2, including for win64 with clangcl. Add AVX2 to uma for histograms. BUG=chromium:537916, chromium:168866 Committed: https://crrev.com/0ce41ae0824b15da94b7ec5f3293f8889c56362a Cr-Commit-Position: refs/heads/master@{#351949}

Patch Set 1 #

Patch Set 2 : unittests for clangcl can test win64 #

Patch Set 3 : add reviewers #

Patch Set 4 : fix lint warnings #

Patch Set 5 : fix typo in xgetbv #

Total comments: 10

Patch Set 6 : disable clangcl 64 bit tests #

Patch Set 7 : change test to be visual c 32 bit specific #

Total comments: 2

Patch Set 8 : endif comment for gcc compiler #

Patch Set 9 : no change... git pull to merge head #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -36 lines) Patch
M base/cpu.h View 3 chunks +3 lines, -0 lines 0 comments Download
M base/cpu.cc View 1 2 3 4 8 chunks +12 lines, -4 lines 0 comments Download
M base/cpu_unittest.cc View 1 2 3 4 5 6 7 2 chunks +55 lines, -32 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 20 (7 generated)
rkaplow
lgtm histogram lgtm
5 years, 2 months ago (2015-10-01 15:04:14 UTC) #2
Mark Mentovai
Frank, I didn’t see that you requested review on this. Is it ready?
5 years, 2 months ago (2015-10-01 15:50:07 UTC) #3
fbarchard
Ready for review, Mark. Fixed typo in xgetbv
5 years, 2 months ago (2015-10-01 17:35:30 UTC) #5
Mark Mentovai
https://codereview.chromium.org/1380943002/diff/80001/base/cpu_unittest.cc File base/cpu_unittest.cc (right): https://codereview.chromium.org/1380943002/diff/80001/base/cpu_unittest.cc#newcode29 base/cpu_unittest.cc:29: #if defined(__x86_64__) || defined(__i386__) Can you use the build/build_config.h ...
5 years, 2 months ago (2015-10-01 17:54:15 UTC) #6
fbarchard
caveat This version disables the test for win64. Tested with drcpusim: \bin\DynamoRIO-Windows-5.0.16708-0x5ee2a05\bin32\drrun -t drcpusim -continue ...
5 years, 2 months ago (2015-10-01 18:42:06 UTC) #7
Mark Mentovai
LGTM https://codereview.chromium.org/1380943002/diff/90005/base/cpu_unittest.cc File base/cpu_unittest.cc (right): https://codereview.chromium.org/1380943002/diff/90005/base/cpu_unittest.cc#newcode114 base/cpu_unittest.cc:114: #endif // defined(__x86_64__) || defined(__i386__) Fix this to ...
5 years, 2 months ago (2015-10-01 19:58:28 UTC) #8
fbarchard
avx2 tested with intel emulator c:\intelsde\sde -ast -hsw -- out\Debug\base_unittests.exe --gtest_filter=*CPU* Note: Google Test filter ...
5 years, 2 months ago (2015-10-01 21:27:52 UTC) #9
Mark Mentovai
LGTM still
5 years, 2 months ago (2015-10-01 21:32:06 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1380943002/130001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1380943002/130001
5 years, 2 months ago (2015-10-01 22:59:51 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/111957)
5 years, 2 months ago (2015-10-01 23:05:16 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1380943002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1380943002/140001
5 years, 2 months ago (2015-10-01 23:40:35 UTC) #18
commit-bot: I haz the power
Committed patchset #9 (id:140001)
5 years, 2 months ago (2015-10-02 03:23:28 UTC) #19
commit-bot: I haz the power
5 years, 2 months ago (2015-10-02 03:24:38 UTC) #20
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/0ce41ae0824b15da94b7ec5f3293f8889c56362a
Cr-Commit-Position: refs/heads/master@{#351949}

Powered by Google App Engine
This is Rietveld 408576698