Skip to content

[SYCL] Remove undocumented descriptors#22542

Open
Robertkq wants to merge 6 commits into
intel:syclfrom
Robertkq:Robertkq/22477
Open

[SYCL] Remove undocumented descriptors#22542
Robertkq wants to merge 6 commits into
intel:syclfrom
Robertkq:Robertkq/22477

Conversation

@Robertkq

@Robertkq Robertkq commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Removal of non-standard descriptors from multiple classes

fixes #22477

@Robertkq Robertkq requested a review from a team as a code owner July 3, 2026 17:17
@Robertkq Robertkq requested a review from sergey-semenov July 3, 2026 17:17
@Robertkq Robertkq marked this pull request as draft July 3, 2026 17:18
@Robertkq Robertkq marked this pull request as ready for review July 5, 2026 10:24
@Robertkq

Robertkq commented Jul 5, 2026

Copy link
Copy Markdown
Contributor Author

@KornevNikita can I get a review on this PR? Thanks!

I found some more non-standard descriptors for which I am going to open issues

Update: I think I misunderstood the scope of the original issue, I missed that this issue should have covered only device and for the descriptors that were present on other classes like kernel platform context I also removed them, the likes of reference_count. Not sure if I should revert the changes to the other classes or keep them, as they need to be removed either way

@KornevNikita KornevNikita left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just a quick Sunday review, will take an additional one tomorrow.

Comment thread sycl/include/sycl/info/context.hpp Outdated
Comment thread sycl/include/sycl/info/device.hpp Outdated
Comment thread sycl/source/detail/device_impl.hpp
@KornevNikita

Copy link
Copy Markdown
Contributor

@KornevNikita can I get a review on this PR? Thanks!

I found some more non-standard descriptors for which I am going to open issues

Update: I think I misunderstood the scope of the original issue, I missed that this issue should have covered only device and for the descriptors that were present on other classes like kernel platform context I also removed them, the likes of reference_count. Not sure if I should revert the changes to the other classes or keep them, as they need to be removed either way

let's stick to device info descriptors, other classes are covered by different PRs

Comment thread sycl/include/sycl/info/device.hpp Outdated
Comment thread sycl/include/sycl/info/device.hpp Outdated
@Robertkq

Robertkq commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

Ok.. I think this PR is getting close to final touches if not already. I am experiencing some issues with the target check-sycl-e2e, I constantly get this error now:

[0/2] Re-checking globbed directories...
ninja: error: 'tools/sycl/test-e2e/compiler-rt', needed by 'tools/sycl/test-e2e/CMakeFiles/check-sycl-e2e', missing and no known rule to make it

But I remember being able to run it, I used the builbot scripts to configure, compile and check the build, I also re-ran ninja in the build directory to try and build any remaining targets but I always get this issue. Will take a look at how the tests look to see any issues with the current stage of the PR

Comment thread sycl/include/sycl/info/device.hpp Outdated
Comment thread sycl/source/detail/device_impl.hpp
Comment thread sycl/source/detail/device_impl.hpp
Comment thread sycl/source/detail/image_impl.cpp Outdated
"For a 3D image, the depth must be a Value >= 1 and <= "
"info::device::image2d_max_depth");

#ifndef __INTEL_PREVIEW_BREAKING_CHANGES

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

not sure if we should remove this block, although looks like legacy. I thing we need to update checkImageValueRange() to call adapter instead (like what info::device::image_max_array_size actually calls)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I tried to do this right now but it's a bit difficult for me to properly add a workaround for it. But logically, if image_max_array_size is non-standard and will be removed, also there is no replacement for it, then we shouldn't test against it anymore, no?

@KornevNikita

Copy link
Copy Markdown
Contributor

Sorry for new requests, didn't catch them all at first.

@Robertkq

Robertkq commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

Sorry for new requests, didn't catch them all at first.

No worries! Thank you for bringing them up and looking in my PRs! Much appreciated!

@Robertkq

Robertkq commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

Also I am not sure what to make of CI.. it all fails but it all looks expected

/__w/llvm/llvm/llvm/sycl/test-e2e/Basic/queue/queue_parallel_for_without_context.cpp:13:42: error: 'usm_shared_allocations' is deprecated: use sycl::aspect::usm_shared_allocations instead [-Werror,-Wdeprecated-declarations]
  # |    13 |            .get_info<sycl::info::device::usm_shared_allocations>()) {

Apparently there is -Werrorr specified, so.. its failing expectedly in this case

@KornevNikita KornevNikita changed the title Remove undocumented descriptors [SYCL] Remove undocumented descriptors Jul 6, 2026
Comment thread sycl/source/detail/device_impl.hpp Outdated
@KornevNikita

KornevNikita commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Also I am not sure what to make of CI.. it all fails but it all looks expected

/__w/llvm/llvm/llvm/sycl/test-e2e/Basic/queue/queue_parallel_for_without_context.cpp:13:42: error: 'usm_shared_allocations' is deprecated: use sycl::aspect::usm_shared_allocations instead [-Werror,-Wdeprecated-declarations]
  # |    13 |            .get_info<sycl::info::device::usm_shared_allocations>()) {

Apparently there is -Werrorr specified, so.. its failing expectedly in this case

yep, replace get_info by has(aspect)

Comment thread sycl/source/detail/device_impl.hpp
@Robertkq

Robertkq commented Jul 7, 2026

Copy link
Copy Markdown
Contributor Author

Yeah, I'll be honest, I got really confused in this PR, from all the extra modifications with different classes, also I did not expect deprecated descriptors to have extensions / aspects that are very similar or identical in naming, so it messed up with my head. Can you please re-review now? I have moved what get_info used to return for the descriptors to what has should return now, as I think that is the intended behaviour. For image_impl.cpp, there is no aspect image_max_array_size so I can't really call has for it. Sorry for the mess, this should have been easier than what it has become :)

@KornevNikita

Copy link
Copy Markdown
Contributor

Yeah, I'll be honest, I got really confused in this PR, from all the extra modifications with different classes, also I did not expect deprecated descriptors to have extensions / aspects that are very similar or identical in naming, so it messed up with my head. Can you please re-review now? I have moved what get_info used to return for the descriptors to what has should return now, as I think that is the intended behaviour. For image_impl.cpp, there is no aspect image_max_array_size so I can't really call has for it. Sorry for the mess, this should have been easier than what it has become :)

@Robertkq thanks for working on this! In general LGTM, but I assume there will be test failures, so there is still some amount of changes to do.

@Robertkq Robertkq requested a review from a team as a code owner July 8, 2026 16:57

@YuriPlyakhin YuriPlyakhin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

the only file change owned by me: sycl/test-e2e/NewOffloadDriver/image_compression.cpp - LGTM

@KornevNikita

Copy link
Copy Markdown
Contributor

@Robertkq just see the "Self build" job, all other failures are related to the tests that haven't been built and therefore found:

/__w/llvm/llvm/llvm/sycl/test-e2e/SubGroup/info.cpp:24:33: error: 'sub_group_independent_forward_progress' is deprecated: extension is deprecated [-Werror,-Wdeprecated-declarations]
  # |    24 |   Device.get_info<info::device::sub_group_independent_forward_progress>();

I suggest to just remove this - it's deprecated and I have plans to remove the support.

For the rest of the tests - use alternatives to the deprecated descriptors if possible, or guard with the preview macro, just a note, I guess you know what to do:)

@Robertkq Robertkq requested a review from a team as a code owner July 11, 2026 13:06
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.

Remove undocumented device infos

3 participants