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

Pretty printer for OperationAcc and PartitionedAcc #465

Open
ivogabe opened this issue Sep 9, 2020 · 0 comments
Open

Pretty printer for OperationAcc and PartitionedAcc #465

ivogabe opened this issue Sep 9, 2020 · 0 comments

Comments

@ivogabe
Copy link
Contributor

ivogabe commented Sep 9, 2020

For the new pipeline, we need a pretty printer for OperationAcc and PartitionedAcc. Those two are both instantiations of PreOpenAcc from Data.Array.Accelerate.AST.Operation. Some remarks:

  • The data type ranges over the type of operations op, so we need to have a type class providing the pretty printer for that type argument
  • The Show instances for Acc and Exp should now print the program before desugaring, instead of the output fusion. Desugaring makes the program backend-specific, and the backend in use isn't known in the show instance. We should provide some other functionality (exposed function and/or debug flag) to print the backend-specific code.
  • Alet is also used to sequence different computations. We should thus print Alet (LeftHandSideWildcard TupRunit) a b as a; b. We could also do that for non-unit wildcards in the left hand side.
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

No branches or pull requests

1 participant