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

Fix aliasing violation in t-SNE #4363

Merged
merged 1 commit into from
Nov 15, 2021

Conversation

zbjornson
Copy link
Contributor

Undefined behavior introduced in #4208. These parameters are restrict-qualified, but the callers pass pointers with the same address and the arrays are modified through both pointers.

@zbjornson zbjornson requested a review from a team as a code owner November 14, 2021 22:05
@GPUtester
Copy link
Contributor

Can one of the admins verify this patch?

@dantegd
Copy link
Member

dantegd commented Nov 14, 2021

add to allowlist

@dantegd
Copy link
Member

dantegd commented Nov 15, 2021

@zbjornson there seem to be some clang-format minor issue after the change, you can check and solve it locally with (taken from CI logs):

utils.cuh failed! 'diff cpp/src/tsne/utils.cuh /tmp/tmp0e3j_bc3/cpp/src/tsne/utils.cuh' will show formatting violations!
clang-format failed! You have 2 options:
 1. Look at formatting differences above and fix them manually
 2. Or run the below command to bulk-fix all these at once
Bulk-fix command: 
  python cpp/scripts/run-clang-format.py  -inplace

Thanks for the patch!

@dantegd dantegd added this to PR-WIP in v21.12 Release via automation Nov 15, 2021
Undefined behavior introduced in rapidsai#4208. These parameters are restrict-qualified, but the callers pass pointers with the same address and the arrays are modified through both pointers.
Copy link
Member

@cjnolet cjnolet left a comment

Choose a reason for hiding this comment

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

LGTM

v21.12 Release automation moved this from PR-WIP to PR-Reviewer approved Nov 15, 2021
@cjnolet cjnolet added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Nov 15, 2021
@codecov-commenter
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (branch-21.12@4d3410a). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@               Coverage Diff               @@
##             branch-21.12    #4363   +/-   ##
===============================================
  Coverage                ?   85.95%           
===============================================
  Files                   ?      231           
  Lines                   ?    18624           
  Branches                ?        0           
===============================================
  Hits                    ?    16009           
  Misses                  ?     2615           
  Partials                ?        0           
Flag Coverage Δ
dask 46.68% <0.00%> (?)
non-dask 78.61% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4d3410a...b9afa21. Read the comment docs.

@dantegd
Copy link
Member

dantegd commented Nov 15, 2021

@gpucibot merge

@rapids-bot rapids-bot bot merged commit daa59d5 into rapidsai:branch-21.12 Nov 15, 2021
v21.12 Release automation moved this from PR-Reviewer approved to Done Nov 15, 2021
vimarsh6739 pushed a commit to vimarsh6739/cuml that referenced this pull request Oct 9, 2023
Undefined behavior introduced in rapidsai#4208. These parameters are restrict-qualified, but the callers pass pointers with the same address and the arrays are modified through both pointers.

Authors:
  - Zach Bjornson (https://github.com/zbjornson)

Approvers:
  - Corey J. Nolet (https://github.com/cjnolet)

URL: rapidsai#4363
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CUDA/C++ improvement Improvement / enhancement to an existing function non-breaking Non-breaking change
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

5 participants