Skip to content

Compile with cuda in Ubuntu #235

@espREssOOOHHH

Description

@espREssOOOHHH

QPanda

基本信息

  • QPanda 版本:v2.1.16
  • 操作系统:Ubuntu 22.04LTS

Bug是什么?

Build from source, error occured like below.

'''
/home/**/QPanda-2/include/Core/VirtualQuantumProcessor/GPUGates/GPUGatesWrapper.cuh(16): error: qualified name is not allowed
std::shared_ptr m_norm_fun;
^

/home/**/QPanda-2/include/Core/VirtualQuantumProcessor/GPUGates/GPUGatesWrapper.cuh(16): error: this declaration has no storage class or type specifier
std::shared_ptr m_norm_fun;
^

/home/**/QPanda-2/include/Core/VirtualQuantumProcessor/GPUGates/GPUGatesWrapper.cuh(16): error: expected a ";"
std::shared_ptr m_norm_fun;
^
'''

复现Bug的步骤?

'''
cmake -DFIND_CUDA=ON -DUSE_PYQPANDA=ON ..
sudo make install -j12
'''

GPU details: '| NVIDIA-SMI 525.89.02 Driver Version: 525.89.02 CUDA Version: 12.0 |'
dual-3090

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions