Skip to content

Conversation

@zasdfgbnm
Copy link
Collaborator

Not sure if ROCm supports std::abs today, let's see the CI

@dr-ci
Copy link

dr-ci bot commented Sep 16, 2020

💊 CI failures summary and remediations

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


  • 1/1 failures introduced in this PR

1 job timed out:

  • pytorch_xla_linux_bionic_py3_6_clang9_test

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 or post in the (internal) Dr. CI Users group.

See how this bot performed.

This comment has been revised 12 times.

@zasdfgbnm
Copy link
Collaborator Author

Tests are passing, now ROCm supports std::abs.

@codecov
Copy link

codecov bot commented Sep 16, 2020

Codecov Report

Merging #44804 into master will increase coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #44804   +/-   ##
=======================================
  Coverage   68.04%   68.05%           
=======================================
  Files         384      384           
  Lines       49814    49814           
=======================================
+ Hits        33897    33899    +2     
+ Misses      15917    15915    -2     
Impacted Files Coverage Δ
torch/utils/_benchmark/utils/common.py 79.33% <0.00%> (+1.65%) ⬆️

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 3e6bb52...7fc2e19. Read the comment docs.

return abs_wrapper(a);
});
gpu_kernel(iter, []GPU_LAMBDA(scalar_t a) -> scalar_t {
return abs_wrapper(a);
Copy link
Collaborator

Choose a reason for hiding this comment

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

do you need abs_wrapper now, or can it just be std::abs here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Looks like the special cast of bool and uint8_t is not needed as well.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I have updated this PR.

Copy link
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.

@ngimel has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@zasdfgbnm zasdfgbnm deleted the abs-improvements branch September 17, 2020 03:39
@facebook-github-bot
Copy link
Contributor

@ngimel merged this pull request in 34331b0.

xuzhao9 pushed a commit that referenced this pull request Sep 18, 2020
Summary:
Not sure if ROCm supports `std::abs` today, let's see the CI

Pull Request resolved: #44804

Reviewed By: mruberry

Differential Revision: D23748837

Pulled By: ngimel

fbshipit-source-id: ccf4e63279f3e5927a85d8d8f70ba4b8c334156b
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