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

[DOCKER][Adreno]Docker infra for Adreno target with CLML support #12833

Merged
merged 6 commits into from
Oct 18, 2022

Conversation

srkreddy1238
Copy link
Contributor

New docker for Adreno that inherits gpu docker and amends android-sdk.

For CLML, we need to specify ADRENO_OPENCL via environment variable. CLML SDK can be downlaoded from Qualcomm Developer Network by following
https://developer.qualcomm.com/blog/accelerate-your-models-our-opencl-ml-sdk
Adreno device is shared with host, hence networking is enabled for Adreno Docker.

@srkreddy1238
Copy link
Contributor Author

@valmat07 can you take a look at the residual-block test case. I see same behaviour with Nvidia (NVIDIA GeForce RTX 3060) and Adreno (Xiaomi Mi 12 - Snapdragon Gen 1) devices.

New docker for Adreno that inherits gpu docker and amends android-sdk.

For CLML, we need to specify ADRENO_OPENCL via environment variable. CLML SDK can be downlaoded
from Qualcomm Developer Network by following
https://developer.qualcomm.com/blog/accelerate-your-models-our-opencl-ml-sdk
Adreno device is shared with host, hence networking is enabled for Adreno Docker.
@srkreddy1238 srkreddy1238 changed the title Docker infra for Adreno target with CLML support [DOCKER][Adreno]Docker infra for Adreno target with CLML support Sep 19, 2022
docker/bash.sh Outdated Show resolved Hide resolved
tests/scripts/task_build_adreno_bins.sh Show resolved Hide resolved
tests/scripts/task_build_adreno_bins.sh Show resolved Hide resolved
tests/scripts/task_build_adreno_bins.sh Show resolved Hide resolved
tests/scripts/task_python_adreno.sh Show resolved Hide resolved
@srkreddy1238 srkreddy1238 force-pushed the main branch 2 times, most recently from 5a68065 to 4b1ab12 Compare September 21, 2022 14:14
Copy link
Contributor

@valmat07 valmat07 left a comment

Choose a reason for hiding this comment

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

I checked the residual block test on the main tvm line for the Adreno device, it seems after some changes the residual test is not working. Could you also remove skipif:

@tvm.testing.requires_opencl
@tvm.testing.parametrize_targets("opencl -device=adreno")
@pytest.mark.skipif(tvm.testing.utils.IS_IN_CI, reason="failed due to nvidia libOpencl in the CI")
def test_residual_block(target, dtype):

Copy link
Contributor

@echuraev echuraev left a comment

Choose a reason for hiding this comment

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

Reviewed part, which is related to Adreno and OpenCL textures. LGTM.

@srkreddy1238 srkreddy1238 requested review from elvin-n and valmat07 and removed request for valmat07 and elvin-n September 26, 2022 13:56
@srkreddy1238 srkreddy1238 force-pushed the main branch 2 times, most recently from 32634f1 to b7e165e Compare September 30, 2022 09:12
@srkreddy1238
Copy link
Contributor Author

@valmat07 & @masahi can you take a look on this ?

@srkreddy1238
Copy link
Contributor Author

@valmat07 & @masahi can you take a look on this

@masahi masahi merged commit 9f047c0 into apache:main Oct 18, 2022
Lunderberg added a commit to Lunderberg/tvm that referenced this pull request Oct 31, 2022
This parameter was introduced in
apache#12833, and was passed for all
subcommands defined using `generate_command`.  However, this broke the
`ci.py lint` subcommand.  This PR makes the `additional_flags`
parameter to the `docker` function be optional, to avoid this
breakage.
Lunderberg added a commit that referenced this pull request Nov 1, 2022
…13238)

This parameter was introduced in
#12833, and was passed for all
subcommands defined using `generate_command`.  However, this broke the
`ci.py lint` subcommand.  This PR makes the `additional_flags`
parameter to the `docker` function be optional, to avoid this
breakage.
xinetzone pushed a commit to daobook/tvm that referenced this pull request Nov 10, 2022
…che#12833)

* [DOCKER][Adreno] Docker infra for Adreno target with CLML support

New docker for Adreno that inherits gpu docker and amends android-sdk.

For CLML, we need to specify ADRENO_OPENCL via environment variable. CLML SDK can be downlaoded
from Qualcomm Developer Network by following
https://developer.qualcomm.com/blog/accelerate-your-models-our-opencl-ml-sdk
Adreno device is shared with host, hence networking is enabled for Adreno Docker.

* * CLML test cases incmpliance with pytest infra

* Update tests/scripts/task_build_adreno_bins.sh

Co-authored-by: driazati <[email protected]>

* * Addional container specific settings via CI invocation

* * review comments

* * trigger build

Co-authored-by: driazati <[email protected]>
xinetzone pushed a commit to daobook/tvm that referenced this pull request Nov 10, 2022
…pache#13238)

This parameter was introduced in
apache#12833, and was passed for all
subcommands defined using `generate_command`.  However, this broke the
`ci.py lint` subcommand.  This PR makes the `additional_flags`
parameter to the `docker` function be optional, to avoid this
breakage.
xinetzone pushed a commit to daobook/tvm that referenced this pull request Nov 25, 2022
…che#12833)

* [DOCKER][Adreno] Docker infra for Adreno target with CLML support

New docker for Adreno that inherits gpu docker and amends android-sdk.

For CLML, we need to specify ADRENO_OPENCL via environment variable. CLML SDK can be downlaoded
from Qualcomm Developer Network by following
https://developer.qualcomm.com/blog/accelerate-your-models-our-opencl-ml-sdk
Adreno device is shared with host, hence networking is enabled for Adreno Docker.

* * CLML test cases incmpliance with pytest infra

* Update tests/scripts/task_build_adreno_bins.sh

Co-authored-by: driazati <[email protected]>

* * Addional container specific settings via CI invocation

* * review comments

* * trigger build

Co-authored-by: driazati <[email protected]>
xinetzone pushed a commit to daobook/tvm that referenced this pull request Nov 25, 2022
…pache#13238)

This parameter was introduced in
apache#12833, and was passed for all
subcommands defined using `generate_command`.  However, this broke the
`ci.py lint` subcommand.  This PR makes the `additional_flags`
parameter to the `docker` function be optional, to avoid this
breakage.
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.

6 participants