-
Notifications
You must be signed in to change notification settings - Fork 159
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
Document setup for GPU on GCP #416
Comments
CC @cognigami |
It would also be helpful to have a diagnostic that a user can run to determine whether GPU simulation is actually enabled for qsimcirq (some script that fails with certainty if run on a device without GPUs or appropriate drivers). |
@peterse you can run |
Copied from the external thread: If you're using qsimcirq v0.10.2, it's not using GPU - we haven't cut a release with the support yet. Once qsimcirq GPU support is released (or if you're using the prerelease version of qsim), you can run
from the command line to determine whether qsim is using GPU. If GPU is not in use this will print |
One final note: because GPU support requires local compilation on a machine with GPU support, a fresh release of qsimcirq isn't particularly helpful here, since anyone using GPU is presumably already cloning from master. Sorry for the runaround here! |
The existing GCP documentation details how to set up a GCP VM to run Cirq circuits with qsimcirq, but only covers CPU-based execution. Now that GPU support is available at the qsimcirq level, we should also document how to use it on GCP.
Key details to cover:
sudo apt install -y nvidia-cuda-toolkit
export PATH=/usr/local/cuda-11.4/bin${PATH:+:${PATH}}
CC @jrossthomson
The text was updated successfully, but these errors were encountered: