Skip to content

[SYCL][Driver] Refactor device config parsing to better match HIP and CUDA targets #13617

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

Conversation

GeorgeWeb
Copy link
Contributor

@GeorgeWeb GeorgeWeb commented May 1, 2024

Refactors the device config parsing by making it agnostic of the way the SYCL device is targeted, either by passing a device triple plus arch special string to -fsycl-targets or a just the device arch to --offload-arch (mostly for CUDA and HIP). This is achieved by also moving the parsing logic into SYCLActionBuilder, in order to make use of the device architecture bound to the offloading toolchain to lookup in the DeviceConfig file's TargetTable accordingly.
This PR also introduces HIP and CUDA target info in the DeviceConfigFile.td which is currently not complete but a starting point to build on.

@GeorgeWeb GeorgeWeb requested review from a team as code owners May 1, 2024 10:06
@GeorgeWeb GeorgeWeb requested a review from maarquitos14 May 1, 2024 10:08
@GeorgeWeb GeorgeWeb force-pushed the georgi/sycl-parse-device-config-cuda-hip branch from b90f317 to eb6b63b Compare May 1, 2024 10:15
@GeorgeWeb GeorgeWeb force-pushed the georgi/sycl-parse-device-config-cuda-hip branch from eb6b63b to 0aaa72d Compare May 1, 2024 10:20
… CUDA targets

This commit also moves the parsing into SYCLActionBuilder, so it can make use
of the device architecture bound to the offloading toolchain to lookup in the
DeviceConfig file's TargetTable.
@GeorgeWeb GeorgeWeb force-pushed the georgi/sycl-parse-device-config-cuda-hip branch from 0aaa72d to 25785a2 Compare May 1, 2024 10:51
@GeorgeWeb GeorgeWeb temporarily deployed to WindowsCILock May 1, 2024 11:35 — with GitHub Actions Inactive
Copy link
Contributor

@maarquitos14 maarquitos14 left a comment

Choose a reason for hiding this comment

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

LGTM.

@GeorgeWeb GeorgeWeb force-pushed the georgi/sycl-parse-device-config-cuda-hip branch from e2097a0 to ed1e2fe Compare May 2, 2024 21:36
@GeorgeWeb GeorgeWeb temporarily deployed to WindowsCILock May 2, 2024 22:48 — with GitHub Actions Inactive
Copy link
Contributor

@AlexeySachkov AlexeySachkov left a comment

Choose a reason for hiding this comment

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

DeviceConfigFile LGTM

@GeorgeWeb
Copy link
Contributor Author

@intel/llvm-gatekeepers Think this is ready to merge now. Thanks!

@martygrant martygrant merged commit 82aaf27 into intel:sycl May 13, 2024
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.

6 participants