This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

MPI and static data memory

0 votes

I have some very large static data which I use to solve my PDEs with FEniCS. When running my program in parallel via MPI, the data are being loaded multiple times, for each processor. This is very wasteful and sometimes results in maxing out my memory.

Is there a way to load these static data only once and share between processes?

asked Jan 21, 2014 by pf4d FEniCS User (2,970 points)

1 Answer

+1 vote

You can load the data by rank 0 and implement queries by other processes.

answered Jan 22, 2014 by Jan Blechta FEniCS Expert (51,420 points)

can you provide any resource for understanding how to implement this?

Mesh can newly have custom communicator. Other objects inherit it from the mesh.

You probably need to specify your question deeply to obtain better answer.

...