Skip to content

Link in cudaq::nvqpp for CUDA-Q libraries - #960

Draft
lmondada wants to merge 2 commits into
mainfrom
lm/use-nvqpp-cmake
Draft

lmondada wants to merge 2 commits into
mainfrom
lm/use-nvqpp-cmake

Conversation

@lmondada

@lmondada lmondada commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

This fix should be backward compatible. I.e. revert the commit that hikes .cudaq_version before merging. Requires NVIDIA/cuda-quantum#6003.

This should fix the latest nightly failure.

Signed-off-by: Luca Mondada <luca@mondada.net>
Signed-off-by: Luca Mondada <luca@mondada.net>
iqm-bhoffmann pushed a commit to iqm-finland/cuda-quantum that referenced this pull request Nov 30, 2026
When object files compiled with `nvq++ -c` are linked together, the
downstream developer must make sure that the relevant CUDA-Q runtime
libraries are linked in (see e.g. NVIDIA#5964 NVIDIA#6001).

This is done automatically when using `nvq++`, but users using standard
C++ tooling must link these libraries manually. For this use case, this
PR introduces the `cudaq::nvqpp` target. Any downstream binary that
contains launches to CUDA-Q kernels must ensure that this target is
linked in.

See NVIDIA/cudaq-qec#960 for a successful use of
this downstream.

Signed-off-by: Luca Mondada <luca@mondada.net>

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant