Skip to content

Attempt to fix publishing#4436

Open
mitchdz wants to merge 3 commits intoNVIDIA:mainfrom
mitchdz:fix-publishing
Open

Attempt to fix publishing#4436
mitchdz wants to merge 3 commits intoNVIDIA:mainfrom
mitchdz:fix-publishing

Conversation

@mitchdz
Copy link
Copy Markdown
Collaborator

@mitchdz mitchdz commented May 1, 2026

No description provided.

mitchdz added 2 commits May 1, 2026 21:04
Signed-off-by: mdzurick <mitch_dz@hotmail.com>
  test_cupy_to_state_ownership_semantics was added in NVIDIA#4327 to lock in
  the contract that from_data aliases a contiguous CuPy device buffer.
  The test fails: reading the State after mutating the CuPy source
  returns the original value, not the mutation.

  Aliasing itself works. The bug is on the read side. CusvState::
  extractValues issues a synchronous cudaMemcpy(D2H) from devicePtr.
  With per-thread default streams (modern CUDA + recent CuPy), a
  synchronous cudaMemcpy does not wait for work on other streams.
  CuPy's __setitem__ runs on its own stream, our memcpy on the
  default stream, and the read can race past the write.

  Add cudaDeviceSynchronize() before the memcpy in extractValues.
  This is the single choke point all host-side reads flow through
  (toHost, getAmplitude, operator()), so one line covers them.

  dump() has the same pattern but isn't exercised by the test;
  leaving it for now.

Signed-off-by: mdzurick <mitch_dz@hotmail.com>
Signed-off-by: mdzurick <mitch_dz@hotmail.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 1, 2026

CI Summary — ✅ passed

Run #25233730135 · trigger push · ✅ 6 · ⏩ 7 · ❌ 0 · ⛔ 0

Top-level jobs (13)
Job Result
binaries ⏩ skipped
build_and_test ✅ success
config_devdeps ✅ success
config_source_build ⏩ skipped
config_wheeldeps ✅ success
devdeps ✅ success
docker_image ⏩ skipped
gen_code_coverage ⏩ skipped
metadata ✅ success
python_metapackages ⏩ skipped
python_wheels ⏩ skipped
source_build ⏩ skipped
wheeldeps ✅ success
⏩ Skipped jobs (7) — intentionally skipped on PR builds; run on merge_group / workflow_dispatch
Job
binaries
config_source_build
docker_image
gen_code_coverage
python_metapackages
python_wheels
source_build
All sub-jobs (50) — every matrix leg, with links
Job Status Link
Build and test (amd64, clang16, openmpi) / Dev environment (Debug) ✅ success view
Build and test (amd64, clang16, openmpi) / Dev environment (Python) ✅ success view
Build and test (amd64, gcc11, openmpi) / Dev environment (Debug) ✅ success view
Build and test (amd64, gcc11, openmpi) / Dev environment (Python) ✅ success view
Build and test (amd64, gcc12, openmpi) / Dev environment (Debug) ✅ success view
Build and test (amd64, gcc12, openmpi) / Dev environment (Python) ✅ success view
Build and test (arm64, clang16, openmpi) / Dev environment (Debug) ✅ success view
Build and test (arm64, clang16, openmpi) / Dev environment (Python) ✅ success view
CI Summary ❔ in_progress view
Configure build (devdeps) ✅ success view
Configure build (source_build) ⏩ skipped view
Configure build (wheeldeps) ✅ success view
Create CUDA Quantum installer ⏩ skipped view
Create Docker images ⏩ skipped view
Create Python metapackages ⏩ skipped view
Create Python wheels ⏩ skipped view
Gen code coverage ⏩ skipped view
Load dependencies (amd64, clang16) / Caching ✅ success view
Load dependencies (amd64, clang16) / Finalize ✅ success view
Load dependencies (amd64, clang16) / Metadata ✅ success view
Load dependencies (amd64, gcc11) / Caching ✅ success view
Load dependencies (amd64, gcc11) / Finalize ✅ success view
Load dependencies (amd64, gcc11) / Metadata ✅ success view
Load dependencies (amd64, gcc12) / Caching ✅ success view
Load dependencies (amd64, gcc12) / Finalize ✅ success view
Load dependencies (amd64, gcc12) / Metadata ✅ success view
Load dependencies (arm64, clang16) / Caching ✅ success view
Load dependencies (arm64, clang16) / Finalize ✅ success view
Load dependencies (arm64, clang16) / Metadata ✅ success view
Load dependencies (arm64, gcc11) / Caching ✅ success view
Load dependencies (arm64, gcc11) / Finalize ✅ success view
Load dependencies (arm64, gcc11) / Metadata ✅ success view
Load dependencies (arm64, gcc12) / Caching ✅ success view
Load dependencies (arm64, gcc12) / Finalize ✅ success view
Load dependencies (arm64, gcc12) / Metadata ✅ success view
Load source build cache ⏩ skipped view
Load wheel dependencies (amd64, 12.6) / Caching ✅ success view
Load wheel dependencies (amd64, 12.6) / Finalize ✅ success view
Load wheel dependencies (amd64, 12.6) / Metadata ✅ success view
Load wheel dependencies (amd64, 13.0) / Caching ✅ success view
Load wheel dependencies (amd64, 13.0) / Finalize ✅ success view
Load wheel dependencies (amd64, 13.0) / Metadata ✅ success view
Load wheel dependencies (arm64, 12.6) / Caching ✅ success view
Load wheel dependencies (arm64, 12.6) / Finalize ✅ success view
Load wheel dependencies (arm64, 12.6) / Metadata ✅ success view
Load wheel dependencies (arm64, 13.0) / Caching ✅ success view
Load wheel dependencies (arm64, 13.0) / Finalize ✅ success view
Load wheel dependencies (arm64, 13.0) / Metadata ✅ success view
Prepare cache clean-up ❔ in_progress view
Retrieve PR info ✅ success view
✅ Required checks (8/8) — declared in .github/required-checks.yml for push
Required check Status Link
Build and test (amd64, clang16, openmpi) / Dev environment (Debug) ✅ success view
Build and test (amd64, clang16, openmpi) / Dev environment (Python) ✅ success view
Build and test (amd64, gcc11, openmpi) / Dev environment (Debug) ✅ success view
Build and test (amd64, gcc11, openmpi) / Dev environment (Python) ✅ success view
Build and test (amd64, gcc12, openmpi) / Dev environment (Debug) ✅ success view
Build and test (amd64, gcc12, openmpi) / Dev environment (Python) ✅ success view
Build and test (arm64, clang16, openmpi) / Dev environment (Debug) ✅ success view
Build and test (arm64, clang16, openmpi) / Dev environment (Python) ✅ success view

