MycroftAI / mycroft-core

Mycroft Core, the Mycroft Artificial Intelligence platform.
https://mycroft.ai
Apache License 2.0
6.52k stars 1.27k forks source link

Feature request: Check for AVX instruction set during install #2232

Closed krisgesling closed 1 month ago

krisgesling commented 5 years ago

As of late last year TensorFlow requires the CPU to support the AVX instruction set. This is therefore required by the Precise wake word engine.

Currently there are no checks or warnings when installing Mycroft to indicate that this will be a problem. However a number of users have reported Precise failing and in the end it was identified that they were running on older or lower end hardware.

Mycroft could still be used with PocketSphinx as the wake word engine, however it would be better to notify the user such that they are a) aware of the reduced capability; and b) can choose whether or not to continue.

Advanced users may opt to build an older version of TensorFlow (v1.13) from source.

The simplest method (that I know of) to identify if AVX is supported is to check for avx in the cpuinfo flags eg: grep avx /proc/cpuinfo

Success criteria

arjangupta commented 5 years ago

Hello! I'm interested in this issue.

@krisgesling when you say "installing Mycroft", are you referring to the dev_setup.sh script at the top level of this repository? If yes, is this the script that I should edit to check for cpuinfo?

krisgesling commented 5 years ago

Hi Arjangupta,

Thanks for the offer of help! Another Community member has actually submitted PR #2269 for this. It looks like it didn't get linked automatically.

If you are interested in helping out, we definitely appreciate the help. We have a range of Issues tagged "help wanted" that might be of interest :grinning:

forslund commented 1 month ago

Closing Issue since we're archiving the repo