Skip to content

Handle possible NULL return from DPCTLDevice_GetMaxWorkGroupSize1d, 2d - #1690

Merged
oleksandr-pavlyk merged 1 commit into
masterfrom
handle-possible-errors
May 22, 2024
Merged

oleksandr-pavlyk merged 1 commit into
masterfrom
handle-possible-errors

Conversation

@oleksandr-pavlyk

Copy link
Copy Markdown
Contributor

Python code now checks that the return value of DPCTLDevice_GetMaxWorkGroupSize1d and DPCTLDevice_GetMaxWorkGroupSize2d is not NULL before dereferencing.

  • 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?
  • If this PR is a work in progress, are you opening the PR as a draft?

Python code now checks that the return value is not NULL before
dereferencing.
@github-actions

github-actions Bot commented May 22, 2024 •

Copy link
Copy Markdown

Deleted rendered PR docs from intelpython.github.com/dpctl, latest should be updated shortly. 🤞

@coveralls

Copy link
Copy Markdown
Collaborator

Coverage Status

coverage: 87.943% (-0.03%) from 87.971%
when pulling 3952ef7 on handle-possible-errors
into 183bfd7 on master.

@github-actions

Copy link
Copy Markdown

Array API standard conformance tests for dpctl=0.18.0dev0=py310h15de555_8 ran successfully.
Passed: 889
Failed: 16
Skipped: 91

@ndgrigorian ndgrigorian 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!

@oleksandr-pavlyk
oleksandr-pavlyk merged commit 4dac76c into master May 22, 2024
@oleksandr-pavlyk
oleksandr-pavlyk deleted the handle-possible-errors branch May 22, 2024 20:17
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