-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Conversation
@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.
Co-authored-by: driazati <[email protected]>
5a68065
to
4b1ab12
Compare
There was a problem hiding this 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/tests/python/relay/opencl_texture/test_conv2d_nchw_texture.py
Lines 480 to 483 in 5a68065
@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): |
There was a problem hiding this 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.
32634f1
to
b7e165e
Compare
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.
…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]>
…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.
…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]>
…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.
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.