Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parallel efficiency in tallies #13

Merged
merged 9 commits into from
Dec 3, 2022

Conversation

ChasingNeutrons
Copy link
Collaborator

A few tweaks to tallies to efficiently process them in parallel and avoid false sharing of tally cache lines with some (parameterised) array padding. Closes #12

Tweaked chi to normalise itself if not otherwise done.
Fixed an incorrect conditional in aceNeutronNuclide that was
causing bounds checking to fail.
Added padding to tally vectors in memory and parallelised tally
processing in memory and tally admin.
call fatalError(Here,'Index '//numToChar(idx)//' is outside bounds of &
& memory with size '//numToChar(self % N))
end if
!if( idx < 0_longInt .or. idx > self % N) then
Copy link
Member

Choose a reason for hiding this comment

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

Should we keep the check here?

Returned a commented out fatalError.
Copy link
Member

@valeriaRaffuzzi valeriaRaffuzzi left a comment

Choose a reason for hiding this comment

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

Looks good to me!
Thanks for fixing the bad scaling

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.

Out-of-bounds array access in invertInelastic
2 participants