mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
This should optimize for fast execution as much as possible without significantly increasing the binary size. Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -7,14 +7,14 @@ download:
|
||||
# Clang command line argument reference:
|
||||
# https://clang.llvm.org/docs/ClangCommandLineReference.html#x86
|
||||
libtensorflow:
|
||||
bazel build -c opt //tensorflow:libtensorflow.so --copt=-O3 --copt=-mno-avx2 --copt=-mno-avx --copt=-march=core2
|
||||
bazel build -c opt //tensorflow:libtensorflow.so --copt=-O2 --copt=-mno-avx2 --copt=-mno-avx --copt=-march=core2
|
||||
./create_archive.sh amd64 $(TF_VERSION)
|
||||
libtensorflow-avx:
|
||||
bazel build -c opt //tensorflow:libtensorflow.so --copt=-O3 --copt=-mavx
|
||||
bazel build -c opt //tensorflow:libtensorflow.so --copt=-O2 --copt=-mavx
|
||||
./create_archive.sh amd64-avx $(TF_VERSION)
|
||||
libtensorflow-avx2:
|
||||
bazel build -c opt //tensorflow:libtensorflow.so --copt=-O3 --copt=-mavx2 --copt=-mfma --copt=-mfpmath=both --copt=-msse4.2
|
||||
bazel build -c opt //tensorflow:libtensorflow.so --copt=-O2 --copt=-mavx2 --copt=-mfma --copt=-mfpmath=both --copt=-msse4.2
|
||||
./create_archive.sh amd64-avx2 $(TF_VERSION)
|
||||
libtensorflow-vnni:
|
||||
bazel build -c opt //tensorflow:libtensorflow.so --copt=-O3 --copt=-mavx2 --copt=-mavxvnni --copt=-mfma --copt=-mfpmath=both --copt=-msse4.2
|
||||
bazel build -c opt //tensorflow:libtensorflow.so --copt=-O2 --copt=-mavx2 --copt=-mavxvnni --copt=-mfma --copt=-mfpmath=both --copt=-msse4.2
|
||||
./create_archive.sh amd64-vnni $(TF_VERSION)
|
||||
@@ -7,5 +7,5 @@ download:
|
||||
# Clang command line argument reference:
|
||||
# https://clang.llvm.org/docs/ClangCommandLineReference.html#aarch64
|
||||
libtensorflow:
|
||||
bazel build -c opt //tensorflow:libtensorflow.so --copt=-march=armv8-a
|
||||
bazel build -c opt //tensorflow:libtensorflow.so --copt=-O2 --copt=-march=armv8-a
|
||||
./create_archive.sh arm64 $(TF_VERSION)
|
||||
|
||||
Reference in New Issue
Block a user