OriginQ / QPanda-2

QPanda 2 is an open source quantum computing framework developed by OriginQC that can be used to build, run, and optimize quantum algorithms.
https://originqc.com.cn/en/quantum_soft.html?type=qpanda&lv2id=43&lv3id=72
Apache License 2.0
1.16k stars 92 forks source link

windows11 vs2022 开启FIND_CUDA等参数,编译不通过,v2.1.16 #243

Closed kdvictor closed 3 weeks ago

kdvictor commented 3 weeks ago
  1. 开启所有参数 image

  2. 错误 image 严重性 代码 说明 项目 文件 行 禁止显示状态 错误 this declaration has no storage class or type specifier D:\Quantum\QPanda-2\build\x64-Debug\QPanda-2 D:\Quantum\QPanda-2\include\Core\VirtualQuantumProcessor\GPUGates\GPUGatesWrapper.cuh 16

严重性 代码 说明 项目 文件 行 禁止显示状态 错误 namespace "cuda::std" has no member "shared_ptr" D:\Quantum\QPanda-2\build\x64-Debug\QPanda-2 D:\Quantum\QPanda-2\include\Core\VirtualQuantumProcessor\GPUGates\GPUGatesWrapper.cuh 16

严重性 代码 说明 项目 文件 行 禁止显示状态 错误 class "cuda::device_state" has no member "m_type_gate_fun" D:\Quantum\QPanda-2\build\x64-Debug\QPanda-2 D:\Quantum\QPanda-2\Core\VirtualQuantumProcessor\GPUGates\GPUGatesWrapper.cu 512

kdvictor commented 3 weeks ago

使用master最新代码,已经解决了该问题。

ArrowYL commented 3 weeks ago

你好,首先-DUSE_CHEMIQ這個選項在最新版本已經捨棄,其次如果要使用-DFINA_CUDA需要确保本地cuda版本正确且有GPU硬件支持

kdvictor commented 3 weeks ago

你好,首先-DUSE_CHEMIQ這個選項在最新版本已經捨棄,其次如果要使用-DFINA_CUDA需要确保本地cuda版本正确且有GPU硬件支持

确保本地有GPU支持,并且通过master分支最新代码可以编译通过,v2.1.16有问题