Cannot import CUDAQ on an HPC
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 1.1k
- Forks
- 456
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 165
Description
Hi, maybe this question is more appropriate to ask our HPC admin but since he/she has not yet replied to me for some time, I'll have to ask here:
I’m very new to CUDA-Q. I tried to install CUDA-Q on our school’s HPC. Everything looks fine without any error or warning, but when I try to validate my installation, I cannot even import CUDA-Q and I got a “Segmentation Fault (core dumped)”. Below is what I do. The GPU is H100.
qsub -I -l select=1:mem=5GB:ncpus=1:ngpus=1 -q -P
module load cuda/12.2
module load miniforge/24.3
conda create -n cudaq python=3.10 -y
conda activate cudaq
pip install cudaq
Below is the information for nvcc:
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Tue_Aug_15_22:02:13_PDT_2023
Cuda compilation tools, release 12.2, V12.2.140
Build cuda_12.2.r12.2/compiler.33191640_0
and here is the information for nvidia-smi:
Tue Jun 24 20:13:58 2025
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.144.03 Driver Version: 550.144.03 CUDA Version: 12.4 |
|-----------------------------------------+------------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA H100 80GB HBM3 On | 00000000:9D:00.0 Off | 0 |
| N/A 29C P0 70W / 700W | 1MiB / 81559MiB | 0% Default |
| | | Disabled |
+-----------------------------------------+------------------------+----------------------+
+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| No running processes found |
+-----------------------------------------------------------------------------------------+
and this is what I have from python:
Python 3.10.18 | packaged by conda-forge | (main, Jun 4 2025, 14:45:41) [GCC 13.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cudaq
Segmentation fault (core dumped)
Any idea on what happend? Thank you!
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing import cudaq in the reported Python 3.10 conda environment on an H100, using the stated CUDA 12.2 module and checking nvcc and nvidia-smi details. Done means the installation imports without a segmentation fault, or the issue documents a confirmed environment or compatibility cause.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- hpc
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100