Skip to content

float2::x and float2::y may not be the same as float on ROCm#35593

Closed
xuhdev wants to merge 1 commit intopytorch:masterfrom
xuhdev:rocm/float2
Closed

float2::x and float2::y may not be the same as float on ROCm#35593
xuhdev wants to merge 1 commit intopytorch:masterfrom
xuhdev:rocm/float2

Conversation

@xuhdev
Copy link
Copy Markdown
Collaborator

@xuhdev xuhdev commented Mar 28, 2020

This causes ambiguity and can be triggered sometimes (e.g., by #35217). Explicitly convert them to float.

error: conditional expression is ambiguous; 'const
hip_impl::Scalar_accessor<float, Native_vec_, 0>' can be converted to
'float' and vice versa

@dr-ci
Copy link
Copy Markdown

dr-ci Bot commented Mar 28, 2020

💊 CircleCI build failures summary and remediations

As of commit a4c7075 (more details on the Dr. CI page):


None of the build failures appear to be your fault 💚


  • 1/1 broken upstream at merge base 67c3822 since Mar 27

    Please rebase on the viable/strict branch (expand for instructions)

    If your commit is newer than viable/strict, you can try basing on an older, stable commit:

    git fetch https://github.com/pytorch/pytorch viable/strict
    git rebase --onto FETCH_HEAD $(git merge-base origin/master HEAD)
    

    If your commit is older than viable/strict:

    git fetch https://github.com/pytorch/pytorch viable/strict
    git rebase FETCH_HEAD
    

    Check out the recency history of this "viable master" tracking branch.


🚧 1 upstream failure:

These were probably caused by upstream breakages:


This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions on the GitHub issue tracker.

See how this bot performed.

This comment has been revised 9 times.

This causes ambiguity and can be triggered sometimes (e.g., by pytorch#35217). Explicitly convert them to float.

    error: conditional expression is ambiguous; 'const
    hip_impl::Scalar_accessor<float, Native_vec_, 0>' can be converted to
    'float' and vice versa
Copy link
Copy Markdown
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@ezyang is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@ezyang merged this pull request in 788ef93.

@gchanan
Copy link
Copy Markdown
Contributor

gchanan commented Mar 31, 2020

it looks like we may need to port this to 1.5, ROCm tests are failing in a similar way.

gchanan pushed a commit to gchanan/pytorch that referenced this pull request Mar 31, 2020
…pytorch#35593)

Summary:
This causes ambiguity and can be triggered sometimes (e.g., by pytorch#35217). Explicitly convert them to float.

    error: conditional expression is ambiguous; 'const
    hip_impl::Scalar_accessor<float, Native_vec_, 0>' can be converted to
    'float' and vice versa
Pull Request resolved: pytorch#35593

Differential Revision: D20735663

Pulled By: ezyang

fbshipit-source-id: ae6a38a08e59821bae13eb0b9f9bdf21a008d5c0
@xuhdev xuhdev deleted the rocm/float2 branch March 31, 2020 23:26
@gchanan
Copy link
Copy Markdown
Contributor

gchanan commented Mar 31, 2020

porting this looks necessary but not sufficient for 1.5, see #35784.

gchanan pushed a commit that referenced this pull request Mar 31, 2020
…#35593)

Summary:
This causes ambiguity and can be triggered sometimes (e.g., by #35217). Explicitly convert them to float.

    error: conditional expression is ambiguous; 'const
    hip_impl::Scalar_accessor<float, Native_vec_, 0>' can be converted to
    'float' and vice versa
Pull Request resolved: #35593

Differential Revision: D20735663

Pulled By: ezyang

fbshipit-source-id: ae6a38a08e59821bae13eb0b9f9bdf21a008d5c0
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
…#35593)

Summary:
This causes ambiguity and can be triggered sometimes (e.g., by pytorch#35217). Explicitly convert them to float.

    error: conditional expression is ambiguous; 'const
    hip_impl::Scalar_accessor<float, Native_vec_, 0>' can be converted to
    'float' and vice versa
Pull Request resolved: pytorch#35593

Differential Revision: D20735663

Pulled By: ezyang

fbshipit-source-id: ae6a38a08e59821bae13eb0b9f9bdf21a008d5c0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants