-
Notifications
You must be signed in to change notification settings - Fork 198
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
Cannot run CUDA-Q program on CPU #2497
Comments
Here is additional gdb log
|
Hi @clownchrys - the title of this issue says "Cannot run CUDA-Q program on CPU", but that is exactly what you are doing when you run with In any case, a first debugging step might be to run |
I think @clownchrys wants to run the program on a cpu without mentioning the target as qpp-cpu. I just tried in the latest nightly image.
|
The default behavior of CUDA-Q depends on whether or not a GPU is available. If a GPU is available, the default is the |
Aha! This is the result of
You means that default behavior, what I had run, works same as I really appreciate your kindness, again ++
|
Yes, that is correct. For future reference, the full list of requirements is captured here: https://nvidia.github.io/cuda-quantum/latest/using/install/local_installation.html#dependencies-and-compatibility.
Yes, it is my understanding that if you are running on a machine with an NVIDIA GPU, that running a) without any specified target and b) running with |
Required prerequisites
Describe the bug
It occurs an error above, when I finished build on CPU and run the binary file...
However, when I build with MPI options like
--target qpp-cpu
, It runs successfully!Please need your help...;(
Is it a bug, or how can I fix it?
Steps to reproduce the bug
program.cpp:
build & execute on bash:
Expected behavior
I wanna execute without
--target
option!Is this a regression? If it is, put the last known working version (or commit) here.
Not a regression
Environment
# Install MPI MPI_PATH=/usr/local/openmpi wget https://download.open-mpi.org/release/open-mpi/v5.0/openmpi-5.0.6.tar.gz tar -xvzf openmpi-5.0.6.tar.gz cd openmpi-5.0.6 ./configure --prefix=$MPI_PATH --with-cuda=$CUDA_PATH make -j6 all install export PATH=$MPI_PATH:$PATH
Suggestions
No response
The text was updated successfully, but these errors were encountered: