Repository navigation
Add kDLROCMHost and kDLCUDAManaged - #71
Conversation
|
Thanks, @tqchen! |
|
Since it requires checking 4 devices now (and more might be added?), should there be a macro or other scheme to check whether memory is transparently accessible from the CPU? |
|
@seberg Sounds like you want to add a query function to the DLPack header so that everyone can reuse it? I think it is a good idea given that you also brought up another common API on deleter. |
|
Also a question, could device id be using a fixed-width type, such as uint32_t or int32_t instead of int? This is simpler for doing bindings... |
|
@tqchen and all: Could you make a new DLPack release (v0.6) to include this change please? Thanks! |
|
Should we doing something about Vadim's concern first? Asking as it may be harder to change after a release :) |
|
@jakirkham That'd break ABI and I don't think the recent DLPack iterations have done that. I'd suggest for @vadimkantorov to open an issue to discuss that point first, likely we also need to handle #74 so that we can signal ABI breaking. I am requesting a new release simply based on the experience with the previous release #69: it was done almost right after #68 was merged, as the ABI is preserved. I expect the same can be done for this PR. |
|
Changing to int to int32_t likely won't break the ABI(as all platforms that i am aware right now does that) and i think it can be a welcomed change |
|
I also read online that enums with values <= 255 must occupy 1 byte - could be good to have it stated somewhere in the docs. Unfortunately, it seems that in C one cannot enforce bit-width for enum type. |
|
@tqchen Friendly nudge for a v0.6 release. I'd like to make this PR available asap. Thanks! |
Close #70.
btw I feel
kDLExtDevshould possess a very high value (like 999) so that we don't get clogged in theDLDeviceTypeenum spectrum, but changing its value is something beyond the scope of this PR.