Skip to content

Conversation

@ssnl
Copy link
Collaborator

@ssnl ssnl commented Aug 9, 2018

If an at::test function is added, gcc can't figure out the std::thread(test, -1) resolution.

It is not a problem for current code. I bumped into this when playing with native functions. But I think it is good to just prevent it from happening in future by removing using namespace at;, especially considering that it is a simple change.

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.

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

@ssnl ssnl deleted the tbb_test_resolve branch August 9, 2018 19:02
zdevito pushed a commit to zdevito/ATen that referenced this pull request Aug 9, 2018
Summary:
If an `at::test` function is added, gcc can't figure out the `std::thread(test, -1)` resolution.

It is not a problem for current code. I bumped into this when playing with native functions. But I think it is a good to just prevent it from happening in future by removing `using namespace at;`.
Pull Request resolved: pytorch/pytorch#10381

Differential Revision: D9241614

Pulled By: SsnL

fbshipit-source-id: 972ac3cecff3a50602b3fba463ae1ebd3f53d036
PenghuiCheng pushed a commit to PenghuiCheng/pytorch that referenced this pull request Aug 10, 2018
Summary:
If an `at::test` function is added, gcc can't figure out the `std::thread(test, -1)` resolution.

It is not a problem for current code. I bumped into this when playing with native functions. But I think it is a good to just prevent it from happening in future by removing `using namespace at;`.
Pull Request resolved: pytorch#10381

Differential Revision: D9241614

Pulled By: SsnL

fbshipit-source-id: 972ac3cecff3a50602b3fba463ae1ebd3f53d036
goodlux pushed a commit to goodlux/pytorch that referenced this pull request Aug 15, 2018
Summary:
If an `at::test` function is added, gcc can't figure out the `std::thread(test, -1)` resolution.

It is not a problem for current code. I bumped into this when playing with native functions. But I think it is a good to just prevent it from happening in future by removing `using namespace at;`.
Pull Request resolved: pytorch#10381

Differential Revision: D9241614

Pulled By: SsnL

fbshipit-source-id: 972ac3cecff3a50602b3fba463ae1ebd3f53d036
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.

4 participants