mirror of
https://github.com/photoprism/photoprism.git
synced 2026-01-23 02:24:24 +00:00
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
parent
a3456637cd
commit
332e57d59f
2 changed files with 3 additions and 3 deletions
4
scripts/dist/install-tensorflow.sh
vendored
4
scripts/dist/install-tensorflow.sh
vendored
|
|
@ -66,9 +66,9 @@ if [[ $TF_DRIVER == "auto" ]]; then
|
|||
|
||||
CPU_DETECTED=$(lshw -c processor -json 2>/dev/null)
|
||||
|
||||
if [[ $(echo "${CPU_DETECTED}" | jq -r '.[0].capabilities.amx_tile') == "true" ]]; then
|
||||
if [[ $(echo "${CPU_DETECTED}" | jq -r '.[0].capabilities.avx512_vnni') == "true" ]]; then
|
||||
TF_DRIVER="avx512"
|
||||
echo "✅ Your CPU supports AMX-AVX512 Advanced Matrix Extensions"
|
||||
echo "✅ Your CPU supports AVX512-VNNI Vector Neural Network Instructions"
|
||||
if [[ $(lshw -c display -json 2>/dev/null | jq -r '.[0].configuration.driver') == "nvidia" ]]; then
|
||||
echo "✅ You can optionally install the tensorflow-gpu version as an Nvidia GPU was detected"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue