Skip to content

Fix Level Zero skip messages in tests - #2437

Open
ndgrigorian wants to merge 2 commits into
masterfrom
fix-local-accessor-skip-message
Open

ndgrigorian wants to merge 2 commits into
masterfrom
fix-local-accessor-skip-message

Conversation

@ndgrigorian

@ndgrigorian ndgrigorian commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

This PR fixes the skip message of test_submit_local_accessor_arg, which creates a Level Zero queue but reported that an OpenCL queue could not be created when skipping

This PR also changes "LevelZero" to "Level Zero" in the skip messages of test_raw_kernel_arg.py and test_work_group_memory.py, for consistency with the rest of dpctl

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to an issue with a reproducer?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you made sure that new changes do not introduce compiler warnings?
  • Have you checked performance impact of proposed changes?
  • Have you added documentation for your changes, if necessary?
  • Have you added your changes to the changelog?
  • If this PR is a work in progress, are you opening the PR as a draft?

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown

@coveralls

coveralls commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

Coverage Status

coverage: 75.173%. remained the same — fix-local-accessor-skip-message into master

@ndgrigorian
ndgrigorian force-pushed the fix-local-accessor-skip-message branch from 0db38a6 to 11267af Compare December 2, 2026 21:32
@ndgrigorian ndgrigorian changed the title Fix the skip message of test_submit_local_accessor_arg Fix Level Zero skip messages in tests Dec 2, 2026

@vlad-perevezentsev vlad-perevezentsev left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM
Thank you @ndgrigorian! Just a small nit below:

q = dpctl.SyclQueue("level_zero")
except dpctl.SyclQueueCreationError:
pytest.skip("OpenCL queue could not be created")
pytest.skip("Level Zero queue could not be created")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nit: One more skip message of this kind is left: test_get_wait_list in dpctl/tests/test_sycl_event.py:147 creates SyclQueue("opencl:cpu") but skips with "Sycl queue for OpenCL gpu device could not be created." With only the GPU visible (ONEAPI_DEVICE_SELECTOR=level_zero:gpu) it reports the wrong device. Could this PR fix it too, as "OpenCL CPU queue could not be created" like lines 116 and 136 there?

This branch has not been deployed

No deployments
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