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

Refactor for new memory syncronization API #15

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

alexandermorozov
Copy link

This PR depends on autumnai/collenchyma#62.

Some tests fail on my machine the same way as they fail on master, see #14.

Refactor code CUDA and Native backend to match #autumnai/collenchyma/62 that
provides enchanced memory management and syncronization. Since memory
management is now automatic, `*_plain` variants of functions are removed.

BREAKING CHANGE: *_plain versions of API functions are removed, arguments of
their counterpart functions may have changed in mutablity.

REFERENCE: autumnai/collenchyma#37, autumnai/collenchyma#62
Fix tests and benches to work with new memory management API. Refactor
functions for writing data to tensors and checking their contents. Merge
set up stage and compute/verify stage: it's much nicer to see input and
output values in one place. Refactor tests to be generic on backend and use
macros to eliminate repetitive test definitions.
@alexandermorozov
Copy link
Author

It turned out I forgot to fix benches. Done.

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