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

[CI] Enable unittests for disco #16975

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

Lunderberg
Copy link
Contributor

The refactor of the unittest folder in #16110 did not include the tests/python/disco folder in the list of folders to run in CI.

The refactor of the unittest folder in apache#16110 did not include the
`tests/python/disco` folder in the list of folders to run in CI.
@Lunderberg
Copy link
Contributor Author

Looks like there's some failing tests, which seem to have crept in while the tests were disabled.

  • There is no tvm.testing.disco that can be imported. Looks like it should instead import the exec_worker to get the PackedFunc definitions from that file.

  • Ill-formed TIR, which is now validated when parsing TVMScript.

  • NCCL not currently installed in CI environment, and not all NCCL-dependent tests are marked with tvm.testing.requires_nccl.

- Remove `R.func_attr({"global_symbol": "main"}`, as it is now
  implicitly generated.  Explicitly specifying the global symbol is
  legal, but is ill-formed if it differs from the name used by the
  `GlobalVar`.

- Replace the import of `tvm.testing.disco` with
  `tvm.exec.disco_worker`, since the file has been moved.

- Use `tvm.testing.requires_nccl` and `tvm.testing.requires_rccl` as
  part of the parametrization over CCL types.  This will skip the test
  when run in environments that do not have the specified CCL.
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.

None yet

2 participants