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

disambiguate rank 1 index vs ordinal accessors #393

Merged

Conversation

evaleev
Copy link
Member

@evaleev evaleev commented Mar 7, 2023

for rank-1 Range and other classes accessor(integers...) and accessor(ordinal) cannot be distinguished, disable both and provide an explicit way to access by ordinal

@evaleev evaleev changed the base branch from master to kmp5/feature/CP March 7, 2023 22:15
@evaleev evaleev force-pushed the evaleev/fix/rank-1-index-vs-ordinal-accessors branch from 9dd44f0 to 574c198 Compare March 8, 2023 11:45
@evaleev evaleev force-pushed the evaleev/fix/rank-1-index-vs-ordinal-accessors branch from 574c198 to c5a7a45 Compare March 9, 2023 00:14
evaleev added 16 commits March 9, 2023 08:09
- TA::{rand,drand} are reentrant versions of rand and drand48 that uses Boost.Random's mt19937 and uniform distribution classes (the latter is needed to produce platform-portable results, see https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/p2059r0.pdf ) ... TA::srand controls the seeds of the thread-specific random engines
- MakeRandom now uses TA::rand instead of std::rand ... the latter is not reentrant so technically any use of DistArray::fill_random was UB ... single-threaded version of DistArray::fill_random to get random tensors witrh contents independent of schedule will be introduced in a separate commit
…les,fill_random}

default is to use MADWorld's taskq, but useful with non-reentrant ops or, even when op is reentrant, e.g. to ensure that same random tensor is generated by DistArray::fill_random (since initial state of every thread-specific random engine is the same tiles generated by different threads will initially have the same content ... )
@evaleev evaleev merged commit 78342d0 into kmp5/feature/CP Mar 9, 2023
@evaleev evaleev deleted the evaleev/fix/rank-1-index-vs-ordinal-accessors branch March 9, 2023 22:30
@evaleev evaleev restored the evaleev/fix/rank-1-index-vs-ordinal-accessors branch March 9, 2023 22:31
@evaleev evaleev deleted the evaleev/fix/rank-1-index-vs-ordinal-accessors branch March 21, 2023 23:19
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.

1 participant