Skip to content

Conversation

@jzc
Copy link
Contributor

@jzc jzc commented Sep 18, 2025

Because llvm-offload-binary uses commas to separate the key-values pairs when specifying an image, we cannot specify a value that contains a comma without some special handling. However, if you specify the same key multiple times when calling llvm-offload-binary, the keys will be concatenated together with commas in between. So if we want, for example, the image to have an arch of pvc,bdw, we can call llvm-offload-binary with arch=pvc,arch=bdw to achieve this.

@jzc jzc requested a review from a team as a code owner September 18, 2025 14:57
@jzc jzc temporarily deployed to WindowsCILock October 2, 2025 17:43 — with GitHub Actions Inactive
@jzc jzc temporarily deployed to WindowsCILock October 2, 2025 18:14 — with GitHub Actions Inactive
@jzc jzc temporarily deployed to WindowsCILock October 2, 2025 18:14 — with GitHub Actions Inactive
@jzc jzc requested a review from srividya-sundaram October 6, 2025 17:33
@srividya-sundaram
Copy link
Contributor

It would be helpful if you can respond to individual comments if they have been addressed or not, OR use the resolve button to resolve the conversation. Thanks!

@jzc jzc requested a review from a team as a code owner November 6, 2025 23:19
@jzc jzc requested a review from srividya-sundaram November 6, 2025 23:51
@jzc jzc temporarily deployed to WindowsCILock November 13, 2025 17:52 — with GitHub Actions Inactive
// "-g,-cl-opt-disable"`. Otherwise, only the first arg is processed by
// ocloc as an arg for -options, and the rest are processed as standalone
// flags, possibly leading to errors.
// ocloc -options takes arguments in the form of '-options "-g
Copy link
Contributor

Choose a reason for hiding this comment

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

So, Yixing's change should be merged first, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I forgot to add a comment here on the PR, but I needed Yixing's change to pass testing.

Copy link
Contributor

Choose a reason for hiding this comment

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

ok. I think if this change is ready first, we should go ahead and merge it. It doesn't matter, which change goes first in. Both are required anyway.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds good. FYI @YixingZhang007, I think this should merge cleanly with your changes but just letting you know.

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, just a few nits.

std::string Replace = AfterOptions.str();
std::replace(Replace.begin(), Replace.end(), ' ', ',');
CmdArgs.push_back(Args.MakeArgString(Replace));
// Split the options string by spaces and rejoin to normalize whitespace
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// Split the options string by spaces and rejoin to normalize whitespace
// Split the options string by spaces and rejoin to normalize whitespace.

@github-actions
Copy link
Contributor

@intel/llvm-gatekeepers please consider merging

@jzc jzc temporarily deployed to WindowsCILock November 14, 2025 17:35 — with GitHub Actions Inactive
@jzc jzc changed the title [SYCL] Fix handling of comma separated arch value when calling clang-offload-packager [SYCL] Fix handling of comma separated arch value when calling llvm-offload-binary Nov 14, 2025
@jzc jzc temporarily deployed to WindowsCILock November 14, 2025 18:04 — with GitHub Actions Inactive
@jzc jzc temporarily deployed to WindowsCILock November 14, 2025 18:04 — with GitHub Actions Inactive
@jzc jzc temporarily deployed to WindowsCILock November 14, 2025 18:04 — with GitHub Actions Inactive
@jzc
Copy link
Contributor Author

jzc commented Nov 14, 2025

@intel/llvm-gatekeepers Failures unrelated (all green in fc02714), this PR is ready to merge.

@aelovikov-intel aelovikov-intel merged commit 431a278 into intel:sycl Nov 14, 2025
27 of 28 checks passed
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.

7 participants