Skip to content

Conversation

@RossBrunton
Copy link
Contributor

This adds support for lit to unified-runtime, in the form
of a new target check-unified-runtime. This target is available
when UR is built standalone and when built as part of dpcpp.

In addition, there are targets like check-unified-runtime-unit
which run a subset of the lit tests.

When built standalone, lit and filecheck must be avilable in
the path. A requirements_testing.txt file is available to
install test dependencies.

When built as part of dpcpp, a new cmake variable is available;
SYCL_UR_BUILD_TESTS which is off by default. When enabled,
check-unified-runtime will be available as a target and will
also run as part of check-all.

All tests have been ported with the exception of:

  • Adapter tests
  • Conformance tests

The Python version for macos was also bumped to 3.10 to enable
use of a newer filecheck version.

@RossBrunton RossBrunton marked this pull request as ready for review March 24, 2025 11:22
@RossBrunton RossBrunton requested review from a team as code owners March 24, 2025 11:22
@RossBrunton
Copy link
Contributor Author

#17361

This is a newer version of the PR here. See that for some comments that have hopefully been resolved.

Copy link
Contributor

@aelovikov-intel aelovikov-intel left a comment

Choose a reason for hiding this comment

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

Changes outside unified-runtime LGTM.

Copy link
Contributor

Choose a reason for hiding this comment

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

Where does add_lit_testing() come from?

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm still interested in an answer to this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's a function defined in intel/llvm. If a full LLVM build is available, we use the lit test suite managing thingies from there.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm still interested in an answer to this.

This adds support for lit to unified-runtime, in the form
of a new target `check-unified-runtime`. This target is available
when UR is built standalone and when built as part of dpcpp.

In addition, there are targets like `check-unified-runtime-unit`
which run a subset of the lit tests.

When built standalone, `lit` and `filecheck` must be avilable in
the path. A `requirements_testing.txt` file is available to
install test dependencies.

When built as part of dpcpp, a new cmake variable is available;
`SYCL_UR_BUILD_TESTS` which is off by default. When enabled,
`check-unified-runtime` will be available as a target and will
also run as part of `check-all`.

All tests have been ported with the exception of:
* Adapter tests
* Conformance tests

The Python version for macos was also bumped to 3.10 to enable
use of a newer filecheck version.
@RossBrunton
Copy link
Contributor Author

@intel/llvm-gatekeepers Please merge (unless there's a conflict due to someone updating tests).

@martygrant martygrant merged commit 585606a into intel:sycl Apr 10, 2025
35 of 36 checks passed
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.

5 participants