@mitchdz mitchdz had a problem deploying to ghcr-deployment May 1, 2026 21:22 — with GitHub Actions Failure
@mitchdz mitchdz had a problem deploying to ghcr-deployment May 1, 2026 21:22 — with GitHub Actions Failure
@mitchdz mitchdz had a problem deploying to ghcr-deployment May 1, 2026 21:22 — with GitHub Actions Failure
@mitchdz mitchdz had a problem deploying to ghcr-deployment May 1, 2026 21:22 — with GitHub Actions Failure
@mitchdz mitchdz had a problem deploying to ghcr-deployment May 1, 2026 21:22 — with GitHub Actions Failure
@mitchdz mitchdz had a problem deploying to ghcr-deployment May 1, 2026 21:22 — with GitHub Actions Failure
@mitchdz mitchdz had a problem deploying to ghcr-deployment May 1, 2026 21:22 — with GitHub Actions Failure
@mitchdz mitchdz had a problem deploying to ghcr-deployment May 1, 2026 21:22 — with GitHub Actions Failure
@mitchdz mitchdz had a problem deploying to ghcr-deployment May 1, 2026 21:22 — with GitHub Actions Failure
@mitchdz mitchdz had a problem deploying to ghcr-deployment May 1, 2026 21:22 — with GitHub Actions Failure
@mitchdz mitchdz had a problem deploying to ghcr-deployment May 1, 2026 21:22 — with GitHub Actions Failure
@mitchdz mitchdz had a problem deploying to ghcr-deployment May 1, 2026 21:22 — with GitHub Actions Failure
@mitchdz mitchdz had a problem deploying to ghcr-deployment May 1, 2026 21:22 — with GitHub Actions Failure
@mitchdz mitchdz had a problem deploying to ghcr-deployment May 1, 2026 21:22 — with GitHub Actions Failure
@mitchdz mitchdz had a problem deploying to ghcr-deployment May 1, 2026 21:22 — with GitHub Actions Failure
@mitchdz mitchdz had a problem deploying to ghcr-deployment May 1, 2026 21:22 — with GitHub Actions Failure
@mitchdz mitchdz had a problem deploying to ghcr-deployment May 1, 2026 21:22 — with GitHub Actions Failure
@mitchdz mitchdz had a problem deploying to ghcr-deployment May 1, 2026 21:22 — with GitHub Actions Failure
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