How to compile Tensorflow with SSE4.2 and AVX instructions?

前端 未结 12 857
南笙
南笙 2020-11-22 04:14

This is the message received from running a script to check if Tensorflow is working:

I tensorflow/stream_executor/dso_loader.cc:125] successfully opened CUD         


        
12条回答
  •  执笔经年
    2020-11-22 04:46

    To compile TensorFlow with SSE4.2 and AVX, you can use directly

    bazel build --config=mkl --config="opt" --copt="-march=broadwell" --copt="-O3" //tensorflow/tools/pip_package:build_pip_package

    Source: https://github.com/tensorflow/tensorflow/blob/master/tensorflow/tools/docker/Dockerfile.devel-cpu-mkl

提交回复
热议问题