Code Monkey home page Code Monkey logo

Comments (3)

Helveg avatar Helveg commented on July 2, 2024

Similar one, throwing it in here:

======================================================================
FAIL: test_multi_indegree (test_connectivity.TestFixedIndegree)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/runner/work/bsb-core/bsb-core/tests/test_connectivity.py", line 694, in test_multi_indegree
    self.assertTrue(np.all(total == 50), "Not all cells have indegree 50")
AssertionError: False is not true : Not all cells have indegree 50

----------------------------------------------------------------------
Ran 374 tests in 30.225s

FAILED (failures=1, skipped=21)
ok
test_unequal_len (test_voxels.TestVoxelSet) ... ok
test_volume (test_voxels.TestVoxelSet) ... ok
test_weird_usage (test_voxels.TestVoxelSet) ... ok

======================================================================
FAIL: test_multi_indegree (test_connectivity.TestFixedIndegree)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/runner/work/bsb-core/bsb-core/tests/test_connectivity.py", line 694, in test_multi_indegree
    self.assertTrue(np.all(total == 50), "Not all cells have indegree 50")
AssertionError: False is not true : Not all cells have indegree 50

----------------------------------------------------------------------
Ran 374 tests in 30.493s

FAILED (failures=1, skipped=21)
--------------------------------------------------------------------------

they all seem to be dealing with some sort of floating point error perhaps?

from bsb-core.

drodarie avatar drodarie commented on July 2, 2024

I tried to force the dtype of the numpy arrays to be int in test_multi_indegree but that did not seem to resolve the issue... I would have to dig more on this.

from bsb-core.

drodarie avatar drodarie commented on July 2, 2024

It seems that the issue is only happening with MPI.
I managed to replicate the issue locally with that command (it is quite random however):

mpiexec -n 2 python -m unittest test_connectivity.TestFixedIndegree.test_multi_indegree

In this scenario, it seems that the jobs of multi_indegree are duplicated for some reason. I could test that by printing some logs within the connect function: this function is called twice for each postsynaptic chunk for this strategy. Surprisingly, the indegree strategy jobs does not seem to be duplicated.

I also tried to write in logs the jobs that are put in the pool for the multi_indegree strategy in InvertedRoI.queue but doing so seems to fix the issue... Could it be some synchronization issue?

from bsb-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.