IBM / aihwkit

IBM Analog Hardware Acceleration Kit
https://aihwkit.readthedocs.io
Apache License 2.0
334 stars 139 forks source link

More informative detection of dependency versions #27

Open diego-plan9 opened 3 years ago

diego-plan9 commented 3 years ago

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

maljoras commented 6 months ago

See also #545 which might be related

Raghucharan16 commented 2 months ago

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.