Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions qudarap/QEvt.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1360,7 +1360,9 @@ NP* QEvt::gatherComponent_(unsigned cmp) const
switch(cmp)
{
//case SCOMP_GENSTEP: a = getGenstep() ; break ;
#ifndef PRODUCTION
case SCOMP_GENSTEP: a = gatherGenstepFromDevice() ; break ;
Comment on lines 1362 to 1364
Copy link

Copilot AI Dec 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When PRODUCTION is defined, the SCOMP_GENSTEP case will return nullptr instead of providing the host-side genstep data. Consider uncommenting line 1362 to use getGenstep() as a fallback, or add an #else clause:

#ifndef PRODUCTION
        case SCOMP_GENSTEP:       a = gatherGenstepFromDevice() ; break ;
#else
        case SCOMP_GENSTEP:       a = getGenstep() ; break ;
#endif

This would ensure that genstep data remains accessible in production builds via the host-side copy, while avoiding the debug-only device download.

Suggested change
//case SCOMP_GENSTEP: a = getGenstep() ; break ;
#ifndef PRODUCTION
case SCOMP_GENSTEP: a = gatherGenstepFromDevice() ; break ;
#ifndef PRODUCTION
case SCOMP_GENSTEP: a = gatherGenstepFromDevice() ; break ;
#else
case SCOMP_GENSTEP: a = getGenstep() ; break ;

Copilot uses AI. Check for mistakes.
#endif
case SCOMP_INPHOTON: a = getInputPhoton() ; break ;
case SCOMP_PHOTON: a = gatherPhoton() ; break ;
case SCOMP_PHOTONLITE: a = gatherPhotonLite() ; break ;
Expand Down