Skip to content

[SYCL] Add HIP arch argument for lit tests #4676

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

Merged
merged 1 commit into from
Oct 4, 2021

Conversation

AidanBeltonS
Copy link
Contributor

@AidanBeltonS AidanBeltonS commented Sep 30, 2021

When using the HIP backend for an AMD platform the gpu's architecture must be sepcified with -Xsycl-target-backend=amdgcn-amd-amdhsa --offload-arch=<target>. This patch adds an option to buildbot/configure.py which allows the user to state the gpu architecture for lit tests when running check-sycl-hip.
Relevant messages and docs are updated within the patch.

Edit:
This patch is needed even if the tests do not run on hardware, as the amd architecture must be specified for compilation.

Copy link
Contributor

@alexbatashev alexbatashev left a comment

Choose a reason for hiding this comment

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

Why do we need this patch? All tests that require real hardware must go to intel/llvm-test-suite repo.

@AidanBeltonS
Copy link
Contributor Author

Regardless of running the test on real hardware you must specify the amd-arch to compile anything when targetting amdgcn-amd-amdhsa. So the patch is necessary even if no on-device tests are run.

Copy link
Contributor

@alexbatashev alexbatashev left a comment

Choose a reason for hiding this comment

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

@AidanBeltonS please add this info to PR description

@bader bader added the hip Issues related to execution on HIP backend. label Oct 4, 2021
@bader bader merged commit 6fed6b2 into intel:sycl Oct 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hip Issues related to execution on HIP backend.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants