Skip to content
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

gpu issue on qiskit - aer method , docker - cuquantum-appliance:23.10 #113

Open
e-dinesh opened this issue Jan 28, 2024 · 1 comment
Open
Assignees
Labels
question Further information is requested triage needs triage

Comments

@e-dinesh
Copy link

e-dinesh commented Jan 28, 2024

Hi,
I'm facing an issue with my AER-State Vector simulation.

I'm using the docker image <nvcr.io/nvidia/cuquantum-appliance:23.10>
and run this file [https://github.com/qiskit-community/qiskit-community-tutorials/blob/master/aer/qv_cuStateVec.ipynb]

If I use < sim = AerSimulator(method='statevector', device='GPU') >, I can see the utilization of GPUs.
On the other hand, if I modify <sim = Aer.get_backend('statevector_simulator', device='GPU')> it points to cpu, NOT the GPUs.

Any idea, why is it?
@sam-stanwyck

@mtjrider mtjrider self-assigned this Feb 12, 2024
@mtjrider mtjrider added question Further information is requested triage needs triage labels Feb 12, 2024
@mtjrider
Copy link
Collaborator

Hi @e-dinesh

Thanks for posting. Sorry to hear you're having some trouble.

To diagnose, we'll need more information. Can you provide us with some output? See below.

  1. By using your container's Python:
import qiskit_aer
devices = qiskit_aer.backends.aer_simulator.AerSimulator().available_devices()
print(devices)
  1. What command did you launch to create the container?
##############↓↓↓↓↓↓↓↓↓↓↓↓
docker run -it --gpus all nvcr.io/nvidia/cuquantum-appliance:23.10
##############↑↑↑↑↑↑↑↑↑↑↑↑

If --gpus is not specified, the container falls back to a runtime configuration without visibility to the NVIDIA driver. In that situation, only the CPU is detectable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested triage needs triage
Projects
None yet
Development

No branches or pull requests

2 participants