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

Compile with cuda in Ubuntu #235

Open
espREssOOOHHH opened this issue Nov 28, 2023 · 1 comment
Open

Compile with cuda in Ubuntu #235

espREssOOOHHH opened this issue Nov 28, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@espREssOOOHHH
Copy link

espREssOOOHHH commented Nov 28, 2023

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

@espREssOOOHHH espREssOOOHHH added the bug Something isn't working label Nov 28, 2023
@ArrowYL
Copy link
Contributor

ArrowYL commented Sep 18, 2024

建议您使用最新的QPanda2代码再编译一下,我们最新的代码对GPU模拟做了环境修改

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

2 participants