Skip to content

Installation of cuQuantum on 4 A40 Datacenter GPUs for running qiskit circuits #37

Locked Answered by mtjrider
intelligi123 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @intelligi123

Yes, mpirun is available in the container.
One option is to pass VM host networking through to the container, and call mpirun from within the container.

To do this, you will need to configure each container's SSH so that they are all mutually reachable defining aliases and hostfiles.

For example:

# Assuming each VM has one GPU, create a detached container named after the VM's hostname
docker run -it --detach --name client_${client_hostname}_0 --gpus "'device=0'" \
    --network=host \
    --uts=host \
    --ipc=host \
    nvcr.io/nvidia/cuquantum-appliance:23.06

# Next, create an SSH config with aliases.
# $ cat ./config
# Host client_${client_hostname}_0
#     Hostname …

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
10 replies
@intelligi123
Comment options

@mtjrider
Comment options

@intelligi123
Comment options

@mtjrider
Comment options

Answer selected by mtjrider
Comment options

You must be logged in to vote
1 reply
@mtjrider
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants