driazati commented on code in PR #12490:
URL: https://github.com/apache/tvm/pull/12490#discussion_r965102076


##########
tests/scripts/task_python_integration.sh:
##########
@@ -61,12 +61,16 @@ run_pytest cython 
${TVM_INTEGRATION_TESTSUITE_NAME}-dso_plugin_module-1 apps/dso
 run_pytest ctypes ${TVM_INTEGRATION_TESTSUITE_NAME}-integration 
tests/python/integration
 
 # Ignoring Arm(R) Ethos(TM)-U NPU tests in the collective to run to run them 
in parallel in the next step.
-run_pytest ctypes ${TVM_INTEGRATION_TESTSUITE_NAME}-contrib 
tests/python/contrib --ignore=tests/python/contrib/test_ethosu 
--ignore=tests/python/contrib/test_cmsisnn
+run_pytest ctypes ${TVM_INTEGRATION_TESTSUITE_NAME}-contrib 
tests/python/contrib --ignore=tests/python/contrib/test_ethosu 
--ignore=tests/python/contrib/test_cmsisnn 
--ignore=tests/python/contrib/test_opencl
 
 # forked is needed because the global registry gets contaminated
 TVM_TEST_TARGETS="${TVM_RELAY_TEST_TARGETS:-llvm;cuda}" \
     run_pytest ctypes ${TVM_INTEGRATION_TESTSUITE_NAME}-relay 
tests/python/relay
 
+# OpenCL texture test. Deselected specific tests that fails  in CI
+TVM_TEST_TARGETS="${TVM_RELAY_OPENCL_TEXTURE_TARGETS:-opencl}" \
+    run_pytest ctypes ${TVM_INTEGRATION_TESTSUITE_NAME}-opencl-texture 
tests/python/relay/opencl_texture 
--deselect=tests/python/relay/opencl_texture/test_conv2d_nchw_texture.py::test_residual_block

Review Comment:
   You can do whatever logic is necessary in the condition for the `skipIf` so 
that it's only skipped in the specific cases you want (e.g. here maybe just 
`skipIf(tvm.testing.utils.IS_IN_CI, reason="...")`). Also in 
`tvm/testing/utils.py` take a look at `requires_cuda` or `uses_gpu` as they may 
already do what you need



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to