conda-forge / cuquantum-feedstock

A conda-smithy repository for cuquantum.
BSD 3-Clause "New" or "Revised" License
3 stars 4 forks source link

`cuquantum` should also `run_export` the bundled cusv/cutn? #53

Closed leofang closed 8 months ago

leofang commented 10 months ago

Solution to issue cannot be found in the documentation.

Issue

When using cuquantum as a build-time dependency in https://github.com/conda-forge/qiskit-aer-feedstock/pull/19, I noticed that there appears overlinking errors:

  ERROR (qiskit-aer,lib/python3.8/site-packages/qiskit_aer/backends/controller_wrappers.cpython-38-x86_64-linux-gnu.so): Needed DSO lib/libcustatevec.so.1 found in ['custatevec', 'custatevec', 'custatevec']
  ERROR (qiskit-aer,lib/python3.8/site-packages/qiskit_aer/backends/controller_wrappers.cpython-38-x86_64-linux-gnu.so): .. but ['custatevec', 'custatevec', 'custatevec'] not in reqs/run, (i.e. it is overlinking) (likely) or a missing dependency (less likely)
  ERROR (qiskit-aer,lib/python3.8/site-packages/qiskit_aer/backends/controller_wrappers.cpython-38-x86_64-linux-gnu.so): Needed DSO lib/libcutensornet.so.2 found in ['cutensornet', 'cutensornet', 'cutensornet']
  ERROR (qiskit-aer,lib/python3.8/site-packages/qiskit_aer/backends/controller_wrappers.cpython-38-x86_64-linux-gnu.so): .. but ['cutensornet', 'cutensornet', 'cutensornet'] not in reqs/run, (i.e. it is overlinking) (likely) or a missing dependency (less likely)

https://github.com/conda-forge/qiskit-aer-feedstock/runs/19570312421

This happens because cuquantum does not set run_exports, and it appears that it doesn't re-export the requirements from cusv/cutn (with hindsight this is probably correct), so we need to fix it manually.

Installed packages

n/a

Environment info

n/a
leofang commented 10 months ago

This is not urgent as there's an obvious workaround: just use custatevec and cutensornet explicitly as build-time dependencies.