lava-nc / lava-optimization

Neuromorphic mathematical optimization with Lava
https://lava-nc.org/optimization.html
BSD 3-Clause "New" or "Revised" License
51 stars 26 forks source link

pytests fail when installing lava-optimisation on MacBook Pro M1 #186

Open nicoliKim opened 1 year ago

nicoliKim commented 1 year ago

I am trying to install the lava-optimization library on my laptop, a MacBook Pro M1 from 2021 and I am using python 3.10 (more details below).

After following the steps to build from source from https://github.com/lava-nc/lava-optimization I ran the pytests and I found one of the tests actually failed with the following error message:

FAILED tests/lava/lib/optimization/solvers/generic/test_solver_cpu_backend.py::TestWorkloads::test_solve_set_partitioning - AssertionError: -17.0 != -34.0

A screenshot is attached for a self-explanatory image of the issue. Any idea if this problem is related to either the python interpreter or the M1 chip?

Environment:

Screenshot 2023-02-24 at 15 47 22