Skip to content

Cannot import CUDAQ on an HPC #3104

@talentkeychen

Description

@talentkeychen

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions