# MultiCore implementation with neBEM

**URL:** <https://root-forum.cern.ch/t/multicore-implementation-with-nebem/64729>\
**Category:** Garfield++\
**Created:** [March 2, 2026, 3:30pm UTC](https://root-forum.cern.ch/t/multicore-implementation-with-nebem/64729 "2026-03-02T15:30:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gzunica](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/g/3e96dc/32.png) [@gzunica](https://root-forum.cern.ch/u/gzunica)\
**Post date:** [March 2, 2026, 3:30pm UTC](https://root-forum.cern.ch/t/multicore-implementation-with-nebem/64729/1 "2026-03-02T15:30:32Z")

</div>

Dear Experts,

I am am trying to parallelise the computation and inversion of the influence matrix in neBEM.

I’m using “nebem.SetNumberOf Threads()” to do so, but it seems that increasing the number of requested cores is slowing down significantly the matrix inversion and increasing the solution error.

For example, for a 1100 x 1100 matrix, i got the following results:

- 1 core: setup time of 11 sec, inversion time of 13 sec, max error 10^-8
- 2 cores: setup time of 12 sec, inversion time of 20 sec, max error 15k.
- 8 cores: setup time of 20 sec, inversion time of 400 sec, max error 600k.

I think openMP is correctly installed (the CMakeList.txt contains the following lines: find\_package(OpenMP), \<BOOL:${OpenMP\_CXX\_FOUND}:OpenMP::OpenMP\_CXX\>).

Is there a way to correctly set up and run neBEM with OpenMP?  
I did not manage to find any instruction about enabling OpenMP while building/making the project.

Thank you in advance!

---

<div class="post-metadata">

**Author:** ![StephanH](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/c68b51/32.png) [@StephanH](https://root-forum.cern.ch/u/StephanH)\
**Post date:** [March 3, 2026, 11:12am UTC](https://root-forum.cern.ch/t/multicore-implementation-with-nebem/64729/2 "2026-03-03T11:12:41Z")

</div>

Hello, I invite @hschindl to have a look.

---

<div class="post-metadata">

**Author:** ![Piet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/piet/32/12536_2.png) [@Piet](https://root-forum.cern.ch/u/Piet)\
**Post date:** [March 4, 2026, 3:19pm UTC](https://root-forum.cern.ch/t/multicore-implementation-with-nebem/64729/3 "2026-03-04T15:19:51Z")

</div>

I ll invite also @pratikm to have a look.

---

<div class="post-metadata">

**Author:** ![pratikm](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pratikm/32/38816_2.png) [@pratikm](https://root-forum.cern.ch/u/pratikm)\
**Post date:** [March 9, 2026, 2:51pm UTC](https://root-forum.cern.ch/t/multicore-implementation-with-nebem/64729/4 "2026-03-09T14:51:05Z")

</div>

Unfortunately, I am unable to login to the forum.

I would request gzunica to send me the code so that I can try it on my system.

Best,  
Supratik

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [March 23, 2026, 2:52pm UTC](https://root-forum.cern.ch/t/multicore-implementation-with-nebem/64729/5 "2026-03-23T14:52:00Z")

</div>

Closed on March 23, 2026, 2:52pm UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
