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

Random ranges #1038

Merged
merged 2 commits into from
Aug 29, 2023
Merged

Random ranges #1038

merged 2 commits into from
Aug 29, 2023

Conversation

m4rs-mt
Copy link
Owner

@m4rs-mt m4rs-mt commented Aug 2, 2023

This PR adds new IRandomRange and IRandomRangeProvider interfaces to define common methods to combine random number generators with [min,.. max) value ranges. It adds a text template to generate RandomRangeXYZ types representing tuples of min and max values with utility RNG functions. The template also generates provider implementations combining the tuples with actual RNG types like RandomRangeXYZProvider.

This PR depends on PRs #1033, #1037, and #1057.

@m4rs-mt m4rs-mt added the feature A new feature (or feature request) label Aug 2, 2023
@m4rs-mt m4rs-mt added this to the v2.0 milestone Aug 2, 2023
@m4rs-mt m4rs-mt force-pushed the random_ranges branch 4 times, most recently from eaddb70 to 6ff9aed Compare August 2, 2023 13:26
@m4rs-mt m4rs-mt marked this pull request as draft August 3, 2023 20:56
m4rs-mt added a commit that referenced this pull request Aug 7, 2023
@m4rs-mt m4rs-mt mentioned this pull request Aug 7, 2023
@m4rs-mt m4rs-mt force-pushed the random_ranges branch 3 times, most recently from 8d86d3e to 0bd75fb Compare August 8, 2023 06:53
m4rs-mt added a commit that referenced this pull request Aug 8, 2023
m4rs-mt added a commit that referenced this pull request Aug 9, 2023
@m4rs-mt m4rs-mt marked this pull request as ready for review August 9, 2023 11:27
@MoFtZ
Copy link
Collaborator

MoFtZ commented Aug 10, 2023

Unit tests are failing in Release mode only. Need to switch to Release configuration in Visual Studio when running the unit tests, in order to reproduce the issue.

Looks like it is failing become ILGPU does not support BinaryArithmeticKind.Add for ArithmeticBasicValueType.Int1.

@m4rs-mt
Copy link
Owner Author

m4rs-mt commented Aug 11, 2023

Given the fact that this PR should not change the behavior of the ILGPU tests affected at the moment, this is particularly interesting.

@MoFtZ
Copy link
Collaborator

MoFtZ commented Aug 11, 2023

I think this is a change in the latest .NET runtimes - our nightly builds are failing too.

@m4rs-mt
Copy link
Owner Author

m4rs-mt commented Aug 11, 2023

This would actually make sense. If this problem is related to some .NET runtime updates, we should try to address this issue in v1.5.0.

@m4rs-mt
Copy link
Owner Author

m4rs-mt commented Aug 11, 2023

@MoFtZ as this blocks all CI jobs from completing at the moment, we have to fix it asap anyway.

m4rs-mt added a commit that referenced this pull request Aug 22, 2023
m4rs-mt added a commit that referenced this pull request Aug 25, 2023
@m4rs-mt m4rs-mt force-pushed the random_ranges branch 2 times, most recently from ef81e78 to 9240e5c Compare August 29, 2023 03:34
@m4rs-mt m4rs-mt merged commit f09ef67 into master Aug 29, 2023
43 checks passed
@m4rs-mt m4rs-mt deleted the random_ranges branch August 29, 2023 10:33
m4rs-mt added a commit that referenced this pull request Aug 30, 2023
* Added new random ranges to create random numbers in certain intervals.
* Added vector-specific random extensions.
MoFtZ pushed a commit to MoFtZ/ILGPU that referenced this pull request Apr 24, 2024
* Added new random ranges to create random numbers in certain intervals.
* Added vector-specific random extensions.
MoFtZ pushed a commit to MoFtZ/ILGPU that referenced this pull request Apr 24, 2024
* Added new random ranges to create random numbers in certain intervals.
* Added vector-specific random extensions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature (or feature request)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants