Skip to content

Conversation

@sarnex
Copy link
Contributor

@sarnex sarnex commented Mar 27, 2025

We already have features for Level Zero and CUDA, add one for HIP.

Signed-off-by: Sarnie, Nick <[email protected]>
Signed-off-by: Sarnie, Nick <[email protected]>
@sarnex sarnex temporarily deployed to WindowsCILock March 27, 2025 19:45 — with GitHub Actions Inactive
@sarnex sarnex temporarily deployed to WindowsCILock March 27, 2025 19:59 — with GitHub Actions Inactive
@sarnex sarnex temporarily deployed to WindowsCILock March 27, 2025 19:59 — with GitHub Actions Inactive
@sarnex sarnex temporarily deployed to WindowsCILock March 28, 2025 00:18 — with GitHub Actions Inactive
@sarnex sarnex marked this pull request as ready for review March 28, 2025 14:57
@sarnex sarnex requested review from a team as code owners March 28, 2025 14:57
@sarnex sarnex changed the title [SYCL] Add LIT feature for HIP [SYCL][E2E] Add LIT feature for HIP Mar 28, 2025

with test_env():
sp = subprocess.getstatusoutput(
config.dpcpp_compiler + " -fsycl " + check_hip_file + hip_options
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need -fsycl here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

probably not but i just copied what we did for cuda, i can remove it from both if you think thats better

Copy link
Contributor

Choose a reason for hiding this comment

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

No difference to me at all.

Copy link
Contributor

@KornevNikita KornevNikita left a comment

Choose a reason for hiding this comment

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

I don't insist on adding this, but we could test `REQUIRES: hip_dev_kit" by replacing this one (I already have a draft PR to update this, so you can ignore me):

// UNSUPPORTED: windows
// UNSUPPORTED-TRACKER: https://github.com/intel/llvm/issues/17515
// There are no ROCm libs on win machines, so the compilation fails.

@sarnex
Copy link
Contributor Author

sarnex commented Mar 28, 2025

@KornevNikita Yeah I'm still fighting with the Windows runners to get it actually working, once it does I'll let you know and please edit that test :)

@sarnex sarnex merged commit 8dd0613 into intel:sycl Mar 28, 2025
29 of 31 checks passed
sarnex pushed a commit that referenced this pull request May 15, 2025
For ROCm installations that aren't just in `/opt/rocm`, `clang` uses
`ROCM_PATH` at runtime to find the ROCm device libraries, and this is
done even in regular SYCL compilation. So this is needed for lit tests
in certain configurations.

This was accidentally removed in
#17692 it doesn't cause any issues in
the CI because the CI has ROCm installed in the standard `/opt/rocm`,
but it causes issues on local setups.

Also remove `--rocm-path` on Windows, this should be covered by
`ROCM_PATH`.
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