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

Code does not compile due to internal compiler error: in maybe_undo_parenthesized_ref #2227

Open
diehlpk opened this issue Sep 12, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@diehlpk
Copy link

diehlpk commented Sep 12, 2024

Informations

  • Qiskit Aer version: master or 0.15
  • Python version: 3.12
  • Operating system: Linux

What is the current behavior?

The code does not compile using CUDA 12.4 and gcc 12.3

/users/diehlpk/compile/qiskit-aer/src/simulators/statevector/transformer.hpp:249:24: internal compiler error: in maybe_undo_parenthesized_ref, at cp/semantics.c:1740
       for (uint_t j = 0; j < N; j++)
                      ~~^~~~~
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.opensuse.org/> for instructions.

Steps to reproduce the problem

python3.12 ./setup.py bdist_wheel -- -DAER_THRUST_BACKEND=CUDA -DAER_CUDA_ARCH="9.0" -DCUQUANTUM_ROOT=/users/diehlpk/compile/cuquantum-linux-sbsa-24.08.0.5_cuda12-archive --

What is the expected behavior?

The code should compile

Suggested solutions

I played around changing the C++ code but could not solve it

@diehlpk diehlpk added the bug Something isn't working label Sep 12, 2024
@diehlpk
Copy link
Author

diehlpk commented Sep 16, 2024

Ok, after further debugging it seems the issue is not gcc 12.3 and it is the nvcc compiler wrapper.

@diehlpk
Copy link
Author

diehlpk commented Sep 17, 2024

Ok, it seems to be the combination of the cuda version with gcc 12 and it works with gcc 13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant