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

[3/3][AOT][DeviceAPI] Wire up cpacked Device API context #9501

Merged
merged 3 commits into from
Nov 23, 2021

Conversation

Mousius
Copy link
Member

@Mousius Mousius commented Nov 12, 2021

Adding the same functionality for the Device API to the cpacked calling convention. The MakePackedAPI pass now implicitly uses any variable named kDeviceContextVar as the resource_handle and this is then used in the cpacked calling convention which always expects some form of resource_handle to be passed.

This is stacked on top of #9500 and #9395

@Mousius Mousius force-pushed the device-api-cpacked branch 2 times, most recently from f443604 to aff40bb Compare November 16, 2021 09:41
@Mousius Mousius force-pushed the device-api-cpacked branch 3 times, most recently from 263e030 to 9bcbf27 Compare November 18, 2021 09:46
Copy link
Contributor

@manupak manupak left a comment

Choose a reason for hiding this comment

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

Broadly looks good!. Just one question but could do in a follow up since this is green.

Adding the same functionality for the Device API to the cpacked calling convention. The MakePackedAPI pass now implicitly uses any variable named `kDeviceContextVar` as the `resource_handle` and this is then used in the `cpacked` calling convention which always expects some form of resource_handle to be passed.
Copy link
Contributor

@manupak manupak left a comment

Choose a reason for hiding this comment

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

Thanks @Mousius . LGTM

@manupak manupak merged commit 008367d into apache:main Nov 23, 2021
@manupak
Copy link
Contributor

manupak commented Nov 23, 2021

Thanks @mbs-octoml @Mousius . This is merged now!

@Mousius Mousius deleted the device-api-cpacked branch November 23, 2021 09:29
mehrdadh pushed a commit to mehrdadh/tvm that referenced this pull request Dec 1, 2021
* [AOT][DeviceAPI] Wire up cpacked Device API context

Adding the same functionality for the Device API to the cpacked calling convention. The MakePackedAPI pass now implicitly uses any variable named `kDeviceContextVar` as the `resource_handle` and this is then used in the `cpacked` calling convention which always expects some form of resource_handle to be passed.

* Document calling conventions
* Remove superfluous variable
mehrdadh pushed a commit to mehrdadh/tvm that referenced this pull request Dec 1, 2021
* [AOT][DeviceAPI] Wire up cpacked Device API context

Adding the same functionality for the Device API to the cpacked calling convention. The MakePackedAPI pass now implicitly uses any variable named `kDeviceContextVar` as the `resource_handle` and this is then used in the `cpacked` calling convention which always expects some form of resource_handle to be passed.

* Document calling conventions
* Remove superfluous variable
ylc pushed a commit to ylc/tvm that referenced this pull request Jan 7, 2022
* [AOT][DeviceAPI] Wire up cpacked Device API context

Adding the same functionality for the Device API to the cpacked calling convention. The MakePackedAPI pass now implicitly uses any variable named `kDeviceContextVar` as the `resource_handle` and this is then used in the `cpacked` calling convention which always expects some form of resource_handle to be passed.

* Document calling conventions
* Remove superfluous variable
yangulei pushed a commit to yangulei/tvm that referenced this pull request Jan 11, 2022
* [AOT][DeviceAPI] Wire up cpacked Device API context

Adding the same functionality for the Device API to the cpacked calling convention. The MakePackedAPI pass now implicitly uses any variable named `kDeviceContextVar` as the `resource_handle` and this is then used in the `cpacked` calling convention which always expects some form of resource_handle to be passed.

* Document calling conventions
* Remove superfluous variable
ylc pushed a commit to ylc/tvm that referenced this pull request Jan 13, 2022
* [AOT][DeviceAPI] Wire up cpacked Device API context

Adding the same functionality for the Device API to the cpacked calling convention. The MakePackedAPI pass now implicitly uses any variable named `kDeviceContextVar` as the `resource_handle` and this is then used in the `cpacked` calling convention which always expects some form of resource_handle to be passed.

* Document calling conventions
* Remove superfluous variable
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.

3 participants