-
Notifications
You must be signed in to change notification settings - Fork 794
[SYCL][E2E] Add LIT feature for HIP #17692
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
Conversation
Signed-off-by: Sarnie, Nick <[email protected]>
Signed-off-by: Sarnie, Nick <[email protected]>
Signed-off-by: Sarnie, Nick <[email protected]>
|
|
||
| with test_env(): | ||
| sp = subprocess.getstatusoutput( | ||
| config.dpcpp_compiler + " -fsycl " + check_hip_file + hip_options |
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.
Do we need -fsycl here?
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.
probably not but i just copied what we did for cuda, i can remove it from both if you think thats better
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.
No difference to me at all.
KornevNikita
left a comment
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 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):
llvm/sycl/test-e2e/OptionalKernelFeatures/is_compatible/is_compatible_amdgcn.cpp
Lines 1 to 3 in 0a406c9
| // UNSUPPORTED: windows | |
| // UNSUPPORTED-TRACKER: https://github.com/intel/llvm/issues/17515 | |
| // There are no ROCm libs on win machines, so the compilation fails. |
|
@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 :) |
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`.
We already have features for Level Zero and CUDA, add one for HIP.