Skip to content

Conversation

@srividya-sundaram
Copy link
Contributor

@srividya-sundaram srividya-sundaram commented Jan 5, 2026

This patch adds support for passing -Xarch_ to SYCL offload compilations.

Example:
clang --offload-new-driver -fsycl -fsycl-targets=amdgcn-amd-amdhsa,nvptx64-nvidia-cuda -nogpulib -fno-sycl-libspirv -nogpuinc -Xarch_amdgcn --offload-arch=gfx90a,gfx906 -Xarch_nvptx64 --offload-arch=sm_52,sm_89 -S -### syclfile.cpp

Copy link
Contributor

@mdtoguchi mdtoguchi left a comment

Choose a reason for hiding this comment

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

The changes look good for the 3rd party targets.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 6, 2026

@intel/llvm-gatekeepers please consider merging

@srividya-sundaram
Copy link
Contributor Author

ping @intel/llvm-gatekeepers

@srividya-sundaram srividya-sundaram changed the title [SYCL][Driver] Enable passing -Xarch_<arch> <option> to SYCL offload … [SYCL][Driver] Enable passing -Xarch_<arch> <option> to SYCL offload compilation Jan 6, 2026
@uditagarwal97 uditagarwal97 merged commit 1c74478 into intel:sycl Jan 6, 2026
29 checks passed
@srividya-sundaram srividya-sundaram deleted the enable-xarch branch January 6, 2026 23:38
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.

3 participants