-
Notifications
You must be signed in to change notification settings - Fork 152
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
Not building with cuQuantum SDK (and cirq) #481
Comments
I noticed that the Makefile tests fail, so it it not building correctly. It might be a problem with GCC 11? Here is the make log:
|
That said, if you have the cuQuantum SDK installed, the CMake build process should automatically take cuQuantum into account. To pipe CUQUANTUM_DIR into CMake, you may need to export it by running:
(where |
@95-martin-orion have you read the log at all? the CUQUANTUM_DIR variable is set to "/home/rugantio/Downloads/cuquantum", you can see that it was correctly parsed. |
@rugantio Try adding the cuQuantum libraries to your LD_LIBRARY_PATH, something like:
|
RE: My read on the errors is that Adding @sergeisakov for his experience running these tests, and input on fixing warnings. |
@leofang thank you leo, linking the loader did solve the issue related to "make run-custatevec-tests", which now works fine and returns, correctly:
However there is still something wrong with the .so file installation (which at this point we can safely say that is independent of the tests). As I mentioned, I can find the qsim_custatevec.cpython-39-x86_64-linux-gnu.so in the local qsimcirc folder (@95-martin-orion so it seems that the
results in a |
I built qsim locally from this repo, also modifing the Makefile in order to build the cuQuantum files:
In fact in the local folder I have a "qsim_custatevec.cpython-39-x86_64-linux-gnu.so" file, but when I do "pip install ." it does not copy over to "/usr/lib/python3.9/site-packages/qsimcirq/"
If I instantiate a simulator that tries to use custatevec it does not find it:
results in a "ValueError: cuStateVec GPU execution requested, but not supported. If your device has GPU support and the NVIDIA cuStateVec library is installed, you may need to compile qsim locally."
Everything works fine with just CUDA11 (gpu_mode=0)
The text was updated successfully, but these errors were encountered: