Skip to content

[SYCL][UR] Fix device partition queries (2) #10592

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
Aug 1, 2023

Conversation

jandres742
Copy link
Contributor

@jandres742 jandres742 commented Jul 27, 2023

Fix CSLICE partitioning for PVC.

Also, fix level_zero_ext_intel_cslice to correctly test with
and without immediate command list.

Signed-off-by: Jaime Arteaga [email protected]
Signed-off-by: Piotr Balcer [email protected]
Signed-off-by: Fábio Mestre [email protected]

@jandres742 jandres742 temporarily deployed to aws July 27, 2023 01:39 — with GitHub Actions Inactive
@jandres742 jandres742 temporarily deployed to aws July 27, 2023 02:18 — with GitHub Actions Inactive
@jandres742 jandres742 temporarily deployed to aws July 28, 2023 14:55 — with GitHub Actions Inactive
@jandres742 jandres742 temporarily deployed to aws July 28, 2023 16:07 — with GitHub Actions Inactive
@jandres742 jandres742 temporarily deployed to aws July 28, 2023 16:45 — with GitHub Actions Inactive
Fix CSLICE partitioning for PVC.

Also, fix level_zero_ext_intel_cslice to correctly test with
and without immediate command list.

Signed-off-by: Jaime Arteaga <[email protected]>
Signed-off-by: Piotr Balcer <[email protected]>
Signed-off-by: Fábio Mestre <[email protected]>
@jandres742 jandres742 temporarily deployed to aws July 28, 2023 18:04 — with GitHub Actions Inactive
@jandres742 jandres742 temporarily deployed to aws July 28, 2023 18:43 — with GitHub Actions Inactive
@jandres742 jandres742 marked this pull request as ready for review July 28, 2023 20:44
@jandres742 jandres742 requested review from a team as code owners July 28, 2023 20:44
Copy link
Contributor

@aelovikov-intel aelovikov-intel left a comment

Choose a reason for hiding this comment

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

Test change LGTM.

@@ -469,6 +469,10 @@ inline pi_result ur2piDeviceInfoValue(ur_device_info_t ParamName,
*pValuePI = pValueUR->value.affinity_domain;
break;
}
case UR_DEVICE_PARTITION_BY_CSLICE: {
*pValuePI = 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

what does it mean to return "0" value? why is this a literal "0" and not some enum value?

Copy link
Contributor

@pbalcer pbalcer Jul 31, 2023

Choose a reason for hiding this comment

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

UR_DEVICE_PARTITION_BY_CSLICE does not have a value in the corresponding UR union type (or, maybe more accurately, its value is empty). Because the PI's data is as an array of key-value pairs, there's no way to represent an absence of value for a key. That's why the 0 assignment is here, which matches the old behavior.

Copy link
Contributor

@pbalcer pbalcer left a comment

Choose a reason for hiding this comment

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

👍
This restores the old behavior, but we might want to later revisit the level-zero adapter implementation so that it doesn't hardcode the partition type in the get info method.

@jandres742
Copy link
Contributor Author

@intel/llvm-gatekeepers please merge when possible.

@aelovikov-intel aelovikov-intel merged commit c4743a7 into intel:sycl Aug 1, 2023
@aelovikov-intel
Copy link
Contributor

@jandres742 , post-commit seems to be failing after this: https://github.com/intel/llvm/actions/runs/5731890807/job/15533756331

@jandres742
Copy link
Contributor Author

@jandres742 , post-commit seems to be failing after this: https://github.com/intel/llvm/actions/runs/5731890807/job/15533756331

thanks @aelovikov-intel . checking.

@jandres742
Copy link
Contributor Author

@jandres742 , post-commit seems to be failing after this: https://github.com/intel/llvm/actions/runs/5731890807/job/15533756331

thanks @aelovikov-intel . checking.

@aelovikov-intel : posted fix on #10649

@jandres742
Copy link
Contributor Author

@aelovikov-intel seems like post build is still failing, but logs show something unrelated to these changes

https://github.com/intel/llvm/actions/runs/5736337996/job/15545731350

/__w/llvm/llvm/src/sycl/source/detail/builtins_relational.cpp:461:62: error: all paths through this function will call itself [-Werror,-Winfinite-recursion]
  461 | __SYCL_EXPORT s::cl_int __vSignBitSet(s::cl_float x) __NOEXC {
      |   

what do you advise?

@aelovikov-intel
Copy link
Contributor

what do you advise?

We expect #10652 to fix it.

veselypeta pushed a commit to veselypeta/llvm that referenced this pull request Sep 21, 2023
Fix CSLICE partitioning for PVC.

Also, fix level_zero_ext_intel_cslice to correctly test with
and without immediate command list.

Signed-off-by: Jaime Arteaga <[email protected]>
Signed-off-by: Piotr Balcer <[email protected]>
Signed-off-by: Fábio Mestre <[email protected]>

Signed-off-by: Jaime Arteaga <[email protected]>
Signed-off-by: Piotr Balcer <[email protected]>
Signed-off-by: Fábio Mestre <[email protected]>
mdtoguchi pushed a commit to mdtoguchi/llvm that referenced this pull request Oct 18, 2023
Fix CSLICE partitioning for PVC.

Also, fix level_zero_ext_intel_cslice to correctly test with
and without immediate command list.

Signed-off-by: Jaime Arteaga <[email protected]>
Signed-off-by: Piotr Balcer <[email protected]>
Signed-off-by: Fábio Mestre <[email protected]>

Signed-off-by: Jaime Arteaga <[email protected]>
Signed-off-by: Piotr Balcer <[email protected]>
Signed-off-by: Fábio Mestre <[email protected]>
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.

5 participants