aihwkit icon indicating copy to clipboard operation
aihwkit copied to clipboard

More informative detection of dependency versions

Open diego-plan9 opened this issue 4 years ago • 2 comments

Description and motivation

While we have a manageable number of build dependencies and we list the required versions in the docs, for some of them we don't explicitly check during the cmake build, which can lead to obscure and not easy to debug problems during compilation.

By checking the versions at compile time we would be able to troubleshoot quicker, and overall provide a smoother experience when building. One particularly tricky case is pybind11, which is lagging behind a bit on some distributions and might go unnoticed until the final stages of the compilation.

Proposed solution

Make use of cmake commands for defining the minimal versions, or other means that allow failing the build early if unsupported versions are detected.

Alternatives and other information

diego-plan9 avatar Oct 16 '20 15:10 diego-plan9

See also #545 which might be related

maljoras avatar Dec 29 '23 18:12 maljoras

when i'm installing aihwkit via pip install command i'm getting _lzma module not found. I was trying to setup a nn using aihwkit on mnist data. so how can properly install it or which python version perfectly supports it. I'm getting torch and torchvision dependency errors since aihwkit needs torch 2.0.1 but torchvision needs torch 2.3 and if all were installed i'm getting _lzma module not found. I also installed lzma in my ubuntu by sudp apt install aihwkit.

Edit: It worked when i tried installing the dependencies of aihwkit first before the library itself.

Raghucharan16 avatar Apr 30 '24 11:04 Raghucharan16