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

Improve single-event mode in accel #1452

Merged
merged 10 commits into from
Oct 16, 2024

Conversation

sethrj
Copy link
Member

@sethrj sethrj commented Oct 15, 2024

This follow-on to discussions in #1447 adds a non-synchronizing "fill" call to the track slot IDs (and also removes the synchronization in the RNG reseed). It also marks as "deprecated" the max_num_events setting in Celeritas. Finally, it also tests reproducibility using the full stepper.

@sethrj sethrj added bug Something isn't working external Dependencies and framework-oriented features labels Oct 15, 2024
@sethrj sethrj requested review from pcanal and amandalund October 15, 2024 15:27
@sethrj sethrj changed the title Deprecate accel max_num_events and reset track ID counters in single-event mode Improve single-event mode in accel Oct 15, 2024
src/corecel/data/Filler.hh Show resolved Hide resolved
Copy link

github-actions bot commented Oct 15, 2024

Test summary

 3 300 files   5 097 suites   3m 30s ⏱️
 1 535 tests  1 507 ✅ 28 💤 0 ❌
16 997 runs  16 934 ✅ 63 💤 0 ❌

Results for commit 4d16cbf.

♻️ This comment has been updated with latest results.

step.reseed(UniqueEventId{123});
step(make_span(primaries));
EXPECT_EQ(TrackStatus::alive, sim.status());
EXPECT_EQ(TrackId{0}, sim.track_id());
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we extent the test to other ids than 0?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't think it's necessary, since there's nothing special about track ID 0. We've got other tests to make sure that the code treats all track slots fairly, etc.

@sethrj sethrj enabled auto-merge (squash) October 16, 2024 04:23
@sethrj sethrj merged commit 86152b9 into celeritas-project:develop Oct 16, 2024
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working external Dependencies and framework-oriented features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants