Skip to content

Various test fixes#1015

Merged
manopapad merged 2 commits intonv-legate:branch-23.09from
manopapad:check-curand
Aug 2, 2023
Merged

Various test fixes#1015
manopapad merged 2 commits intonv-legate:branch-23.09from
manopapad:check-curand

Conversation

@manopapad
Copy link
Contributor

@manopapad manopapad commented Aug 2, 2023

  • Skip advanced RNG not only on MacOS, but any setup that's missing cuRand (e.g. also on CPU installations without the optional host-cuRand component).

  • Don't compare arrays created with np.empty; they contain uninitialized data, that may be equivalent to NaN when
    interpreted as a floating-point number, and np.array_equal considers that NaN != NaN. Fixes a non-deterministic CI failure, see https://github.com/nv-legate/cunumeric/actions/runs/5734924032/job/15544886016.

@manopapad manopapad added the category:task PR is a simple task and will not be included in release notes label Aug 2, 2023
@manopapad manopapad requested a review from bryevdv August 2, 2023 15:40
They contain uninitialized data, that may be equivalent to NaN when
interpreted as a floating-point number, and np.array_equal considers
that NaN != NaN.
@manopapad manopapad changed the title Skip advanced RNG tests on any setup that's missing cuRand Various test fixes Aug 2, 2023
Copy link
Contributor

@bryevdv bryevdv left a comment

Choose a reason for hiding this comment

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

LGTM but FMI when was has_curand added?

@manopapad
Copy link
Contributor Author

LGTM but FMI when was has_curand added?

Looks like this time last year #485

@manopapad manopapad merged commit e6a33ce into nv-legate:branch-23.09 Aug 2, 2023
@manopapad manopapad deleted the check-curand branch August 2, 2023 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category:task PR is a simple task and will not be included in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants