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

Low-level Rise sanity check #226

Open
Bastacyclop opened this issue Feb 17, 2022 · 1 comment
Open

Low-level Rise sanity check #226

Bastacyclop opened this issue Feb 17, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@Bastacyclop
Copy link
Member

After #198 and #220, me and @johanneslenfers concluded that it would be very useful to implement some low-level Rise program sanity checks:

  • for example, parallelism hierarchy should be respected, and mapGlobal(0)(mapGlobal(0)(...)) is not a valid low-level program
  • it is possible to create writing races by using mapSeq/reduceSeq patterns in the wrong place (basically if multiple threads execute it), I think such programs should not be considered valid.
@Bastacyclop Bastacyclop added the enhancement New feature or request label Feb 17, 2022
@Bastacyclop
Copy link
Member Author

Example of writing race:

    val e = depFun((n: Nat) => fun(n`.`f32)(in =>
      in |> split(128) |> mapWorkGroup(
        mapLocal(id) >> toLocal >> mapSeq(id)
      ) |> join
    ))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant