Skip to content

Conversation

@RAMitchell
Copy link
Contributor

No description provided.

@copy-pr-bot
Copy link
Contributor

copy-pr-bot bot commented Nov 11, 2025

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@cccl-authenticator-app cccl-authenticator-app bot moved this from Todo to In Progress in CCCL Nov 11, 2025
@bernhardmgruber
Copy link
Contributor

Side note: We also have some implementations of <random> in Thrust under thrust/thrust/random. I would love if we could replace those by new facilities in libcu++! You could try to replace the Thrust implementation by your new one for testing.

@RAMitchell
Copy link
Contributor Author

#6595 is preventing us from making this constexpr. We can defer implementing constexpr or I will use another algorithm to generate the normal distribution.

@RAMitchell RAMitchell marked this pull request as ready for review November 13, 2025 15:17
@RAMitchell RAMitchell requested a review from a team as a code owner November 13, 2025 15:17
@RAMitchell RAMitchell requested a review from pciolkosz November 13, 2025 15:17
@cccl-authenticator-app cccl-authenticator-app bot moved this from In Progress to In Review in CCCL Nov 13, 2025
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

Copy link
Contributor

@fbusato fbusato 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. Just a couple of nits

@github-project-automation github-project-automation bot moved this from In Review to In Progress in CCCL Nov 14, 2025
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@fbusato
Copy link
Contributor

fbusato commented Nov 17, 2025

/ok to test 7c3c7bb


// <random>

// class bernoulli_distribution
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are those tests deleted?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've put all tests in test_distribution.h. I can now just specify a CDF and test param sets and it will test everything. This speeds up the 15 or so distributions still to implement, improves consistency and means over 100 source files less.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@RAMitchell
Copy link
Contributor Author

Not sure what is up with CI.

Question for my reviewers:

I've been adding std::iostream operators so far. Does this make sense? I am not so sure any more, it might be better to just remove them all.

@github-actions

This comment has been minimized.

@fbusato
Copy link
Contributor

fbusato commented Nov 19, 2025

CI had troubles. I reran it.

I've been adding std::iostream operators so far. Does this make sense? I am not so sure any more, it might be better to just remove them all.

I would really want to remove them, but they are part of the standard. @davebayer @miscco any thought?

@github-actions

This comment has been minimized.

@davebayer
Copy link
Contributor

I would really want to remove them, but they are part of the standard. @davebayer @miscco any thought?

We implement them for all other cuda::std:: stuff, so I think we should stay consistent and implement them

@github-actions
Copy link
Contributor

🥳 CI Workflow Results

🟩 Finished in 1h 50m: Pass: 100%/90 | Total: 2d 04h | Max: 1h 49m | Hits: 84%/204441

See results here.

@RAMitchell
Copy link
Contributor Author

I would really want to remove them, but they are part of the standard. @davebayer @miscco any thought?

We implement them for all other cuda::std:: stuff, so I think we should stay consistent and implement them

I will continue implementing them then.

@miscco @fbusato any further changes?

This PR is a template for how I intend to do the remaining distributions, in particular with regards to testing. Once this is merged I will open several concurrent PRs for other distributions, which can be reviewed in parallel.

@github-project-automation github-project-automation bot moved this from In Progress to In Review in CCCL Nov 24, 2025
@RAMitchell RAMitchell merged commit 6abfcf6 into NVIDIA:main Nov 24, 2025
205 of 207 checks passed
@github-project-automation github-project-automation bot moved this from In Review to Done in CCCL Nov 24, 2025
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.

5 participants