New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Encountring "MPI_ERR_COUNT: invalid count argument" when creating GHZ states on multiple nodes #2077
Comments
could you try running with smaller qubits on 2 nodes, and also smaller qubits on single node with multiple-processes |
I selected 28 qubits and code is same except I have added algorithm_globals.random_seed=1000: Here is the code:
For the case of two nodes:
Queries: For multiple processes on single node:
and worked fine when ran while selecting
And again I tried adding
Queries: Here memory required is Similar Error is being generated when I run with
So main problem is my circuit is not running by distributing statevector and sharing resources. How can I achieve this? |
Hi @doichanj, Is there any update on the issue? btw I asked this question on openmpi issues and according to there response this is some sort of type error
Can you please suggest what I can do to resolve this or I need to wait for a patch? Just want to make one thing clear, if my circuit is taking total of 16G RAM, calling two mpi process on two nodes (one each) will divide the required resources (8G on each node) or not as in my case both nodes are using 16G RAM as two independent processes (statevectors) are running as opposed to distribution of one statevector. |
Informations
What is the current behavior?
I am running a code to create GHZ state using 30 qubits, using statevector simulator which generated insufficient memory error
qiskit.exceptions.QiskitError: 'ERROR: [Experiment 0] Insufficient memory to run circuit circuit-158 using the statevector simulator. Required memory: 16384M, max memory: 15903M , ERROR: Insufficient memory to run circuit circuit-158 using the statevector simulator. Required memory: 16384M, max memory: 15903M'
I added a node and run script with two nodes but it spilled above error:
command:
mpirun -np 2 -machinefile machinefile.txt python3 ghz.py
Error:
Here is the code
Steps to reproduce the problem
Running code with mpirun generates error
What is the expected behavior?
Insufficient Memory issue should be resolved and code should able to simulate GHZ state.
Suggested solutions
The error is in MPI_Irecv method of MPI and MPI_ERR_COUNT: invalid count argument suggests that there is some mismatch in argument type.
The text was updated successfully, but these errors were encountered: