Skip to content

Conversation

roiser
Copy link
Member

@roiser roiser commented Apr 2, 2025

Return the channel weights from the kernel, the following changes were done

  • numerators in CPPProcess have become an array of size nevents * ndigrams (not every diagram contains the calculation of enumerators / denominators, so we can optimize the size here)
  • the numerator[channelId] is then collected after each diagram
  • related, the kernelAccess (MemoryAccessGs.h) contains a new function to return a pointer (instead of a ref)
  • In CPPProcess the access to the channelId has been refactored into a dedicated function (getChannelId) because the channelId is also needed at the bottom now where the correct numerator[channelId] needs to be chosen

NB for the fun of it I asked copilot to review aswell, @oliviermattelaer you are not off the hook ;-)

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@Qubitol Qubitol changed the base branch from return_weights to master April 3, 2025 12:31
@roiser roiser marked this pull request as draft April 3, 2025 13:56
@roiser
Copy link
Member Author

roiser commented Jun 3, 2025

thanks @theoheimel for pointing out the issue in 0c78649

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.

2 participants