Skip to content

Adds note on adding extra compile args for building cuda extensions #292

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

Closed
wants to merge 2 commits into from

Conversation

syed-ahmed
Copy link

When building CUDA extensions, we have to pass extra_compile_args now to avoid cuda header collisions with half operator overloading (that happens through implicit half conversions) details: pytorch/pytorch#10301 (comment).

When building CUDA extensions, we have to pass `extra_compile_args` now to avoid cuda header collisions with half operator overloading (that happens through implicit half conversions) details: pytorch/pytorch#10301 (comment).
Copy link
Contributor

@goldsborough goldsborough left a comment

Choose a reason for hiding this comment

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

Hi, @syed-ahmed, thanks for the contribution. I feel it may be a little unfriendly for our users to have to pass these flags manually whenever building a CUDA extension with half support. We generally try very hard to hide as much compiler configuration as possible for these extensions. I will come up with a way of automatically adding these flags from within CUDAExtension.

@syed-ahmed
Copy link
Author

Thanks @goldsborough ! I totally agree with you! I'll close this PR since you got this. Till then, people can just refer to pytorch/pytorch#10301 (comment) if they get the operator overloading errors.

@syed-ahmed syed-ahmed closed this Sep 7, 2018
facebook-github-bot pushed a commit to pytorch/pytorch that referenced this pull request Sep 10, 2018
Summary:
The controller you requested could not be found.  found there are some issues when using comparison operators for half types when certain THC header are included. I was able to reproduce and added a test. I also fix the issue by adding the proper definitions to avoid this issue.

Reported in #10301 (comment)
Related: pytorch/tutorials#292

soumith fmassa
Pull Request resolved: #11395

Differential Revision: D9725102

Pulled By: goldsborough

fbshipit-source-id: 630425829046bbebea3409bb792a9d62c91f41ad
PenghuiCheng pushed a commit to PenghuiCheng/pytorch that referenced this pull request Sep 11, 2018
Summary:
The controller you requested could not be found.  found there are some issues when using comparison operators for half types when certain THC header are included. I was able to reproduce and added a test. I also fix the issue by adding the proper definitions to avoid this issue.

Reported in pytorch#10301 (comment)
Related: pytorch/tutorials#292

soumith fmassa
Pull Request resolved: pytorch#11395

Differential Revision: D9725102

Pulled By: goldsborough

fbshipit-source-id: 630425829046bbebea3409bb792a9d62c91f41ad
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.

2 participants