Skip to content
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

[UR] Pass pi_mem_properties in pi2ur for piMemBufferCreate #12665

Merged
merged 1 commit into from
Feb 9, 2024

Conversation

nrspruit
Copy link
Contributor

@nrspruit nrspruit commented Feb 8, 2024

  • Remove the restriction in pi2ur such that piMemBufferCreate can pass the pi_mem_properties as the pNext properties to the UR Adapters.

@nrspruit
Copy link
Contributor Author

nrspruit commented Feb 9, 2024

@intel/unified-runtime-reviewers , please let me know if you see any issues with this change that could impact the adapters. This re-enables the usage of the pi mem properties used in the opencl adapter at least.

UR_STRUCTURE_TYPE_BUFFER_ALLOC_LOCATION_PROPERTIES;
if (properties != nullptr) {
constexpr uint64_t defaultBufferLocation = 7777;
constexpr uint32_t defaultBufferMemChannel = 7777;
Copy link
Contributor

Choose a reason for hiding this comment

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

I understand that this is astronomically unlikely to cause a problem by being a legit value for these properties one day, but I still think it's asking for trouble. I'd rather these two were boolean flags that get set if we find the corresponding property

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @aarongreig ,

I have updated accordingly.

- Remove the restriction in pi2ur such that piMemBufferCreate can pass
  the pi_mem_properties as the pNext properties to the UR Adapters.

Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com>
@nrspruit
Copy link
Contributor Author

nrspruit commented Feb 9, 2024

Test failure for gen12 is an env issue:

.---command stdout------------

| Abort was called at 253 line in file:

| ../../neo/level_zero/core/source/builtin/builtin_functions_lib_impl.cpp

`-----------------------------

that failure is in the level zero gpu driver and does not have anything to do with the changes in this patch.

@againull againull merged commit 34ec82d into intel:sycl Feb 9, 2024
12 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.

3 participants