Skip to content

RuntimeError: cudaGetDeviceCount failed, ret[100],no CUDA-capable device is detected (cudaGetDeviceCount) #48

Description

@YangshuaiWang

你好,我是Linux系统没有GPU Python 3.10,按照pip install pyvqnet安装后,运行 import pyvqnet 报错:
>>> import pyvqnet Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/zfs/users/yswang2021/yswang2021/miniconda3/envs/qml/lib/python3.10/site-packages/pyvqnet/__init__.py", line 27, in <module> from . import nn, optim, qnn, tensor, utils, data, _core, dtype, device,backends File "/zfs/users/yswang2021/yswang2021/miniconda3/envs/qml/lib/python3.10/site-packages/pyvqnet/nn/__init__.py", line 4, in <module> from .parameter import Parameter File "pyvqnet/nn/parameter.py", line 17, in init pyvqnet.nn.parameter File "/zfs/users/yswang2021/yswang2021/miniconda3/envs/qml/lib/python3.10/site-packages/pyvqnet/tensor/__init__.py", line 5, in <module> from .tensor import * File "pyvqnet/tensor/tensor.py", line 42, in init pyvqnet.tensor.tensor File "pyvqnet/tensor/utils.py", line 5, in init pyvqnet.tensor.utils File "pyvqnet/backends.py", line 22, in init pyvqnet.backends File "/zfs/users/yswang2021/yswang2021/miniconda3/envs/qml/lib/python3.10/site-packages/pyvqnet/torch/__init__.py", line 1, in <module> from ._tensor import * File "pyvqnet/torch/_tensor.py", line 27, in init pyvqnet.torch._tensor File "pyvqnet/torch/utils.py", line 5, in init pyvqnet.torch.utils File "pyvqnet/device.py", line 26, in init pyvqnet.device File "pyvqnet/device.py", line 22, in pyvqnet.device.get_gpu_max_count RuntimeError: cudaGetDeviceCount failed, ret[100],no CUDA-capable device is detected (cudaGetDeviceCount)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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