Skip to content

Restore original field order in sevent struct for binary compatibility#194

Closed
Copilot wants to merge 6 commits into
mainfrom
copilot/sub-pr-193
Closed

Restore original field order in sevent struct for binary compatibility#194
Copilot wants to merge 6 commits into
mainfrom
copilot/sub-pr-193

Conversation

Copilot AI commented Jan 20, 2026

Copy link
Copy Markdown
Contributor

Addresses feedback from PR #193 where the hit and photon field order in the sevent struct was inadvertently swapped during the QEvent→QEvt rename.

Changes

  • Restored original field declaration order in sysrap/sevent.h: hit before photon

Rationale

The sevent struct is uploaded to device memory via QU::UploadArray. Field ordering affects:

  • Host/device memory layout compatibility
  • Binary serialization
  • ABI stability for compiled code

Original (main branch):

sphoton* hit;     // QEvent::gatherHit_
sphoton* photon;  // QEvent::device_alloc_photon

After 6439904 (incorrect):

sphoton* photon;  // QEvt::device_alloc_photon
sphoton* hit;     // QEvt::gatherHit_

Restored:

sphoton* hit;     // QEvt::gatherHit_
sphoton* photon;  // QEvt::device_alloc_photon

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

simoncblyth and others added 3 commits January 20, 2026 16:29
…using Geant4 with Qt viz driver that Nicola reports caused some vtable related crash
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI and others added 2 commits January 20, 2026 22:24
Co-authored-by: plexoos <5005079+plexoos@users.noreply.github.com>
Co-authored-by: plexoos <5005079+plexoos@users.noreply.github.com>
Copilot AI changed the title [WIP] Update QEvent.hh to QEvt.hh for compatibility issues Restore original field order in sevent struct for binary compatibility Jan 20, 2026
Copilot AI requested a review from plexoos January 20, 2026 22:27
Base automatically changed from rename-qevent to main January 20, 2026 22:35
@plexoos plexoos closed this Jan 21, 2026
@plexoos plexoos deleted the copilot/sub-pr-193 branch January 21, 2026 14:34
@plexoos plexoos added this to simphony Mar 13, 2026
@github-project-automation github-project-automation Bot moved this to Done in simphony Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants