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

[Feature] Compatibility to DLPack 0.6 in tensoradapter #3803

Merged
merged 8 commits into from
Mar 10, 2022

Conversation

BarclayII
Copy link
Collaborator

This is to make tensoradapter compilable against PyTorch 1.11, which upgrades DLPack to 0.6.0 that renamed a bunch of stuff.

@dgl-bot
Copy link
Collaborator

dgl-bot commented Mar 3, 2022

To trigger regression tests:

  • @dgl-bot run [instance-type] [which tests] [compare-with-branch];
    For example: @dgl-bot run g4dn.4xlarge all dmlc/master or @dgl-bot run c5.9xlarge kernel,api dmlc/master

Copy link
Member

@yzh119 yzh119 left a comment

Choose a reason for hiding this comment

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

I noticed that PyTorch has made dlpack a part of the package:
https://github.com/pytorch/pytorch/blob/1a917e637c969de7e20c66227e689e007c9b2fc2/aten/src/ATen/dlpack.h

I wonder if it is possible to include dlpack from PyTorch instead of from our 3rd-party directory (which is usually not synced with PyTorch) for our torch backend?

@BarclayII
Copy link
Collaborator Author

I wonder if it is possible to include dlpack from PyTorch instead of from our 3rd-party directory

I think it's not a big deal since the ABI did not change.

@TristonC
Copy link
Collaborator

TristonC commented Mar 9, 2022

@BarclayII When can I expect this PR being merged?

@BarclayII BarclayII merged commit 520cef8 into dmlc:master Mar 10, 2022
@BarclayII BarclayII deleted the compat-dlpack-060 branch March 10, 2022 02:32
BarclayII added a commit that referenced this pull request Mar 31, 2022
* compatibility to DLPack 0.6 in tensoradapter

* fix

* oops

Co-authored-by: Jinjing Zhou <VoVAllen@users.noreply.github.com>
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.

5 participants