简体   繁体   中英

Tensorflow with bazel: avx ignored?

I'm trying to compile tensorflow by hand to take Advantage of avx. Unfortunately I it seems to be ignoring specifically these instructions. I might add that I'm working on a Windows 10. Any help would be appreciated. Thank you.

I used the following command for bazel:

bazel build -c opt --copt=-mavx --copt=-mavx2 --copt=-mfma --copt=-mfpmath=both -k //tensorflow/tools/pip_package:build_pip_package

用bazel编译

-mavx and so on are for GCC and Clang compilers only. Since you are using MSVC, you should use --copt=/arch:AVX --copt=/arch:AVX2 and so on instead.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM