Skip to content

Removed use of std::move in DPCTLDeviceMgr_GetCachedContext#1573

Merged
oleksandr-pavlyk merged 1 commit intomasterfrom
remove-dangerous-move
Mar 1, 2024
Merged

Removed use of std::move in DPCTLDeviceMgr_GetCachedContext#1573
oleksandr-pavlyk merged 1 commit intomasterfrom
remove-dangerous-move

Conversation

@oleksandr-pavlyk
Copy link
Copy Markdown
Contributor

Use of std::move destroys the context saved in the cache, negating existence of this cache, but also setting the code up for possible silent failures.

  • 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?

Use of std::move destroys the context saved in the cache,
negating existance of this cache, but also setting the code up
for possible silent failures.
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Feb 29, 2024

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

@coveralls
Copy link
Copy Markdown
Collaborator

Coverage Status

coverage: 91.244%. remained the same
when pulling dac2317 on remove-dangerous-move
into d2d06fd on master.

@github-actions
Copy link
Copy Markdown

Array API standard conformance tests for dpctl=0.17.0dev0=py310h15de555_43 ran successfully.
Passed: 904
Failed: 2
Skipped: 94

@oleksandr-pavlyk oleksandr-pavlyk merged commit 49ca398 into master Mar 1, 2024
@oleksandr-pavlyk oleksandr-pavlyk deleted the remove-dangerous-move branch March 2, 2024 00:33
oleksandr-pavlyk added a commit that referenced this pull request Mar 27, 2024
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